[Bug sanitizer/84732] false-positive -Wstringop-truncation warning with -fsanitize-coverage=trace-pc

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 8 08:38:00 GMT 2018


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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
> So, the -Wstringop-truncation would need to do the suggested alias search
> for the store rather than next statement it does now, and in addition to
> that would need to ignore ASAN_CHECK, because those are guaranteed not to
> actually read the passed memory, just to check corresponding shadow memory.

Which is probably similar to what was seen in PR84307, am I right?


More information about the Gcc-bugs mailing list