ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

fix: Segfault when hashing regions spanning multiple MiBs

Open jfng opened this issue 7 months ago • 0 comments

Problem description

Attempting to do an MD5 hash of a large region (e.g. 2 MiB, u8 data[0x200000]) crashes with a segfault.

Implementation description

In hex::plugin::hashes::hashProviderRegionWithHashLib(), hashFunction->TransformBytes() is called with an offset of 0, because it iterates over data and not the entire region.

jfng avatar Jul 08 '24 02:07 jfng