Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsoncpp
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
le
jsoncpp
Commits
6aba23f4
Unverified
Commit
6aba23f4
authored
4 years ago
by
kabeer27
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes Oss-Fuzz issue: 21916 (#1180)
* Fix heap-buffer-overflow in json_reader
parent
c161f4ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib_json/json_reader.cpp
+1
-1
1 addition, 1 deletion
src/lib_json/json_reader.cpp
with
1 addition
and
1 deletion
src/lib_json/json_reader.cpp
+
1
−
1
View file @
6aba23f4
...
...
@@ -1270,7 +1270,7 @@ void OurReader::skipSpaces() {
void
OurReader
::
skipBom
(
bool
skipBom
)
{
// The default behavior is to skip BOM.
if
(
skipBom
)
{
if
(
strncmp
(
begin_
,
"
\xEF\xBB\xBF
"
,
3
)
==
0
)
{
if
(
(
end_
-
begin_
)
>=
3
&&
strncmp
(
begin_
,
"
\xEF\xBB\xBF
"
,
3
)
==
0
)
{
begin_
+=
3
;
current_
=
begin_
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment