[dpdk-dev] [PATCH] l2fwd-crypto: fix coverity defect

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Apr 7 19:51:44 CEST 2016


> > When parsing crypto device type, the string was being copied
> > with strcpy(), which could overflow the destination buffer
> > (which is 32 byte long), so snprintf() should be used instead.
> >
> > This fixes coverity issue 124575:
[...]
> > Fixes: commit 49f79e86480d ("examples/l2fwd-crypto: add missing string initialization")
> >
> > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
> >
> Acked-by: Declan Doherty <declan.doherty at intel.com>

Applied, thanks


More information about the dev mailing list