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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I don't see how this will produce an out of bounds.
So we start out with:
checking if t[d->vpath[i].len] == '/'
then we check for t[d->vpath[i].len+1] == '.' and then t[d->vpath[i].len+2] ==
'.' and then t[d->vpath[i].len+3] == '/' .

None of that could cause an out of bounds for a string of "-" in the first
place.
mainly because of this:
filename_ncmp (d->vpath[i].str, t, d->vpath[i].len) //just strncmp

So some check of out of bounds (unconditional one at that) is going incorrectly
wrong.

Reply via email to