mirror of
https://github.com/facebook/zstd.git
synced 2024-12-11 19:49:22 +08:00
fixed fuzzer error (inter-block repeated offsets)
This commit is contained in:
parent
23ccc34262
commit
efd0b4993a
@ -1847,7 +1847,7 @@ _storeSequence:
|
||||
/* Save reps for next block */
|
||||
{ int i;
|
||||
for (i=0; i<ZSTD_REP_NUM; i++) {
|
||||
if (!rep[i]) rep[i] = (U32)(iend-base); /* in case some zero are left */
|
||||
if (!rep[i]) rep[i] = (U32)(iend - ctx->base); /* in case some zero are left */
|
||||
ctx->savedRep[i] = rep[i];
|
||||
} }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user