[Bug sanitizer/62307] -fsanitize=undefined doesn't pay attention to __attribute__((returns_nonnull))
samsonov at google dot com
gcc-bugzilla@gcc.gnu.org
Fri Aug 29 21:09:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62307
--- Comment #3 from Alexey Samsonov <samsonov at google dot com> ---
FYI, Jakub has proposed a patch to add additional check to -fsanitize=undefined
that would specifically sanitize functions with returns_nonnull attribute:
however, it would sanitize bodies of the function and insert checks before
return-statements to verify in runtime that the function actually doesn't
return null.
More information about the Gcc-bugs
mailing list