You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or just me mis-using the API, but fuzzing with DeepState via https://github.com/agroce/deepstate-json-c gives me a behavior that I don't think makes sense:
Adding whitespace would work, but a more natural way to do it would be to include the final nul byte in the length that you pass to json_tokener_parse_ex(). i.e. size_t size2 = strlen(str2) + 1;
Oh, I see -- that makes a lot of sense! Due to "e" and float vs int interpretations the round-trip still doesn't quite work, but I think that can be dealt with.
Describe the bug
Not sure if this is a bug or just me mis-using the API, but fuzzing with DeepState via https://github.com/agroce/deepstate-json-c gives me a behavior that I don't think makes sense:
produces:
In other words, "1," turns into a JSON object containing the int 1. "1" turns into a null object.
Steps To Reproduce
See the above small C++ code, based on the fuzzing harness.
Version and Platform
The text was updated successfully, but these errors were encountered: