DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/ethdev Bug 1446] Fortify warnings in rte_pcapng
@ 2024-05-20 23:20 bugzilla
  2024-07-30  8:02 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2024-05-20 23:20 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 3741 bytes --]

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

            Bug ID: 1446
           Summary: Fortify warnings in rte_pcapng
           Product: DPDK
           Version: 24.03
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  Target Milestone: ---

On Ubuntu 22.04 build:

In file included from /usr/include/string.h:548,
                 from ../lib/pcapng/rte_pcapng.c:9:
In function ‘memcpy’,
    inlined from ‘pcapng_add_option’ at ../lib/pcapng/rte_pcapng.c:131:2,
    inlined from ‘pcapng_section_block’ at ../lib/pcapng/rte_pcapng.c:192:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: argument
2 null where non-null expected [-Wnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to
built-in function ‘__builtin___memcpy_chk’
In function ‘memcpy’,
    inlined from ‘pcapng_add_option’ at ../lib/pcapng/rte_pcapng.c:131:2,
    inlined from ‘rte_pcapng_add_interface’ at
../lib/pcapng/rte_pcapng.c:308:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: argument
2 null where non-null expected [-Wnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to
built-in function ‘__builtin___memcpy_chk’
In function ‘memcpy’,
    inlined from ‘pcapng_add_option’ at ../lib/pcapng/rte_pcapng.c:131:2,
    inlined from ‘rte_pcapng_write_stats’ at ../lib/pcapng/rte_pcapng.c:371:9:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: argument
2 null where non-null expected [-Wnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to
built-in function ‘__builtin___memcpy_chk’
[1964/2680] Compiling C object
drivers/libtmp_rte_net_virtio.a.p/net_virtio_virtio_user_vhost_user.c.o
In file included from /usr/include/string.h:548,
                 from /usr/include/x86_64-linux-gnu/sys/un.h:38,
                 from ../drivers/net/virtio/virtio_user/vhost_user.c:10:
In function ‘memcpy’,
    inlined from ‘vhost_user_write.constprop’ at
../drivers/net/virtio/virtio_user/vhost_user.c:131:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: argument
2 null where non-null expected [-Wnonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: note: in a call to
built-in function ‘__builtin___memcpy_chk’

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

[-- Attachment #2: Type: text/html, Size: 5599 bytes --]

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

* [DPDK/ethdev Bug 1446] Fortify warnings in rte_pcapng
  2024-05-20 23:20 [DPDK/ethdev Bug 1446] Fortify warnings in rte_pcapng bugzilla
@ 2024-07-30  8:02 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2024-07-30  8:02 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

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

Thomas Monjalon (thomas@monjalon.net) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Thomas Monjalon (thomas@monjalon.net) ---
Resolved in http://git.dpdk.org/dpdk/commit/?id=0ad961387e

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

[-- Attachment #2: Type: text/html, Size: 2559 bytes --]

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

end of thread, other threads:[~2024-07-30  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-20 23:20 [DPDK/ethdev Bug 1446] Fortify warnings in rte_pcapng bugzilla
2024-07-30  8:02 ` 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).