[dpdk-stable] [PATCH 1/3] examples/fips_validation: fix buffer overflow

Zhang, Roy Fan roy.fan.zhang at intel.com
Tue Oct 6 10:48:18 CEST 2020



> -----Original Message-----
> From: Olivier Matz <olivier.matz at 6wind.com>
> Sent: Tuesday, October 6, 2020 8:42 AM
> To: dev at dpdk.org
> Cc: Kovacevic, Marko <marko.kovacevic at intel.com>; Akhil Goyal
> <akhil.goyal at nxp.com>; Zhang, Roy Fan <roy.fan.zhang at intel.com>; Kusztal,
> ArkadiuszX <arkadiuszx.kusztal at intel.com>; stable at dpdk.org
> Subject: [PATCH 1/3] examples/fips_validation: fix buffer overflow
> 
> If the file name is larger than MAX_STRING_SIZE (64), strcpy()
> will overwrite the content of memory.
> 
> Replace strcpy() by rte_strscpy(), check its return value, and
> increase file_name size to 256.
> 
> Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> ---

Acked-by: Fan Zhang <roy.fan.zhang at intel.com>


More information about the stable mailing list