7c68956e
by Bernhard Übelacker at 2026-06-10T22:01:10+02:00
imagehlp/tests: Accept zero checksum if the compiler emitted a zero checksum.
Clang (llvm-mingw) emits binaries with a CheckSum of zero
in the OptionalHeader.
But in this test the call to CheckSumMappedFile with a byte count of 0
relies on the OptionalHeader->CheckSum having some non-zero value.
$ llvm-objdump -x dlls/imagehlp/tests/i386-windows/imagehlp_test.exe | grep -E "^CheckSum "
CheckSum 00000000
This is observable back to at least llvm-mingw 10.0.0.