public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/92943] missing -Wformat-overflow with an allocated buffer with non-constant size in known range
[not found] <bug-92943-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-23 7:40 ` pinskia at gcc dot gnu.org
2022-01-04 21:31 ` [Bug tree-optimization/92943] " msebor at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-23 7:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92943
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.3.0
Known to work| |11.1.0
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2021-12-23
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems fixed in GCC 11+:
<source>: In function 'h':
<source>:23:26: warning: '%i' directive writing 5 bytes into a region of size 4
[-Wformat-overflow=]
23 | __builtin_sprintf (p, "%i", 12345); // overflow not detected
| ^~
<source>:23:3: note: '__builtin_sprintf' output 6 bytes into a destination of
size 4
23 | __builtin_sprintf (p, "%i", 12345); // overflow not detected
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/92943] missing -Wformat-overflow with an allocated buffer with non-constant size in known range
[not found] <bug-92943-4@http.gcc.gnu.org/bugzilla/>
2021-12-23 7:40 ` [Bug middle-end/92943] missing -Wformat-overflow with an allocated buffer with non-constant size in known range pinskia at gcc dot gnu.org
@ 2022-01-04 21:31 ` msebor at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-01-04 21:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92943
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org
Status|NEW |RESOLVED
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed by r11-5622 (AKA PR middle-end/97373).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-04 21:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-92943-4@http.gcc.gnu.org/bugzilla/>
2021-12-23 7:40 ` [Bug middle-end/92943] missing -Wformat-overflow with an allocated buffer with non-constant size in known range pinskia at gcc dot gnu.org
2022-01-04 21:31 ` [Bug tree-optimization/92943] " 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).