]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removed requirement that offset be less than windowSize
authorPaul Cruz <paulcruz74@fb.com>
Thu, 22 Jun 2017 01:00:47 +0000 (18:00 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Thu, 22 Jun 2017 01:00:47 +0000 (18:00 -0700)
tests/decodecorpus.c

index 347bc1b501f3921ceed765b03f48bfc2c7891633..e2b0986722179dfef8d111ad21a1cd2de983b0ae 100644 (file)
@@ -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;