<html> <head> <base href="https://bugs.dpdk.org/"> </head> <body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table"> <tr> <th>Bug ID</th> <td><a class="bz_bug_link bz_status_UNCONFIRMED " title="UNCONFIRMED - test_pktmbuf_read_from_offset tests for incorrect overflow behaviour of rte_pktmbuf_read" href="https://bugs.dpdk.org/show_bug.cgi?id=1724">1724</a> </td> </tr> <tr> <th>Summary</th> <td>test_pktmbuf_read_from_offset tests for incorrect overflow behaviour of rte_pktmbuf_read </td> </tr> <tr> <th>Product</th> <td>DPDK </td> </tr> <tr> <th>Version</th> <td>unspecified </td> </tr> <tr> <th>Hardware</th> <td>All </td> </tr> <tr> <th>OS</th> <td>All </td> </tr> <tr> <th>Status</th> <td>UNCONFIRMED </td> </tr> <tr> <th>Severity</th> <td>minor </td> </tr> <tr> <th>Priority</th> <td>Normal </td> </tr> <tr> <th>Component</th> <td>core </td> </tr> <tr> <th>Assignee</th> <td>dev@dpdk.org </td> </tr> <tr> <th>Reporter</th> <td>marat.khalili@huawei.com </td> </tr> <tr> <th>Target Milestone</th> <td>--- </td> </tr></table> <p> <div class="bz_comment_block"> <pre class="bz_comment_text">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. </pre> </div> </p> <hr> <span>You are receiving this mail because:</span> <ul> <li>You are the assignee for the bug.</li> </ul> <div itemscope itemtype="http://schema.org/EmailMessage"> <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction"> <link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1724"> <meta itemprop="name" content="View bug"> </div> <meta itemprop="description" content="Bugzilla bug update notification"> </div> </body> </html>