> -----Original Message----- > From: Troy, Rebecca <[email protected]> > Sent: Friday, September 17, 2021 4:12 PM > To: [email protected] > Cc: Zhang, Roy Fan <[email protected]>; Troy, Rebecca > <[email protected]>; Trahe, Fiona <[email protected]>; Trybula, > ArturX <[email protected]>; [email protected]; Ashish Gupta > <[email protected]> > 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: [email protected] > Cc: [email protected] > Cc: [email protected] > > Signed-off-by: Rebecca Troy <[email protected]> > ---
Acked-by: Fan Zhang <[email protected]>

