From: Elliot Gorokhovsky Date: Thu, 2 Feb 2023 02:24:46 +0000 (-0800) Subject: assert externalRepSearch != ZSTD_ps_auto X-Git-Tag: v1.5.4^2~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3471%2Fhead;p=thirdparty%2Fzstd.git assert externalRepSearch != ZSTD_ps_auto --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 3ad6f05a2..5b89ca6d2 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -6335,6 +6335,7 @@ ZSTD_copySequencesToSeqStoreExplicitBlockDelim(ZSTD_CCtx* cctx, } /* If we skipped repcode search while parsing, we need to update repcodes now */ + assert(externalRepSearch != ZSTD_ps_auto); assert(idx >= startIdx); if (externalRepSearch == ZSTD_ps_disable && idx != startIdx) { U32* const rep = updatedRepcodes.rep;