Versions Compared

Key

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

...

Code Block
bgColor#ccccff
void report_error(char const *msg) {
  printf("Error: %s\n", msg);
}

Risk Assessment

Splint Version 3.1.1 can detect violations of this rule.

Accessing uninitialized variables generally leads to unexpected program behavior. In some cases these types of flaws may allow the execution of arbitrary code.

...