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: dev@dpdk.org
          Reporter: ferruh.yi...@intel.com
  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. */
      |              ^~~~

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

Reply via email to