mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-25 01:19:07 +02:00
lower the input limits, I might need to push a config change to oss-fuzz as well to lower the max input size
This commit is contained in:
parent
48d226e97c
commit
6e44edf290
@ -4,7 +4,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||||||
try {
|
try {
|
||||||
// NOTE(derwolfe): by default the limits are set at 2^32-1 length. I'm
|
// NOTE(derwolfe): by default the limits are set at 2^32-1 length. I'm
|
||||||
// setting these at far smaller values to avoid OOMs
|
// setting these at far smaller values to avoid OOMs
|
||||||
const int test_limit = 10000;
|
const int test_limit = 1000;
|
||||||
msgpack::object_handle unpacked = msgpack::unpack(reinterpret_cast<const char *>(data),
|
msgpack::object_handle unpacked = msgpack::unpack(reinterpret_cast<const char *>(data),
|
||||||
size,
|
size,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user