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|STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator]\]. |
Non-Compliant Code Example
...