[Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size

2022-05-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93517

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Martin Sebor  ---
I'm not able to reproduce the warning with any released version, or on trunk.

[Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size

2020-04-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93517

--- Comment #2 from Martin Sebor  ---
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.)

[Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size

2020-04-28 Thread vincent.riviere at freesbee dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93517

Vincent Riviere  changed:

   What|Removed |Added

 CC||vincent.riviere at freesbee 
dot fr

--- Comment #1 from Vincent Riviere  ---
Bug #94815 is similar to this one.