silence a minor msan warning
This commit is contained in:
parent
0fe5c187a5
commit
f094f53144
@ -1168,6 +1168,7 @@ FORCE_INLINE int LZ4_decompress_generic(
|
|||||||
offset = LZ4_readLE16(ip); ip+=2;
|
offset = LZ4_readLE16(ip); ip+=2;
|
||||||
match = op - offset;
|
match = op - offset;
|
||||||
if ((checkOffset) && (unlikely(match < lowLimit))) goto _output_error; /* Error : offset outside buffers */
|
if ((checkOffset) && (unlikely(match < lowLimit))) goto _output_error; /* Error : offset outside buffers */
|
||||||
|
LZ4_write32(op, offset); /* costs ~1%; silence an msan warning when offset==0 */
|
||||||
|
|
||||||
/* get matchlength */
|
/* get matchlength */
|
||||||
length = token & ML_MASK;
|
length = token & ML_MASK;
|
||||||
|
@ -824,7 +824,8 @@ static unsigned long long LZ4IO_decompressLZ4F(dRess_t ress, FILE* srcFile, FILE
|
|||||||
|
|
||||||
/* Write Block */
|
/* Write Block */
|
||||||
if (decodedBytes) {
|
if (decodedBytes) {
|
||||||
if (!g_testMode) storedSkips = LZ4IO_fwriteSparse(dstFile, ress.dstBuffer, decodedBytes, storedSkips);
|
if (!g_testMode)
|
||||||
|
storedSkips = LZ4IO_fwriteSparse(dstFile, ress.dstBuffer, decodedBytes, storedSkips);
|
||||||
filesize += decodedBytes;
|
filesize += decodedBytes;
|
||||||
DISPLAYUPDATE(2, "\rDecompressed : %u MB ", (unsigned)(filesize>>20));
|
DISPLAYUPDATE(2, "\rDecompressed : %u MB ", (unsigned)(filesize>>20));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user