From: Mika Lindqvist Date: Sun, 12 Mar 2017 00:52:54 +0000 (+0200) Subject: deflate_medium: Remove broken overlap test. X-Git-Tag: 1.9.9-b1~662 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fdda220c62d5ba8746c2bf6f6c63da27897a90f;p=thirdparty%2Fzlib-ng.git deflate_medium: Remove broken overlap test. --- diff --git a/deflate_medium.c b/deflate_medium.c index db5d09c6f..972f5a840 100644 --- a/deflate_medium.c +++ b/deflate_medium.c @@ -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;