> # http://udrepper.livejournal.com/11429.html
> export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
> echo 1>&2 MALLOC_PERTURB_=$MALLOC_PERTURB_ " # $HOME/.bash_profile"
> This will cause all bytes in newly malloc()ed areas to be set to the
> same random byte. [Or, specify a constant such as
> export MALLOC_PERTURB_=0xF5
The current implementation within glibc-2.17 uses
(0xff & (0xff ^ atoi(getenv("MALLOC_PERTURB_"))))
so you suffer the vagaries of atoi() and a bit-wise complement.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users