From 1fbaf843066caec21489d178fc348dbe62939a90 Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Fri, 25 Jan 2019 16:06:55 -0800 Subject: [PATCH] decompress_generic: remove msan write This store is also causing load-blocked-by-store issues, remove it. The msan warning will have to be fixed another way if it is still an issue. --- lib/lz4.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/lz4.c b/lib/lz4.c index a18401a..614df2b 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -1581,11 +1581,6 @@ LZ4_decompress_generic( length = token & ML_MASK; if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) goto _output_error; /* Error : offset outside buffers */ - if (!partialDecoding) { - assert(oend > op); - assert(oend - op >= 4); - LZ4_write32(op, 0); /* silence an msan warning when offset==0; costs <1%; */ - } /* note : when partialDecoding, there is no guarantee that at least 4 bytes remain available in output buffer */ if (length == ML_MASK) { variable_length_error error = ok;