[dpdk-dev] [dpdk-stable] [PATCH v2 2/2] eal: fix build with gcc 9.0

Thomas Monjalon thomas at monjalon.net
Sun Nov 4 22:38:58 CET 2018


02/11/2018 20:06, Ferruh Yigit:
> build error:
> In function ‘eal_plugin_add’,
>     .../lib/librte_eal/common/eal_common_options.c:225:2:
>     error: ‘strncpy’ output may be truncated copying 4095 bytes from a
>            string of length 4095 [-Werror=stringop-truncation]
>     strncpy(solib->name, path, PATH_MAX-1);
> 
> strncpy may result a not null-terminated string,
> replaced it with strlcpy
> 
> Fixes: fa9cdc6f8410 ("eal: move plugin loading from linuxapp to common")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>

Series applied, thanks




More information about the dev mailing list