Skip to contentSkip to conversation

gcc12 build error, lib/mbuf

dpdk-dev [email protected] 1 participant 2 messages Oct 28, 2021 – Jun 15, 2022

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 857
           Summary: gcc12 build error, lib/mbuf
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

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

../lib/mbuf/rte_mbuf_dyn.c: In function ‘rte_mbuf_dynflag_lookup’:
../lib/mbuf/rte_mbuf_dyn.c:397:17: warning: ‘memcpy’ reading 68 bytes from a region of size 64 [-Wstringop-overread]

  397 |                 memcpy(params, &mbuf_dynflag->params, sizeof(*params));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from ../lib/mbuf/rte_mbuf_dyn.c:18:
../lib/mbuf/rte_mbuf_dyn.h:98:14: note: source object ‘name’ of size 64
98 | char name[RTE_MBUF_DYN_NAMESIZE]; /**< Name of the dynamic
flag. */

      |              ^~~~
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

David Marchand ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from David Marchand ([email protected]) --- I can't reproduce with released gcc 12.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.