aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-import.c
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2019-02-27 13:27:47 +0000
committerAndre Heinecke <[email protected]>2019-02-27 13:27:47 +0000
commit4a117859e7a512458ab78cfedfae0372805196b1 (patch)
treef69655c791adef71c28afec054399d1f1e5a8db4 /tests/run-import.c
parentcpp: Add ostream operators for import result (diff)
downloadgpgme-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