]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix decodecorpus 1301/head
authorNick Terrell <terrelln@fb.com>
Tue, 28 Aug 2018 20:56:47 +0000 (13:56 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 28 Aug 2018 20:56:47 +0000 (13:56 -0700)
tests/decodecorpus.c

index 5cc21a5db522dceca9f8db0ca675f152b235a8bf..2c2276004a9552370887c313c620fd755ec46069 100644 (file)
@@ -621,6 +621,7 @@ static size_t writeLiteralsBlock(U32* seed, frame_t* frame, size_t contentSize)
 
 static inline void initSeqStore(seqStore_t *seqStore) {
     seqStore->maxNbSeq = MAX_NB_SEQ;
+    seqStore->maxNbLit = ZSTD_BLOCKSIZE_MAX;
     seqStore->sequencesStart = SEQUENCE_BUFFER;
     seqStore->litStart = SEQUENCE_LITERAL_BUFFER;
     seqStore->llCode = SEQUENCE_LLCODE;