[Bug sanitizer/85389] posix_memalign() crash with address sanitizer when passing invalid arguments
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 10 09:04:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85389
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
So it's nice what we do currently, this works for me:
$ gcc pr85329.c -fsanitize=address && ASAN_OPTIONS=allocator_may_return_null=1
./a.out
rv = 22
ptr = 0xffffffffffffffff
More information about the Gcc-bugs
mailing list