numam-dpdk/lib/librte_metrics
Remy Horton fa43ac7729 metrics: fix name string termination
The public API (struct rte_metric_name) includes the NULL terminator
byte in RTE_METRICS_MAX_NAME_LENGTH but the library itself internally
excludes it. This makes it possible for an application to receive an
unterminated name string. Fix be enforcing the NULL termination of all
name strings to the length that the public API expects.

Fixes: 349950ddb9 ("metrics: add information metrics library")
Cc: stable@dpdk.org

Signed-off-by: Remy Horton <remy.horton@intel.com>
2017-07-20 00:06:07 +03:00
..
Makefile metrics: add information metrics library 2017-04-05 17:58:51 +02:00
rte_metrics_version.map metrics: add information metrics library 2017-04-05 17:58:51 +02:00
rte_metrics.c metrics: fix name string termination 2017-07-20 00:06:07 +03:00
rte_metrics.h metrics: fix name string termination 2017-07-20 00:06:07 +03:00