From: Nathan Moinvaziri Date: Tue, 26 Jan 2021 00:47:37 +0000 (-0800) Subject: Remove debug check for match beginning at start of window. X-Git-Tag: v2.0.0-RC2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b174bc9f92a7563383e20fefca8538f2ab2d44cb;p=thirdparty%2Fzlib-ng.git Remove debug check for match beginning at start of window. --- diff --git a/deflate.c b/deflate.c index 4f781ab2..1707f75c 100644 --- a/deflate.c +++ b/deflate.c @@ -1201,10 +1201,8 @@ void check_match(deflate_state *s, Pos start, Pos match, int length) { fprintf(stderr, " start %u, match %u, length %d\n", start, match, length); z_error("invalid match length"); } - /* check that the match isn't at the beginning of the window and that it isn't at - * the same position as the start string - */ - if (match == 0 || match == start) { + /* check that the match isn't at the same position as the start string */ + if (match == start) { fprintf(stderr, " start %u, match %u, length %d\n", start, match, length); z_error("invalid match position"); }