Closed fantasy7082 closed 6 years ago
Thank you for reporting this! I'm not able to reproduce this bug as of a6621e996f976912252018be8a8836ee6a966ee3. Valgrind doesn't print any errors:
==6510==
==6510== HEAP SUMMARY:
==6510== in use at exit: 0 bytes in 0 blocks
==6510== total heap usage: 2,980 allocs, 2,980 frees, 372,737 bytes allocated
==6510==
==6510== All heap blocks were freed -- no leaks are possible
==6510==
==6510== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 1)
--6510--
--6510-- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
==6510==
==6510== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 1)
If you can reproduce this bug with the latest sam2p commit and Valgrind, please reopen this issue.
There is an invalid free in Mapping::DoubleHash::clear that leads to a Segmentation fault at sam2p 0.49.4. A crafted input will lead to denial of service attack. Steps to Reproduce:
POC FILE:https://github.com/fantasy7082/image_test/blob/master/017-freenomalloc-mapping