diff options
author | Yann Collet <cyan@fb.com> | 2016-11-14 19:34:10 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-14 19:34:10 (GMT) |
commit | 0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5 (patch) | |
tree | 44c9e46c871e08e76c6a4d4b5963abd52128044e /lib/lz4.c | |
parent | 201149f8eb456c499014e772cdbd298045afbec3 (diff) | |
download | lz4-0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5.zip lz4-0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5.tar.gz lz4-0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5.tar.bz2 |
fixed minor msan warning
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -159,7 +159,7 @@ static unsigned LZ4_64bits(void) { return sizeof(void*)==8; } static unsigned LZ4_isLittleEndian(void) { - const union { U32 i; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ + const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ return one.c[0]; } @@ -1113,7 +1113,7 @@ FORCE_INLINE int LZ4_decompress_generic( const BYTE* const lowLimit = lowPrefix - dictSize; const BYTE* const dictEnd = (const BYTE*)dictStart + dictSize; - const unsigned dec32table[] = {4, 1, 2, 1, 4, 4, 4, 4}; + const unsigned dec32table[] = {0, 1, 2, 1, 4, 4, 4, 4}; const int dec64table[] = {0, 0, 0, -1, 0, 1, 2, 3}; const int safeDecode = (endOnInput==endOnInputSize); |