https://www.kernel.org/doc/Documentation/vm/overcommit-accou...
But an app which thinks it has successfully been allocated memory, being chosen at random to crash? Not ideal, just like in OP's example.
https://www.kernel.org/doc/Documentation/vm/overcommit-accou...