mirror of
https://github.com/openharmony/third_party_jsoncpp.git
synced 2026-08-25 14:19:36 -04:00
@@ -0,0 +1,21 @@
|
||||
diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp
|
||||
--- a/src/lib_json/json_reader.cpp
|
||||
+++ b/src/lib_json/json_reader.cpp
|
||||
@@ -773,7 +773,7 @@
|
||||
while (current < location && current != end_) {
|
||||
Char c = *current++;
|
||||
if (c == '\r') {
|
||||
- if (*current == '\n')
|
||||
+ if (current != end_ && *current == '\n')
|
||||
++current;
|
||||
lastLineStart = current;
|
||||
++line;
|
||||
@@ -1826,7 +1826,7 @@
|
||||
while (current < location && current != end_) {
|
||||
Char c = *current++;
|
||||
if (c == '\r') {
|
||||
- if (*current == '\n')
|
||||
+ if (current != end_ && *current == '\n')
|
||||
++current;
|
||||
lastLineStart = current;
|
||||
++line;
|
||||
|
||||
Reference in New Issue
Block a user