From bca0233d7af4ffae9248bd3a67b299f4a8e27b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=89=E5=8F=AC=E5=AE=87?= Date: Wed, 18 Sep 2024 02:19:36 +0000 Subject: [PATCH] update Fix.patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 冉召宇 --- Fix.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Fix.patch b/Fix.patch index e69de29..6d97931 100644 --- a/Fix.patch +++ b/Fix.patch @@ -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;