From: Yann Collet Date: Sun, 4 Feb 2024 01:48:29 +0000 (-0800) Subject: fixed wrong assert X-Git-Tag: v1.5.6^2~70^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5af24c5fa82186d61ee1ed4dfe161d65a1c1a7d;p=thirdparty%2Fzstd.git fixed wrong assert --- diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index bbf367b24..bcebfaa35 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -1325,7 +1325,6 @@ _shortestPath: /* cur, last_pos, best_mlen, best_off have to be set */ assert(opt[0].mlen == 0); assert(last_pos >= lastStretch.mlen); assert(cur == last_pos - lastStretch.mlen); - assert(lastStretch.rep[0] != 0); if (lastStretch.mlen==0) { /* no solution : all matches have been converted into literals */