From 0700585fb978cfb78699d2f0295fdbcac24e368c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 12 Dec 2015 12:54:48 +0100 Subject: [PATCH] fixed asan warning --- lib/zstd_compress.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zstd_compress.c b/lib/zstd_compress.c index 11e61388..83f85c77 100644 --- a/lib/zstd_compress.c +++ b/lib/zstd_compress.c @@ -1034,6 +1034,7 @@ static U32 ZSTD_insertBt1(ZSTD_CCtx* zc, const BYTE* const ip, const U32 mls, co const U32 windowLow = zc->lowLimit; if ( (current-matchIndex == 1) /* RLE */ + && (matchIndex > windowLow) && (MEM_read64(match) == MEM_read64(ip)) ) { size_t rleLength = ZSTD_count(ip+8, match+8, iend) + 8;