Issue #881: don't allow json_tokener_new_ex() with a depth < 1

This commit is contained in:
Eric Hawicz committed 2024-11-17 22:11:24 -05:00
1 parent 565f181f65
commit ff8ed0f094
2 files changed
+4

No files matched your search

+1
View File
@@ -206,6 +206,7 @@ JSON_EXPORT struct json_tokener *json_tokener_new(void);
/**
* Allocate a new json_tokener with a custom max nesting depth.
* The depth must be at least 1.
* @see JSON_TOKENER_DEFAULT_DEPTH
*/
JSON_EXPORT struct json_tokener *json_tokener_new_ex(int depth);