Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
31a6c091
Unverified
Commit
31a6c091
authored
Mar 17, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚑
fix for #519
Added catch branch for out_of_range exception that can occur if input file contains a number overflow.
parent
f547679d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
fuzzer-parse_json.cpp
test/src/fuzzer-parse_json.cpp
+4
-0
No files found.
test/src/fuzzer-parse_json.cpp
View file @
31a6c091
...
@@ -59,6 +59,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment