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

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

From: Jozwiak, TomaszX <hidden>
Date: 2018-11-01 21:16:21

-----Original Message-----
From: Trahe, Fiona
Sent: Wednesday, October 31, 2018 1:40 AM
To: dev@dpdk.org
Cc: thomas@monjalon.net; akhil.goyal@nxp.com; Jozwiak, TomaszX
[off-list ref]; jerin.jacob@caviumnetworks.com; Trahe,
Fiona [off-list ref]
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 <redacted>
Signed-off-by: Fiona Trahe <redacted>
---
Acked-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help