This commit is contained in:
2025-11-24 14:19:51 +05:30
commit f5c1412b28
6734 changed files with 1527575 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xed near '"'

View File

@ -0,0 +1 @@
["<22><><EFBFBD> <-- encoded surrogate half"]

View File

@ -0,0 +1,2 @@
1 3 3
unable to decode byte 0xe5 near '"\'

View File

@ -0,0 +1,2 @@
1 1 1
unable to decode byte 0xe5

View File

@ -0,0 +1,2 @@
1 4 4
unable to decode byte 0xe5 near '123'

View File

@ -0,0 +1,2 @@
1 4 4
unable to decode byte 0xe5 near '"\u'

View File

@ -0,0 +1,2 @@
1 4 4
unable to decode byte 0xe5 near '1e1'

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xe5 near 'a'

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xe5 near '0'

View File

@ -0,0 +1,2 @@
1 3 3
unable to decode byte 0xe5 near '1e'

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xe5 near '"'

View File

@ -0,0 +1 @@
["<22> <-- invalid UTF-8"]

View File

@ -0,0 +1,2 @@
1 0 0
unable to decode byte 0xe5

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0x81 near '"'

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xf4 near '"'

View File

@ -0,0 +1 @@
["<22><><EFBFBD><EFBFBD>"]

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xe0 near '"'

View File

@ -0,0 +1 @@
["<22><><EFBFBD> <-- overlong encoding"]

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xf0 near '"'

View File

@ -0,0 +1 @@
["<22><><EFBFBD><EFBFBD> <-- overlong encoding"]

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xc1 near '"'

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xfd near '"'

View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# Copyright (c) 2009-2012 Petri Lehtinen <petri@digip.org>
#
# Jansson is free software; you can redistribute it and/or modify
# it under the terms of the MIT license. See LICENSE for details.
is_test() {
test -d $test_path
}
run_test() {
$json_process <$test_path/input >$test_log/stdout 2>$test_log/stderr
valgrind_check $test_log/stderr || return 1
cmp -s $test_path/error $test_log/stderr
}
show_error() {
valgrind_show_error && return
echo "EXPECTED ERROR:"
nl -bn $test_path/error
echo "ACTUAL ERROR:"
nl -bn $test_log/stderr
}
. $top_srcdir/test/scripts/run-tests.sh

View File

@ -0,0 +1,2 @@
1 2 2
unable to decode byte 0xe0 near '"'

View File

@ -0,0 +1 @@
["<22><> <-- truncated UTF-8"]