Wiki Markup |
---|
Do not make any assumptions about the size of environment variables, as an adversary could have full control over the environment. Calculate the length of the strings yourself, and dynamically allocate memory for your copies \[[STR31-C. Guarantee that storage for strings has sufficient space for character data and the NULL terminator]\]. |
Non-Compliant Code Example
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
ENV01-A | 3 (high) | 1 3(unlikelylikely) | 3 (low) | P9 P27 | L2 L1 |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...