News for hackers. Stuff that matters.
Re:Nommu Linux by loeg on Monday October 10, 2016 @11:40AM (#12677705)
> But I guess you could also use a special malloc that randomly returns NULL to do that..

On Linux, set the sysctl vm.overcommit_memory = 2.

You can also usually instruct libc to trash freed memory as a debugging mode. But I don't know how to get glibc to do so. Valgrind is good at tracking this kind of thing as well, although slower.

There are no comments on this comment yet.