public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/113752] New: [14 Regression] warning: ‘%s’ directive writing up to 10218 bytes into a region of size between 0 and 10240 [-Wformat-overflow=]
@ 2024-02-04  4:34 hjl.tools at gmail dot com
  2024-02-04  4:47 ` [Bug tree-optimization/113752] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2024-02-04  4:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113752
           Summary: [14 Regression] warning: ‘%s’ directive writing up to
                    10218 bytes into a region of size between 0 and 10240
                    [-Wformat-overflow=]
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

Created attachment 57315
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57315&action=edit
A testcase

[hjl@gnu-tgl-2 tmp]$  /usr/gcc-14.0.1-x32-apx/bin/gcc -O3 -S x.i -Wall 
In file included from tests-mbwc/tst_wctype.c:8:
tests-mbwc/tsp_common.c: In function ‘result.constprop.isra’:
tests-mbwc/tsp_common.c:55:24: warning: ‘%s’ directive writing up to 10218
bytes into a region of size between 0 and 10240 [-Wformat-overflow=]
tests-mbwc/tsp_common.c:55:3: note: ‘sprintf’ output between 18 and 20484 bytes
into a destination of size 10256
[hjl@gnu-tgl-2 tmp]$ 

GCC 13 is OK.

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

end of thread, other threads:[~2024-05-07  7:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-04  4:34 [Bug c/113752] New: [14 Regression] warning: ‘%s’ directive writing up to 10218 bytes into a region of size between 0 and 10240 [-Wformat-overflow=] hjl.tools at gmail dot com
2024-02-04  4:47 ` [Bug tree-optimization/113752] " pinskia at gcc dot gnu.org
2024-02-04  5:58 ` hjl.tools at gmail dot com
2024-02-04  6:15 ` hjl.tools at gmail dot com
2024-02-12  9:46 ` [Bug tree-optimization/113752] [14 Regression] warning: ‘%s’ directive writing up to 10218 bytes into a region of size between 0 and 10240 [-Wformat-overflow=] since r14-261-g0ef3756adf078c aldyh at gcc dot gnu.org
2024-02-12 10:09 ` jakub at gcc dot gnu.org
2024-02-12 10:23 ` jakub at gcc dot gnu.org
2024-02-12 13:52 ` hjl.tools at gmail dot com
2024-02-13 11:36 ` jakub at gcc dot gnu.org
2024-03-07 20:41 ` law at gcc dot gnu.org
2024-05-07  7:44 ` [Bug tree-optimization/113752] [14/15 " rguenth 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).