Fix checksum calculation#60
Fix checksum calculation#60williballenthin merged 1 commit intowilliballenthin:masterfrom msuhanov:master
Conversation
|
whoa, very cool. thanks for sharing. do you happen to have documentation of this, or discovered via testing? |
|
I'd argue that this is not true, but will try to test, @williballenthin whrw you able to confirm/reproduce ? Would it be possible to get a test case for this? |
|
Hello.
This was discovered by disassembling a Windows kernel. You can also find the same algorithm in WRK and ReactOS. The test case (for the null XOR-32 result) is attached to this message: v-SOFTWARE - checksum.gz (Windows will mount this hive without an error, but an invalid checksum with a missing transaction log file will produce an error message). Also, this issue is documented here. |
The checksum algorithm is not a plain XOR-32, there are two edge cases: