Addressing nits
This commit is contained in:
@@ -9,6 +9,10 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper APIs for generating random data from input data stream.
|
* Helper APIs for generating random data from input data stream.
|
||||||
|
The producer reads bytes from the end of the input and appends them together
|
||||||
|
to generate a random number in the requested range. If it runs out of input
|
||||||
|
data, it will keep returning the same value (min) over and over again.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FUZZ_DATA_PRODUCER_H
|
#ifndef FUZZ_DATA_PRODUCER_H
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size)
|
|||||||
FUZZ_ASSERT(dctx);
|
FUZZ_ASSERT(dctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t const bufSize = FUZZ_dataProducer_uint32Range(producer, 0, 2 * size);
|
size_t const bufSize = FUZZ_dataProducer_uint32Range(producer, 0, 10 * size);
|
||||||
void *rBuf = malloc(bufSize);
|
void *rBuf = malloc(bufSize);
|
||||||
FUZZ_ASSERT(rBuf);
|
FUZZ_ASSERT(rBuf);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user