aboutsummaryrefslogtreecommitdiff
path: root/test/testdata
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2009-08-24 20:58:59 +0300
committerPetri Lehtinen <petri@digip.org>2009-08-24 20:58:59 +0300
commitee2d164025b5090c7cd81ffd8c1e3e07d45e5d31 (patch)
tree92b67535143428d242ebeb2b4b1f2e4ced383335 /test/testdata
parentb3e265eb843328749b5d1a943377992034c49475 (diff)
downloadjansson-ee2d164025b5090c7cd81ffd8c1e3e07d45e5d31.zip
jansson-ee2d164025b5090c7cd81ffd8c1e3e07d45e5d31.tar.gz
jansson-ee2d164025b5090c7cd81ffd8c1e3e07d45e5d31.tar.bz2
Detect garbage near EOF in json_loadf() and json_load_file()
Diffstat (limited to 'test/testdata')
-rw-r--r--test/testdata/invalid11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testdata/invalid b/test/testdata/invalid
index bdca8a5..2887692 100644
--- a/test/testdata/invalid
+++ b/test/testdata/invalid
@@ -182,3 +182,14 @@ aƄ
====
1
'[' or '{' expected near 'a'
+==== garbage-at-the-end ====
+[1,2,3]foo
+====
+1
+end of file expected near 'foo'
+==== garbage-after-newline ====
+[1,2,3]
+foo
+====
+2
+end of file expected near 'foo'