[dpdk-stable] [PATCH] test/compress: fix buffer overflow bug

Zhang, Roy Fan roy.fan.zhang at intel.com
Mon Sep 20 15:16:28 CEST 2021


> -----Original Message-----
> From: Troy, Rebecca <rebecca.troy at intel.com>
> Sent: Friday, September 17, 2021 4:12 PM
> To: dev at dpdk.org
> Cc: Zhang, Roy Fan <roy.fan.zhang at intel.com>; Troy, Rebecca
> <rebecca.troy at intel.com>; Trahe, Fiona <fiona.trahe at intel.com>; Trybula,
> ArturX <arturx.trybula at intel.com>; stable at dpdk.org; Ashish Gupta
> <ashish.gupta at marvell.com>
> Subject: [PATCH] test/compress: fix buffer overflow bug
> 
> Fixes stack buffer overflow bug in compressdev autotest, which
> was caused by the use of buf_idx in the debug logs. Originally, buf_idx
> was treated as an array instead of the reference of an integar.
> This was fixed by replacing the use of buf_idx[priv_data->orig_idx] with
> the variable i.
> 
> Fixes: 466a2c4bb5f4 ("test/compress: improve debug logs")
> Fixes: 6bbc5a923625 ("test/compress: refactor unit tests")
> 
> Cc: fiona.trahe at intel.com
> Cc: arturx.trybula at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Rebecca Troy <rebecca.troy at intel.com>
> ---

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


More information about the stable mailing list