From: Yann Collet Date: Wed, 15 Nov 2017 23:35:56 +0000 (-0800) Subject: removed wrong assertion X-Git-Tag: v1.3.3^2~40^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfc14579f5344a5f225bf0b30f22785127f4e6b5;p=thirdparty%2Fzstd.git removed wrong assertion --- diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index e3112085a..c3814f8d2 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -271,7 +271,6 @@ FORCE_INLINE_TEMPLATE U32 const repOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode]; U32 const repIndex = current - repOffset; U32 repLen = 0; - assert(repOffset <= current); assert(current >= dictLimit); if (!extDict /*static*/ || (repIndex>=dictLimit)) { if ( (repOffset-1 /* intentional overflow, discards 0 and -1 */ < current-dictLimit) /* within current mem segment */