[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


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
rv = 22
ptr = 0xffffffffffffffff

More information about the Gcc-bugs mailing list