diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-24 16:59:01 -0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-02 12:06:41 +0200 |
commit | 8cef3ce4dab51a09ac4ba1cefedaa89aaf02ee9a (patch) | |
tree | 052e44102d91766b5de726846a3812416155f380 /crypto | |
parent | 591cb1f862018995e04a596b9bb0c469016c1c99 (diff) |
lz4: fix another possible overrun
commit 4148c1f67abf823099b2d7db6851e4aea407f5ee upstream.
There is one other possible overrun in the lz4 code as implemented by
Linux at this point in time (which differs from the upstream lz4
codebase, but will get synced at in a future kernel release.) As
pointed out by Don, we also need to check the overflow in the data
itself.
While we are at it, replace the odd error return value with just a
"simple" -1 value as the return value is never used for anything other
than a basic "did this work or not" check.
Reported-by: "Don A. Bailey" <donb@securitymouse.com>
Reported-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions