]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
assert externalRepSearch != ZSTD_ps_auto 3471/head
authorElliot Gorokhovsky <embg@fb.com>
Thu, 2 Feb 2023 02:24:46 +0000 (18:24 -0800)
committerElliot Gorokhovsky <embg@fb.com>
Thu, 2 Feb 2023 02:24:46 +0000 (18:24 -0800)
lib/compress/zstd_compress.c

index 3ad6f05a281b7d2e053a528493ec57452c5745ad..5b89ca6d2cc0569df2799db807b1526c83807d95 100644 (file)
@@ -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;