From 3fe5f1fbb9fde42d50cbe35f89775d284663da99 Mon Sep 17 00:00:00 2001 From: Elliot Gorokhovsky Date: Wed, 1 Feb 2023 18:24:46 -0800 Subject: [PATCH] assert externalRepSearch != ZSTD_ps_auto --- lib/compress/zstd_compress.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2