This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/80797] -fsanitize=null doesn't instrument &s->x


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80797

--- Comment #4 from Vittorio Zecca <zeccav at gmail dot com> ---
I applied your patch to version 8 trunk 247930 and it seems to work,
but on your example I get 

ubsan-1.c:10:8: runtime error: member access within null pointer of type
'struct S'
ubsan-1.c:11:8: runtime error: member access within null pointer of type
'struct S'

pointing at column 8 to v and v2.
Shouldn't they point to s or i?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]