Merge pull request #1789 from terrelln/larger-fuzz
[fuzz] Fix leak in block_round_trip
This commit is contained in:
commit
f2941db4a9
@ -60,7 +60,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size)
|
|||||||
|
|
||||||
size_t neededBufSize = size;
|
size_t neededBufSize = size;
|
||||||
if (size > ZSTD_BLOCKSIZE_MAX)
|
if (size > ZSTD_BLOCKSIZE_MAX)
|
||||||
return 0;
|
size = ZSTD_BLOCKSIZE_MAX;
|
||||||
|
|
||||||
/* Allocate all buffers and contexts if not already allocated */
|
/* Allocate all buffers and contexts if not already allocated */
|
||||||
if (neededBufSize > bufSize || !cBuf || !rBuf) {
|
if (neededBufSize > bufSize || !cBuf || !rBuf) {
|
||||||
|
Loading…
Reference in New Issue
Block a user