* [DPDK/core Bug 1820] pcapng: compile warning with gcc-16
@ 2025-11-04 5:16 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2025-11-04 5:16 UTC (permalink / raw)
To: dev
http://bugs.dpdk.org/show_bug.cgi?id=1820
Bug ID: 1820
Summary: pcapng: compile warning with gcc-16
Product: DPDK
Version: 25.07
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: stephen@networkplumber.org
Target Milestone: ---
../lib/pcapng/rte_pcapng.c:133:17: warning: ‘memcpy’ forming offset [2048,
65551] is out of the bounds [0, 2048] of object ‘buf’ with type ‘uint32_t[512]’
{aka ‘unsigned int[512]’} [-Warray-bounds=]
133 | memcpy(popt->data, data, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/pcapng/rte_pcapng.c: In function ‘rte_pcapng_write_stats’:
../lib/pcapng/rte_pcapng.c:336:18: note: ‘buf’ declared here
336 | uint32_t buf[PCAPNG_BLKSIZ];
| ^~~
Likely because comment could have a large size and overrun buffer?
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-04 5:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 5:16 [DPDK/core Bug 1820] pcapng: compile warning with gcc-16 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).