From: Paul Cruz Date: Thu, 22 Jun 2017 01:00:47 +0000 (-0700) Subject: removed requirement that offset be less than windowSize X-Git-Tag: v1.3.0~1^2~15^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32e36c2d9ac4d08633c2a432340d298251c87ad7;p=thirdparty%2Fzstd.git removed requirement that offset be less than windowSize --- diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index 347bc1b50..e2b098672 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -685,7 +685,7 @@ static U32 generateSequences(U32* seed, frame_t* frame, seqStore_t* seqStore, /* need to occasionally generate offsets that go past the start */ /* we still need to be within the windowSize however */ U32 const lenPastStart = RAND(seed) % info.dictContentSize; - offset = MIN(frame->header.windowSize, offset+lenPastStart); + offset = offset+lenPastStart; } offsetCode = offset + ZSTD_REP_MOVE; repIndex = 2;