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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Take the address of one outside of the array is valid and well defined.

That is:
&p->array[3];

is always valid and well defined.

But then you need address sanitizer to see that deferencing the pointer is
invalid.

fsanitizer=bounds is does not instrument pointers otherwise.

Reply via email to