[dpdk-dev] [PATCH] crypto: use snprintf return value correctly

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Wed Oct 11 12:09:02 CEST 2017


Hi,

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson
> Sent: Wednesday, October 11, 2017 10:58 AM
> To: Tomasz Duszynski <tdu at semihalf.com>
> Cc: dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] crypto: use snprintf return value correctly
> 
> On Wed, Oct 11, 2017 at 11:25:40AM +0200, Tomasz Duszynski wrote:
> > snprintf return value is the length of was encoded into destination
> > array excluding '\0'. Thus return value equal to the length of the
> > destination array or more means truncation.
> >
> > This commit fixes improper use of the return value.
> >
> > Signed-off-by: Tomasz Duszynski <tdu at semihalf.com>
> > ---
> Good catch.
> 
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Since this is a fix, you should add Fixes lines (one per PMD), and CC stable.

Thanks!
Pablo



More information about the dev mailing list