Secure Coding Practices - Quick Reference Guide - owasp
For any reuse or distribution, you must make clear to others the license terms of
this work. .... To address this, some additional elements need to be integrated into
the early stages ... + ' ". If your standard validation routine cannot address the
following inputs, ..... Properly free allocated memory when error conditions occur.