[email protected] has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/14587


Change subject: [compression] Use new lz4 API
......................................................................

[compression] Use new lz4 API

In the new version (v1.9.1) of lz4, `LZ4_decompress_fast()` is deprecated
and unsafe. It is recommended to use `LZ4_decompress_safe()`

The documentation in lz4.h is as follows:

/*! LZ4_decompress_fast() : **unsafe!**
 *  These functions used to be faster than LZ4_decompress_safe(),
 *  but it has changed, and they are now slower than LZ4_decompress_safe().
 *  This is because LZ4_decompress_fast() doesn't know the input size,
 *  and therefore must progress more cautiously in the input buffer to not read 
beyond the end of
    block.
 *  On top of that `LZ4_decompress_fast()` is not protected vs malformed or 
malicious inputs,
    making it a security liability.
 *  As a consequence, LZ4_decompress_fast() is strongly discouraged, and 
deprecated.
 */

Change-Id: Ib343fda7fff1d14ee7bc551be3ac87b068504359
---
M src/kudu/util/compression/compression_codec.cc
1 file changed, 8 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/87/14587/1
--
To view, visit http://gerrit.cloudera.org:8080/14587
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib343fda7fff1d14ee7bc551be3ac87b068504359
Gerrit-Change-Number: 14587
Gerrit-PatchSet: 1
Gerrit-Owner: Anonymous Coward <[email protected]>

Reply via email to