[Bug bootstrap/92828] array out of bounds access in libcpp/mkdeps.c

krebbel at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 5 17:31:00 GMT 2019


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

--- Comment #4 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> Are you saying the warning shows up which causes the bootstrap to fail?
> Because at runtime there should be no out of bounds access.

Yes. It is just the warning.

With an unknown value of d->vpath[i].len GCC cannot determine what the outcome
of the / check will be:

const char *p = t + d->vpath[i].len;
if (!IS_DIR_SEPARATOR (*p))
   goto not_this_one;


More information about the Gcc-bugs mailing list