zardus / preeny

Some helpful preload libraries for pwning stuff.
BSD 2-Clause "Simplified" License
1.56k stars 171 forks source link

Adding check if dlsym was called before calling malloc+free family. #60

Closed sudhackar closed 5 years ago

sudhackar commented 5 years ago

Fixes #59

Verify if original_malloc was actually resolved before calling it. If not, just call preeny_mallocwatch_orig to get it resolved. Technically free and realloc would never be called in a scenario like that but added just in case.

zardus commented 5 years ago

Thanks!