]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
deflate_medium: Remove broken overlap test.
authorMika Lindqvist <postmaster@raasu.org>
Sun, 12 Mar 2017 00:52:54 +0000 (02:52 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 24 Mar 2017 20:56:15 +0000 (21:56 +0100)
deflate_medium.c

index db5d09c6f735862d3c1e895c77f8eac0ffcac50d..972f5a840bbc1c005c510885c783a89f72a68381 100644 (file)
@@ -154,12 +154,6 @@ static void fizzle_matches(deflate_state *s, struct match *current, struct match
     if (likely(*match != *orig))
         return;
 
-    /* check the overlap case and just give up. We can do better in theory,
-     * but unlikely to be worth it
-     */
-    if (next->match_start + next->match_length >= current->strstart)
-        return;
-
     c = *current;
     n = *next;