[Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 28 14:23:38 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93517
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
This bug is different than PR94815 because here the warning code should be able
to determine that the sprintf call cannot overlap based on the sizes of the
array arguments that put an upper bound on the lengths of the strings stored in
the arrays. (In PR94815 the sizes of the arrays aren't known and neither are
the lengths of the strings stored in them.)
More information about the Gcc-bugs
mailing list