-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid free in MiniPS::delete0 (in minips.cpp:222) #28
Comments
I'm not able to reproduce this bug as of a6621e9. Valgrind doesn't print any errors:
If you can reproduce this bug with the latest sam2p commit and Valgrind, please reopen this issue. |
@pts Well, i also find the problem later, you should disable ASAN when you compile with gcc7.x (but no problem in gcc 5.x). That means you can't compile the project with flag "-ggdb -fsanitize=address" :
|
Hi, I use your command to build sam2p, but i cannot get the exact source file where things go wrong, |
Thank you for the additional details! I need more time to debug this. Please confirm the commit ID of your sam2p Git repo. |
I still can't reproduce this bug without ASAN:
I can't reproduce this bug with ASAN either:
I'm closing this issue for now. Feel free to reopen it if you have more information on how this can be reproduced. |
There is an invalid free in MiniPS::delete0 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/011-freenomalloc-minips
The text was updated successfully, but these errors were encountered: