]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Take 2 fixing the placement of json_tokener_error_memory in the enum. (json_tokener_...
authorEric Hawicz <erh+git@nimenees.com>
Sat, 23 Sep 2023 02:26:21 +0000 (22:26 -0400)
committerEric Hawicz <erh+git@nimenees.com>
Sat, 23 Sep 2023 02:26:21 +0000 (22:26 -0400)
json_tokener.h

index 77abc5c18dc59c1588c9802c3f65c9e1a967b248..cdac3e2afe08696ee7e3e748277cc59404c79df8 100644 (file)
@@ -40,8 +40,8 @@ enum json_tokener_error
        json_tokener_error_parse_string,
        json_tokener_error_parse_comment,
        json_tokener_error_parse_utf8_string,
-       json_tokener_error_memory,
-       json_tokener_error_size
+       json_tokener_error_size,   /* A string longer than INT32_MAX was passed as input */
+       json_tokener_error_memory  /* Failed to allocate memory */
 };
 
 /**