Malloc Never Fails (2012)

Malloc Never Fails (2012)

Let’s try it out; here’s a program that repeatedly allocates \(1\) GB memory chunks until it fails. If we the above program, we see that it’s ing 1 GB chunks of private, anonymous memory for file descriptor \(-1\). In my case, I saw the test program chew through about \(3\) GB of memory after allocating \(130315\) GB.

Source: scvalex.net