Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONTestSuite issues with TCL extension that uses cJSON #877

Open
jerily opened this issue Jul 18, 2024 · 0 comments
Open

JSONTestSuite issues with TCL extension that uses cJSON #877

jerily opened this issue Jul 18, 2024 · 0 comments

Comments

@jerily
Copy link

jerily commented Jul 18, 2024

I have build a Tcl extension (c bindings) with a slightly modified version of cJSON in order to be able to handle node deletion properly and during a forum discussion at OpenACS, the following issues were reported with JSONTestSuite ( https://github.com/nst/JSONTestSuite/archive/refs/heads/master.zip ):

[my tcl extension] raises error on the valid JSON

y_number_double_close_to_zero.json

and does not raise error on the invalid data:

n_object_trailing_comment_slash_open.json
n_object_trailing_comment_slash_open_incomplete.json
n_string_invalid_unicode_escape.json
n_array_extra_close.json
n_string_unescaped_ctrl_char.json
n_structure_trailing_#.json
n_multidigit_number_then_00.json
n_structure_number_with_trailing_garbage.json
n_object_with_trailing_garbage.json
n_structure_close_unopened_array.json
n_number_-2..json
n_string_unescaped_newline.json
n_structure_whitespace_formfeed.json
n_number_0.e1.json
n_object_trailing_comment.json
n_number_2.e3.json
n_number_2.e+3.json
n_number_neg_real_without_int_part.json
n_structure_array_trailing_garbage.json
n_string_with_trailing_garbage.json
n_array_comma_after_close.json
n_number_2.e-3.json
n_number_-01.json
n_string_unescaped_tab.json
n_structure_object_followed_by_closing_object.json
n_number_with_leading_zero.json
n_structure_object_with_trailing_garbage.json
n_object_trailing_comment_open.json
n_structure_double_array.json
n_number_neg_int_starting_with_zero.json
n_number_real_without_fractional_part.json
n_structure_array_with_extra_array_close.json

It appears that these issues might be related to how cJSON parses the input, but I could be overlooking something. Does anyone have any insights or suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant