Make use of `diagnose_if`
Closed this issue · 0 comments
jvoisin commented
Make use of diagnose_if
for things like:
-
memset
calledn
set to0
, likely indicating that arguments got inverted. -
realpath
withpath
set toNULL
, likely indicating that arguments got inverted. -
umask
withmode & ~0777
. - printf format strings may only contain the %n format specifier if the format string resides in read-only memory.
- it's not possible to implement this in a non-cursed way
And add tests for it.