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

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 6 18:04:00 GMT 2019


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

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Rather than suppressing the warning via a pragma, would replacing the call to
  deps_add_target (d, "-", 1);
with
  d->targets.push (xstrdup (t));
be a better solution?  Unless I've overlooked something it should have the same
effect because "-" has no path separator in it and so apply_vpath won't do
anything with it and neither will deps_add_target.


More information about the Gcc-bugs mailing list