e5e193acf0
build_error:
drivers/crypto/scheduler/scheduler_pmd.c: In function ‘parse_name_arg’:
drivers/crypto/scheduler/scheduler_pmd.c:372:2: error: ‘strncpy’
specified bound 64 equals destination size [-Werror=stringop-truncation]
strncpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
strncpy may result a not null-terminated string,
replaced it with strlcpy
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
rte_cryptodev_scheduler_operations.h | ||
rte_cryptodev_scheduler.c | ||
rte_cryptodev_scheduler.h | ||
rte_pmd_crypto_scheduler_version.map | ||
scheduler_failover.c | ||
scheduler_multicore.c | ||
scheduler_pkt_size_distr.c | ||
scheduler_pmd_ops.c | ||
scheduler_pmd_private.h | ||
scheduler_pmd.c | ||
scheduler_roundrobin.c |