[DPDK/core Bug 1724] test_pktmbuf_read_from_offset tests for incorrect overflow behaviour of rte_pktmbuf_read

bugzilla at dpdk.org bugzilla at dpdk.org
Mon Jun 16 16:41:21 CEST 2025


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

            Bug ID: 1724
           Summary: test_pktmbuf_read_from_offset tests for incorrect
                    overflow behaviour of rte_pktmbuf_read
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: core
          Assignee: dev at dpdk.org
          Reporter: marat.khalili at huawei.com
  Target Milestone: ---

Test function test_pktmbuf_read_from_offset as one of its checks
surprisingly verifies that the following call succeeds even though
rte_pktmbuf_read never guarantees this behaviour in its documentation:

    rte_pktmbuf_read(m, hdr_len, UINT_MAX, NULL);

The reason this call succeeds is due to 32-bit unsigned integer
overflow, but it is unlikely that this behaviour is intentional and
needs testing. It is very likely instead that the check condition was
reversed by mistake. Other similar calls that follow are being correctly
verified as failing. And, there were no checks of valid offset and
excessive length combinations that would cause the call to fail.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250616/5b131087/attachment.htm>


More information about the dev mailing list