<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 - Building DPDK with gcc 12 Generates stringop-overflow warnings on RHEL 8.7"
href="https://bugs.dpdk.org/show_bug.cgi?id=1195">1195</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Building DPDK with gcc 12 Generates stringop-overflow warnings on RHEL 8.7
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>23.03
</td>
</tr>
<tr>
<th>Hardware</th>
<td>POWER
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>drc@linux.vnet.ibm.com
</td>
</tr>
<tr>
<th>Target Milestone</th>
<td>---
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<pre class="bz_comment_text">Building DPDK 23.03-rc3 on ppc64le systems with RHEL 8.7 and gcc-toolset-12
(gcc v12.2.1) generates stringop-overflow overflow warnings:
[1641/2397] Compiling C object
drivers/libtmp_rte_net_tap.a.p/net_tap_rte_eth_tap.c.o
In function ‘parse_user_mac’,
inlined from ‘set_mac_type’ at ../drivers/net/tap/rte_eth_tap.c:2314:6:
../drivers/net/tap/rte_eth_tap.c:2286:47: warning: writing 1 byte into a region
of size 0 [-Wstringop-overflow=]
2286 | user_mac->addr_bytes[index++] = strtoul(mac_byte, NULL,
16);
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../lib/ethdev/rte_eth_ctrl.h:10,
from ../lib/ethdev/rte_ethdev.h:1421,
from ../lib/ethdev/ethdev_driver.h:24,
from ../drivers/net/tap/rte_eth_tap.c:10:
../lib/net/rte_ether.h: In function ‘set_mac_type’:
../lib/net/rte_ether.h:61:17: note: at offset 6 into destination object
‘addr_bytes’ of size 6
61 | uint8_t addr_bytes[RTE_ETHER_ADDR_LEN]; /**< Addr bytes in tx
order */
| ^~~~~~~~~~
Warning is not observed when building on an x86_64 system with RHEL 8.7 and
gcc-toolset-12.
</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=1195">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>