Thread (7 messages) 7 messages, 5 authors, 2018-11-02

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

From: Jerin Jacob <hidden>
Date: 2018-10-31 06:35:13

-----Original Message-----
Date: Wed, 31 Oct 2018 00:39:54 +0000
From: Fiona Trahe <redacted>
To: dev@dpdk.org
CC: thomas@monjalon.net, akhil.goyal@nxp.com, tomaszx.jozwiak@intel.com,
 jerin.jacob@caviumnetworks.com, Fiona Trahe [off-list ref]
Subject: [PATCH] compress/qat: fix out-of-bounds error
X-Mailer: git-send-email 1.7.0.7


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 <redacted>
Signed-off-by: Fiona Trahe <redacted>
clang build is not reproducible with this patch.

Tested-by: Jerin Jacob <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help