Versions Compared

Key

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

...

This noncompliant code example is exactly the same as the first noncompliant code example but uses the POSIX function syslog() [Open Group 2004 [IEEE Std 1003.1:2013] instead of the fprintf() function, which is also susceptible to format-string vulnerabilities:

...

Bibliography

[Open Group 2004IEEE Std 1003.1:2013]XSH, System Interfaces, syslog()
[Seacord 2013]Chapter 6, "Formatted Output"
[Viega 2005]Section 5.2.23, "Format String Problem"

...