DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 856] gcc12 build error, app/test-flow-perf
@ 2021-10-28 12:38 bugzilla
  2022-06-15  8:38 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-10-28 12:38 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=856

            Bug ID: 856
           Summary: gcc12 build error, app/test-flow-perf
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: ferruh.yigit@intel.com
  Target Milestone: ---

With gcc 12.0.0 "gcc (GCC) 12.0.0 20211024 (experimental)"

[1/2] Compiling C object app/dpdk-test-flow-perf.p/test-flow-perf_main.c.o      
../app/test-flow-perf/main.c: In function ‘start_forwarding’:                   
../app/test-flow-perf/main.c:1565:28: warning: ‘sprintf’ may write a
terminating nul past the end of the destination [-Wformat-overflow=]            
 1565 |         sprintf(p[i++], "%d", (int)n);
      |                            ^                                            
In function ‘pretty_number’,                                                    
    inlined from ‘packet_per_second_stats’ at
../app/test-flow-perf/main.c:1620:4,                            
    inlined from ‘start_forwarding’ at ../app/test-flow-perf/main.c:1659:3:
../app/test-flow-perf/main.c:1565:9: note: ‘sprintf’ output between 2 and 5
bytes into a destination of size 4
 1565 |         sprintf(p[i++], "%d", (int)n);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~             
../app/test-flow-perf/main.c: In function ‘start_forwarding’:
../app/test-flow-perf/main.c:1565:28: warning: ‘sprintf’ may write a
terminating nul past the end of the destination [-Wformat-overflow=]
 1565 |         sprintf(p[i++], "%d", (int)n);
      |                            ^
In function ‘pretty_number’,
    inlined from ‘packet_per_second_stats’ at
../app/test-flow-perf/main.c:1620:4,
    inlined from ‘start_forwarding’ at ../app/test-flow-perf/main.c:1659:3:
../app/test-flow-perf/main.c:1565:9: note: ‘sprintf’ output between 2 and 5
bytes into a destination of size 4
 1565 |         sprintf(p[i++], "%d", (int)n);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-flow-perf/main.c: In function ‘start_forwarding’:
../app/test-flow-perf/main.c:1565:28: warning: ‘sprintf’ may write a
terminating nul past the end of the destination [-Wformat-overflow=]
 1565 |         sprintf(p[i++], "%d", (int)n);
      |                            ^
In function ‘pretty_number’,
    inlined from ‘packet_per_second_stats’ at
../app/test-flow-perf/main.c:1620:4,
    inlined from ‘start_forwarding’ at ../app/test-flow-perf/main.c:1659:3:
../app/test-flow-perf/main.c:1565:9: note: ‘sprintf’ output between 2 and 5
bytes into a destination of size 4
 1565 |         sprintf(p[i++], "%d", (int)n);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-flow-perf/main.c: In function ‘start_forwarding’:
../app/test-flow-perf/main.c:1565:28: warning: ‘sprintf’ may write a
terminating nul past the end of the destination [-Wformat-overflow=]
 1565 |         sprintf(p[i++], "%d", (int)n);
      |                            ^
In function ‘pretty_number’,
    inlined from ‘packet_per_second_stats’ at
../app/test-flow-perf/main.c:1634:4,
    inlined from ‘start_forwarding’ at ../app/test-flow-perf/main.c:1659:3:
../app/test-flow-perf/main.c:1565:9: note: ‘sprintf’ output between 2 and 5
bytes into a destination of size 4
 1565 |         sprintf(p[i++], "%d", (int)n);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-flow-perf/main.c: In function ‘start_forwarding’:
../app/test-flow-perf/main.c:1565:28: warning: ‘sprintf’ may write a
terminating nul past the end of the destination [-Wformat-overflow=]
 1565 |         sprintf(p[i++], "%d", (int)n);
      |                            ^
In function ‘pretty_number’,
    inlined from ‘packet_per_second_stats’ at
../app/test-flow-perf/main.c:1634:4,
    inlined from ‘start_forwarding’ at ../app/test-flow-perf/main.c:1659:3:
../app/test-flow-perf/main.c:1565:9: note: ‘sprintf’ output between 2 and 5
bytes into a destination of size 4
 1565 |         sprintf(p[i++], "%d", (int)n);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-flow-perf/main.c: In function ‘start_forwarding’:
../app/test-flow-perf/main.c:1565:28: warning: ‘sprintf’ may write a
terminating nul past the end of the destination [-Wformat-overflow=]
 1565 |         sprintf(p[i++], "%d", (int)n);
      |                            ^
In function ‘pretty_number’,
    inlined from ‘packet_per_second_stats’ at
../app/test-flow-perf/main.c:1634:4,
    inlined from ‘start_forwarding’ at ../app/test-flow-perf/main.c:1659:3:
../app/test-flow-perf/main.c:1565:9: note: ‘sprintf’ output between 2 and 5
bytes into a destination of size 4
 1565 |         sprintf(p[i++], "%d", (int)n);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug 856] gcc12 build error, app/test-flow-perf
  2021-10-28 12:38 [dpdk-dev] [Bug 856] gcc12 build error, app/test-flow-perf bugzilla
@ 2022-06-15  8:38 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-06-15  8:38 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=856

David Marchand (david.marchand@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.marchand@redhat.com
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from David Marchand (david.marchand@redhat.com) ---
Fixed in https://git.dpdk.org/dpdk/commit/?id=5fc2eece8d45

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

end of thread, other threads:[~2022-06-15  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 12:38 [dpdk-dev] [Bug 856] gcc12 build error, app/test-flow-perf bugzilla
2022-06-15  8:38 ` bugzilla

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 NNTP newsgroup(s).