🚑 fix for #519
Added catch branch for out_of_range exception that can occur if input file contains a number overflow.
This commit is contained in:
parent
f547679de5
commit
31a6c0910e
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
||||||
{
|
{
|
||||||
// parse errors are ok, because input may be random bytes
|
// parse errors are ok, because input may be random bytes
|
||||||
}
|
}
|
||||||
|
catch (const json::out_of_range&)
|
||||||
|
{
|
||||||
|
// parse errors are ok, because input may be random bytes
|
||||||
|
}
|
||||||
|
|
||||||
// return 0 - non-zero return values are reserved for future use
|
// return 0 - non-zero return values are reserved for future use
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue