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
ac793e95
Unverified
Commit
ac793e95
authored
Jun 12, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
trying to fix #367
Code from
https://stackoverflow.com/a/44503794/266378
which is hopefully working with MSVC.
parent
5fa5c17b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
json.hpp
src/json.hpp
+2
-1
unit-regression.cpp
test/src/unit-regression.cpp
+0
-2
No files found.
src/json.hpp
View file @
ac793e95
...
...
@@ -8862,7 +8862,8 @@ class basic_json
// We initially read a lot of characters into the buffer, and we
// may not have processed all of them. Therefore, we need to
// "rewind" the stream after the last processed char.
is
.
seekg
(
start_position
+
static_cast
<
std
::
streamoff
>
(
processed_chars
));
is
.
seekg
(
start_position
);
is
.
ignore
(
processed_chars
);
// clear stream flags
is
.
clear
();
}
...
...
test/src/unit-regression.cpp
View file @
ac793e95
...
...
@@ -711,7 +711,6 @@ TEST_CASE("regression tests")
"[json.exception.parse_error.101] parse error at 1: syntax error - unexpected end of input"
);
}
/*
SECTION
(
"second example from #529"
)
{
std
::
string
str
=
"{
\n\"
one
\"
: 1,
\n\"
two
\"
: 2
\n
}
\n
{
\n\"
three
\"
: 3
\n
}"
;
...
...
@@ -749,7 +748,6 @@ TEST_CASE("regression tests")
std
::
remove
(
"test.json"
);
}
*/
}
SECTION
(
"issue #389 - Integer-overflow (OSS-Fuzz issue 267)"
)
...
...
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