[dpdk-dev] [PATCH v2] app/test: fix sprintf with strlcat

Aaron Conole aconole at redhat.com
Wed Mar 13 14:51:29 CET 2019


Pallantla Poornima <pallantlax.poornima at intel.com> writes:

> sprintf function is not secure as it doesn't check the length of string.
> More secure function strlcat is used.
>
> Fixes: 727909c592 ("app/test: introduce dynamic commands list")
> Cc: stable at dpdk.org
>
> Signed-off-by: Pallantla Poornima <pallantlax.poornima at intel.com>
> ---
> v2: Used strlcat to avoid buffer overflow.
> ---

LGTM.

Reviewed-by: Aaron Conole <aconole at redhat.com>


More information about the dev mailing list