]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Remove Incorrect and Extraneous Repcode Bounds Check
authorW. Felix Handte <w@felixhandte.com>
Thu, 31 May 2018 20:55:50 +0000 (16:55 -0400)
committerW. Felix Handte <w@felixhandte.com>
Thu, 31 May 2018 21:02:29 +0000 (17:02 -0400)
lib/compress/zstd_double_fast.c

index 401724715762e5a9cc34f3fde49c9932b29da811..fbd354043c6416c382f7eb4bad845d092f186671 100644 (file)
@@ -272,7 +272,6 @@ _match_stored:
 
             if (dictMode == ZSTD_noDict) {
                 while ( (ip <= ilimit)
-                     && (ip - offset_2 >= istart)
                      && ( (offset_2>0)
                         & (MEM_read32(ip) == MEM_read32(ip - offset_2)) )) {
                     /* store sequence */