Files
systemd/src
Oblivionsage 02cab70acf pe-binary: fix missing le16toh() on NumberOfSections in pe_hash/uki_hash
pe_hash() and uki_hash() pass pe_header->pe.NumberOfSections directly
to typesafe_qsort() and FOREACH_ARRAY() without le16toh(). On
big-endian (s390x), NumberOfSections=3 gets read as 0x0300 (768),
while pe_load_sections() correctly converts it and only allocates 3
sections. This makes qsort process 768 elements on a 3-element
buffer, causing a heap-buffer-overflow (confirmed with ASAN on
native s390x).

Wrap all three raw usages with le16toh() to match pe_load_sections().
2026-02-18 08:25:54 +09:00
..
2026-01-21 15:09:46 +01:00
…
2026-02-11 11:46:12 +01:00
2026-02-11 11:47:59 +01:00
…
…
…
2026-02-16 14:32:38 +01:00
2026-02-11 11:46:44 +01:00
2026-02-11 11:47:18 +01:00
2026-01-06 08:45:22 +09:00
2026-02-17 16:26:36 +01:00
…
2026-02-09 11:01:15 +01:00
2026-02-05 14:14:40 +01:00
2026-02-04 11:43:22 +09:00
2026-01-16 13:07:47 +01:00