aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-01-26 10:55:34 +0100
committerm-holger <m-holger@kubitscheck.org>2023-02-01 15:18:57 +0100
commit83f972ceda20e244f52bde7ac052e6931a6d33d3 (patch)
treef9c855613ccf823755c91086ae6ab4d3b73bf09e /libtests
parent8fd6e1c5b24d0fc804c25004f398b39b5041b034 (diff)
downloadqpdf-83f972ceda20e244f52bde7ac052e6931a6d33d3.tar.zst
Refactor end of input handling in JSONParser
Diffstat (limited to 'libtests')
-rw-r--r--libtests/libtests.testcov3
-rw-r--r--libtests/qtest/json_parse/bad-27.out2
-rw-r--r--libtests/qtest/json_parse/bad-28.out2
-rw-r--r--libtests/qtest/json_parse/bad-34.out2
4 files changed, 4 insertions, 5 deletions
diff --git a/libtests/libtests.testcov b/libtests/libtests.testcov
index 5ca5fb77..4b3bb45b 100644
--- a/libtests/libtests.testcov
+++ b/libtests/libtests.testcov
@@ -79,9 +79,8 @@ JSON parse number minus no digits 0
JSON parse incomplete number 0
JSON parse keyword bad character 0
JSON parse backslash bad character 0
-JSON parse unterminated string 0
JSON parse leading zero 0
-JSON parse premature end of u 0
+JSON parse ls premature end of input 0
JSON parse bad hex after u 0
JSONHandler unhandled value 0
JSONHandler unexpected key 0
diff --git a/libtests/qtest/json_parse/bad-27.out b/libtests/qtest/json_parse/bad-27.out
index 2c2df076..70fcbf74 100644
--- a/libtests/qtest/json_parse/bad-27.out
+++ b/libtests/qtest/json_parse/bad-27.out
@@ -1 +1 @@
-exception: bad-27.json: JSON: offset 6: unterminated string
+exception: bad-27.json: JSON: premature end of input
diff --git a/libtests/qtest/json_parse/bad-28.out b/libtests/qtest/json_parse/bad-28.out
index d7db2aea..005a68d2 100644
--- a/libtests/qtest/json_parse/bad-28.out
+++ b/libtests/qtest/json_parse/bad-28.out
@@ -1 +1 @@
-exception: bad-28.json: JSON: offset 16: unterminated string
+exception: bad-28.json: JSON: premature end of input
diff --git a/libtests/qtest/json_parse/bad-34.out b/libtests/qtest/json_parse/bad-34.out
index f9db587a..c21838c4 100644
--- a/libtests/qtest/json_parse/bad-34.out
+++ b/libtests/qtest/json_parse/bad-34.out
@@ -1 +1 @@
-exception: bad-34.json: JSON: offset 3: \u must be followed by four characters
+exception: bad-34.json: JSON: premature end of input