mirror of
https://github.com/facebook/zstd.git
synced 2026-01-06 11:21:19 +03:00
[fuzz] Fix leak in block_round_trip
This commit is contained in:
@@ -60,7 +60,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size)
|
||||
|
||||
size_t neededBufSize = size;
|
||||
if (size > ZSTD_BLOCKSIZE_MAX)
|
||||
return 0;
|
||||
size = ZSTD_BLOCKSIZE_MAX;
|
||||
|
||||
/* Allocate all buffers and contexts if not already allocated */
|
||||
if (neededBufSize > bufSize || !cBuf || !rBuf) {
|
||||
|
||||
Reference in New Issue
Block a user