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

Thomas Monjalon thomas at monjalon.net
Wed Jul 19 18:13:07 CEST 2017


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 termination of all
> name strings to the length that the public API expects.
> 
> Fixes: 349950ddb9c5 ("metrics: add information metrics library")
> 
> Signed-off-by: Remy Horton <remy.horton at intel.com>

Applied, thanks



More information about the dev mailing list