Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
4d1eaace
Unverified
Commit
4d1eaace
authored
Oct 24, 2018
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
fixed fuzz code to avoid false positives in case of discarded values
parent
e2c5913a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
test/src/fuzzer-parse_bson.cpp
test/src/fuzzer-parse_bson.cpp
+5
-0
No files found.
test/src/fuzzer-parse_bson.cpp
View file @
4d1eaace
...
@@ -33,6 +33,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
...
@@ -33,6 +33,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
std
::
vector
<
uint8_t
>
vec1
(
data
,
data
+
size
);
std
::
vector
<
uint8_t
>
vec1
(
data
,
data
+
size
);
json
j1
=
json
::
from_bson
(
vec1
);
json
j1
=
json
::
from_bson
(
vec1
);
if
(
j1
.
is_discarded
())
{
return
0
;
}
try
try
{
{
// step 2: round trip
// step 2: round trip
...
...
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