Merge pull request #3419 from facebook/fix3416

fix root cause of #3416
This commit is contained in:
Yann Collet
2023-01-13 00:21:08 -08:00
committed by GitHub
5 changed files with 42 additions and 16 deletions
+1
View File
@@ -1043,6 +1043,7 @@ static size_t ZSTD_decompressFrame(ZSTD_DCtx* dctx,
}
ZSTD_DCtx_trace_end(dctx, (U64)(op-ostart), (U64)(ip-istart), /* streaming */ 0);
/* Allow caller to get size read */
DEBUGLOG(4, "ZSTD_decompressFrame: decompressed frame of size %zi, consuming %zi bytes of input", op-ostart, ip - (const BYTE*)*srcPtr);
*srcPtr = ip;
*srcSizePtr = remainingSrcSize;
return (size_t)(op-ostart);