zfsonlinux/zfs — pull request #2430 by dweeezil (2014-06-27 12:21:55+00:00)
Title: Illumos 4936 fix potential overflow in lz4

4936 lz4 could theoretically overflow a pointer with a certain input
Reviewed by: Saso Kiselkov
Reviewed by: Keith Wesolowski
Approved by: Gordon Ross
Ported by: Tim Chase

Porting notes:

This fixes the widely-reported "20-year-old vulnerability" in
LZO/LZ4 implementations which inherited said bug from the reference
implementation.

Added several comments regarding the removal of real_LZ4_uncompress()
which exists in the reference implementation but has been removed here
since it's not used.