public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size
       [not found] <bug-93517-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-28 11:56 ` vincent.riviere at freesbee dot fr
  2020-04-28 14:23 ` msebor at gcc dot gnu.org
  2022-05-25 16:31 ` msebor at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: vincent.riviere at freesbee dot fr @ 2020-04-28 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

Vincent Riviere <vincent.riviere at freesbee dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent.riviere at freesbee dot fr

--- Comment #1 from Vincent Riviere <vincent.riviere at freesbee dot fr> ---
Bug #94815 is similar to this one.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size
       [not found] <bug-93517-4@http.gcc.gnu.org/bugzilla/>
  2020-04-28 11:56 ` [Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size vincent.riviere at freesbee dot fr
@ 2020-04-28 14:23 ` msebor at gcc dot gnu.org
  2022-05-25 16:31 ` msebor at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-28 14:23 UTC (permalink / raw)
  To: gcc-bugs

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.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size
       [not found] <bug-93517-4@http.gcc.gnu.org/bugzilla/>
  2020-04-28 11:56 ` [Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size vincent.riviere at freesbee dot fr
  2020-04-28 14:23 ` msebor at gcc dot gnu.org
@ 2022-05-25 16:31 ` msebor at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-05-25 16:31 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
I'm not able to reproduce the warning with any released version, or on trunk.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-25 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93517-4@http.gcc.gnu.org/bugzilla/>
2020-04-28 11:56 ` [Bug middle-end/93517] bogus -Wrestrict on sprintf with unknown strings bounded by array size vincent.riviere at freesbee dot fr
2020-04-28 14:23 ` msebor at gcc dot gnu.org
2022-05-25 16:31 ` msebor at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).