> -----Original Message----- > From: Troy, Rebecca <rebecca.t...@intel.com> > Sent: Friday, September 17, 2021 4:12 PM > To: dev@dpdk.org > Cc: Zhang, Roy Fan <roy.fan.zh...@intel.com>; Troy, Rebecca > <rebecca.t...@intel.com>; Trahe, Fiona <fiona.tr...@intel.com>; Trybula, > ArturX <arturx.tryb...@intel.com>; sta...@dpdk.org; Ashish Gupta > <ashish.gu...@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.tr...@intel.com > Cc: arturx.tryb...@intel.com > Cc: sta...@dpdk.org > > Signed-off-by: Rebecca Troy <rebecca.t...@intel.com> > ---
Acked-by: Fan Zhang <roy.fan.zh...@intel.com>