Skip to content

Commit

Permalink
Update json_tokener.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Dec 25, 2024
1 parent e62698e commit 1400a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/thirdparty/jsonc/json_tokener.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ struct json_object *json_tokener_parse_ex(struct json_tokener *tok, const char *
* If the function is called with len == -1 then strlen is called to check
* the string length is less than INT32_MAX (2GB)
*/
if ((len < -1) || (len == -1 && strlen(str) > INT32_MAX))
if ((len == -1 && strlen(str) > INT32_MAX))
{
tok->err = json_tokener_error_size;
return NULL;
Expand Down

0 comments on commit 1400a30

Please sign in to comment.