From dfc14579f5344a5f225bf0b30f22785127f4e6b5 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 15 Nov 2017 15:35:56 -0800 Subject: [PATCH] removed wrong assertion --- lib/compress/zstd_opt.c | 1 - 1 file changed, 1 deletion(-) 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 */ -- 2.47.2