Re: [dpdk-dev] [PATCH v1] metrics: fix missing NULL termination

2017-07-19 Thread Thomas Monjalon
18/07/2017 12:43, Remy Horton: > 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

[dpdk-dev] [PATCH v1] metrics: fix missing NULL termination

2017-07-18 Thread Remy Horton
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