diff options
author | Andre Heinecke <[email protected]> | 2019-02-27 13:27:47 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2019-02-27 13:27:47 +0000 |
commit | 4a117859e7a512458ab78cfedfae0372805196b1 (patch) | |
tree | f69655c791adef71c28afec054399d1f1e5a8db4 /tests/run-import.c | |
parent | cpp: Add ostream operators for import result (diff) | |
download | gpgme-4a117859e7a512458ab78cfedfae0372805196b1.tar.gz gpgme-4a117859e7a512458ab78cfedfae0372805196b1.zip |
json: Limit recursion depth
* src/cJSON.c (MAX_DEPTH): New. Maximum recursion depth.
(parse_value, parse_array, parse_object): Carry and check
depth argument.
(cJSON_ParseWithOpts): Initialize depth.
--
This fixes a stack overflow if we get weird recursive
json data.
GnuPG-Bug-Id: T4331
Diffstat (limited to 'tests/run-import.c')
0 files changed, 0 insertions, 0 deletions