[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 8 13:44:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397
--- Comment #7 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Steinar H. Gunderson from comment #6)
> So basically GCC is worried that I might be calling allocate() with -1
> bytes, and gives a warning?
Yes, although it might not always give the warning, depends on various
heuristics.
> last_slash presumably has to be >= path, given that it comes out of
> strrchr().
It doesn't directly, there is a lot of last_slash-- with various conditions.
More information about the Gcc-bugs
mailing list