]> git.ipfire.org Git - thirdparty/systemd.git/commit
pe-binary: wrap remaining LE fields with byte-swap macros
authorOblivionsage <cookieandcream560@gmail.com>
Wed, 18 Feb 2026 17:22:48 +0000 (18:22 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Feb 2026 22:34:44 +0000 (07:34 +0900)
commitb3a2444ba57c90b93b5f76cc7f62b84acb7adec8
tree500732d65155adbd92eb25297e4f4b43ddb1a1b8
parent81cef494a6ec8ed0c7a98258fb8a14f1011686a0
pe-binary: wrap remaining LE fields with byte-swap macros

Follow-up to 02cab70acf5ca67e838d0d34860baacbf9fc3b6c. pe_hash(),
section_offset_cmp() and uki_hash() still had a bunch of raw accesses
to LE fields (e_lfanew, SizeOfHeaders, PointerToRawData, SizeOfRawData,
VirtualSize, certificate_table->Size) without le32toh(), so they'd
produce garbage on big-endian.

Also wrap VirtualSize in bootspec.c for consistency.
src/shared/bootspec.c
src/shared/pe-binary.c