zardus / preeny

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

Don't recurse mallocwatch on printf #47

Closed ZetaTwo closed 5 years ago

ZetaTwo commented 5 years ago

printf() calls malloc() internally which means that mallocwatch with info printout creates an infinite recursion. This patch fixes https://github.com/zardus/preeny/issues/45 however this is not a thread safe solution.

zardus commented 5 years ago

Good catch, thanks!