[dpdk-dev] [PATCH] compress/qat: fix out-of-bounds error

Jozwiak, TomaszX tomaszx.jozwiak at intel.com
Thu Nov 1 22:16:16 CET 2018



> -----Original Message-----
> From: Trahe, Fiona
> Sent: Wednesday, October 31, 2018 1:40 AM
> To: dev at dpdk.org
> Cc: thomas at monjalon.net; akhil.goyal at nxp.com; Jozwiak, TomaszX
> <tomaszx.jozwiak at intel.com>; jerin.jacob at caviumnetworks.com; Trahe,
> Fiona <fiona.trahe at intel.com>
> Subject: [PATCH] compress/qat: fix out-of-bounds error
> 
> QAT array for sgls in intermediate buffer structure was #defined to 1, but
> setup code hardcoded as if 2 buffers so causing out of bounds write.
> Reworked to loop correctly using #define.
> 
> Fixes: a124830a6f00 ("compress/qat: enable dynamic huffman encoding")
> 
> Reported-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
> Signed-off-by: Fiona Trahe <fiona.trahe at intel.com>
> ---

Acked-by: Tomasz Jozwiak <tomaszx.jozwiak at intel.com


More information about the dev mailing list