[dpdk-dev] [Bug 856] gcc12 build error, app/test-flow-perf
bugzilla at dpdk.org
bugzilla at dpdk.org
Thu Oct 28 14:38:41 CEST 2021
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 at dpdk.org
Reporter: ferruh.yigit at 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.
More information about the dev
mailing list