summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-14 19:34:10 (GMT)
committerYann Collet <cyan@fb.com>2016-11-14 19:34:10 (GMT)
commit0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5 (patch)
tree44c9e46c871e08e76c6a4d4b5963abd52128044e
parent201149f8eb456c499014e772cdbd298045afbec3 (diff)
downloadlz4-0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5.zip
lz4-0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5.tar.gz
lz4-0fe5c187a5fe95f5c129b1eda8d743b485fc6ff5.tar.bz2
fixed minor msan warning
-rw-r--r--lib/lz4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 276c15a..e6b70bc 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -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);