1
0
mirror of https://github.com/facebook/zstd.git synced 2025-11-05 07:50:38 +03:00
Files
zstd/tests/fuzz/fuzz_helpers.c
Dominik Loidolt 4be08ba122 fuzz: Fix FUZZ_malloc_rand() to return non-NULL for zero-size allocations
The FUZZ_malloc_rand() function was incorrectly always returning NULL for
zero-size allocations. The random offset generated by
FUZZ_dataProducer_int32Range() was not being added to the pointer variable,
causing the function to always return (void *)0.
2025-06-05 17:28:30 +02:00

1.2 KiB