[Bug sanitizer/114494] false-positive with -O2 -Wstringop-overflow=2 -fsanitize=address
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 27 07:37:08 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114494
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 99673.
```
_14 = &MEM[(struct ip_header *)saved_buffer_5(D) + 4B].ip_ver_len;
...
_3 = _14 + _2;
...
MEM[(char * {ref-all})_3] = _10;
```
Without -fsanitize=address, there is no `&MEM[(struct ip_header
*)saved_buffer_5(D) + 4B].ip_ver_len` but rather just `eth_payload_data_6 =
saved_buffer_5(D) + 4`.
See the duplicate bug for more analysis of the issue.
*** This bug has been marked as a duplicate of bug 99673 ***
More information about the Gcc-bugs
mailing list