jvoisin/fortify-headers

Make use of `diagnose_if`

Closed this issue · 0 comments

Make use of diagnose_if for things like:

  • memset called n set to 0, likely indicating that arguments got inverted.
  • realpath with path set to NULL, likely indicating that arguments got inverted.
  • umask with mode & ~0777.
  • printf format strings may only contain the %n format specifier if the format string resides in read-only memory.

And add tests for it.