Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki MarkupDo 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 \[[copies (see STR31-C. Guarantee that storage for strings has sufficient space for character data and the NULL terminator]\]).

Non-Compliant Code Example

...