[Bug tree-optimization/108398] tree-object-size trips up with pointer arithmetic if an intermediate result is an invalid pointer

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 13 19:58:32 GMT 2023


--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
-fsanitize=undefined with no diagnostics doesn't mean code is UB free.
This testcase is still invalid.
Before the first g--;, g == &e, so g-- will set g to g - sizeof (int).  That is

More information about the Gcc-bugs mailing list