-
Notifications
You must be signed in to change notification settings - Fork 65
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
JSON_Validate() return success on Illegal JSON #165
Comments
Hello @vasilchenkosv, Thank you, Best Regards, |
The following invalid JSON document would be classified as valid JSON without this change: ``` { "key1":"val1", { "key2":"val2" } } ``` The issue was reported here - FreeRTOS#165. Signed-off-by: Gaurav Aggarwal <[email protected]>
* Correctly detect missing key in a key-value pair The following invalid JSON document would be classified as valid JSON without this change: ``` { "key1":"val1", { "key2":"val2" } } ``` The issue was reported here - #165. Signed-off-by: Gaurav Aggarwal <[email protected]> * Update complexity threshold to 12 Signed-off-by: Gaurav Aggarwal <[email protected]> * Fix memory estimates and formatting checks Signed-off-by: Gaurav Aggarwal <[email protected]> * Fix CBMC proofs Signed-off-by: Gaurav Aggarwal <[email protected]> --------- Signed-off-by: Gaurav Aggarwal <[email protected]>
@vasilchenkosv thank you for bringing this to our attention. As the PR #167 is merged, I shall be closing this issue. |
JSON_Validate() skip wrong JSON document. In example result == JSONSuccess, but must be JSONIllegalDocument.
const char* json = "{\"k1\":\"v1\",{\"k2\":\"v2\"}}";
JSONStatus_t result = JSON_Validate(json, strlen(json));
The text was updated successfully, but these errors were encountered: