...
This rule appears in the Java Secure Coding Standard as FIO07-J. Do not assume infinite heap space.
References
TODO
...
FIO38-J. Validate user input 07. Input Output (FIO) FIO31-J. Create a copy of mutable inputs 08. Memory Management (MEM) MEM12-C. Use a Goto-Chain when leaving a function on error when using and releasing resources