Detect garbage near EOF in json_loadf() and json_load_file()
This commit is contained in:
11
test/testdata/invalid
vendored
11
test/testdata/invalid
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user