mirror of
https://github.com/facebook/zstd.git
synced 2025-10-09 00:05:28 -04:00
fuzzer error fix
This commit is contained in:
parent
a06e953db9
commit
a1d89424c2
@ -2177,11 +2177,11 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case zdss_flush:
|
case zdss_flush:
|
||||||
if (op != NULL) {
|
{
|
||||||
size_t const toFlushSize = zds->outEnd - zds->outStart;
|
size_t const toFlushSize = zds->outEnd - zds->outStart;
|
||||||
size_t const flushedSize = ZSTD_limitCopy(op, (size_t)(oend-op), zds->outBuff + zds->outStart, toFlushSize);
|
size_t const flushedSize = ZSTD_limitCopy(op, (size_t)(oend-op), zds->outBuff + zds->outStart, toFlushSize);
|
||||||
|
|
||||||
op += flushedSize;
|
op = op ? op + flushedSize : op;
|
||||||
|
|
||||||
zds->outStart += flushedSize;
|
zds->outStart += flushedSize;
|
||||||
if (flushedSize == toFlushSize) { /* flush completed */
|
if (flushedSize == toFlushSize) { /* flush completed */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user