https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105762
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=99578
Status|NEW |RESOLVED
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
There is no object at address 1 (or at any "made up" address) so dereferencing
that address is undefined. The warning is designed to detect accesses at
nonzero offsets from null (e.g., p->x or p[i]). It was relaxed to accommodate
a subset of the use cases where the offset is above 4k (see pr99578).