[Bug sanitizer/99673] [11 Regression] bogus -Wstringop-overread warning with address sanitizer due to member address substitution

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 21 12:59:10 GMT 2022


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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:caca8eddd9356777f5fe28454eb083b1779adc26

commit r12-6793-gcaca8eddd9356777f5fe28454eb083b1779adc26
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Jan 21 13:57:12 2022 +0100

    sanitizer/99673 - bad -Wstringop-overread diagnostic with asan

    The testcase got fixed by lowering of &MEM[ptr + CST] to ptr + CST.

    2022-01-21  Richard Biener  <rguenther@suse.de>

            PR sanitizer/99673
            * gcc.dg/asan/pr99673.c: New testcase.


More information about the Gcc-bugs mailing list