[PATCH 02/43] eal: use rte strerror

Stephen Hemminger stephen at networkplumber.org
Wed Nov 15 01:18:13 CET 2023


On Tue, 14 Nov 2023 16:24:58 +0800
Dengdui Huang <huangdengdui at huawei.com> wrote:

> The function strerror() is insecure in a multi-thread environment.
> This patch uses rte_strerror() to replace it.
> 
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>

NAK.
rte_strerror() is no more thrad safe than strerror() and only
is appropriate for rte_errno, ie errors from DPDK.
It is not originally designed as strerror() replacement.


More information about the dev mailing list