Versions Compared

Key

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

...

Code Block
bgColor#ccccFF
char *env;
char *copy_of_env;

if((env = getenv("TEST_ENV");
)) != NULL) {
   copy_of_env = malloc(strlen(env) + 1);
/* Error handling */


   if(copy_of_env != NULL) {
      strcpy(copy_of_env, env);
   }
   else {
      /* Error handling */
   }

   copy_of_env[0] = 'a';
}

Risk Assessment

...