diff options
author | Ron Yorston <rmy@pobox.com> | 2024-06-19 10:00:39 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-06-19 10:00:39 +0100 |
commit | 0914f116c06d4724f25e23b685279024f809f434 (patch) | |
tree | eb6273f5a1f4f3f0fca111c2834ec7d7b247cce9 /arch | |
parent | 80b1e4e59d0c36ef0988570d6f32f560c1b7e0ff (diff) | |
download | busybox-w32-0914f116c06d4724f25e23b685279024f809f434.tar.gz busybox-w32-0914f116c06d4724f25e23b685279024f809f434.tar.bz2 busybox-w32-0914f116c06d4724f25e23b685279024f809f434.zip |
win32: code shrink APE detection; avoid UB
Detecting Actually Portable Executable binaries used a longer
signature than seems necessary. Six characters should be enough
for anyone.
When right shifting a byte by 24 bits, cast it to unsigned to avoid
undefined behaviour.
Saves 24-32 bytes.
(GitHub issue #424)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions