Home GnuPG
Diffusion GPGME 82e4b900a96c

json: Fix crash by ensuring response is never NULL

Description

json: Fix crash by ensuring response is never NULL

* src/gpgme-json.c (encode_and_chunk): Try to always
return at least an error.
(process_request): Double check that it does not return NULL.

If process_request returns NULL the following strlen on it
would crash.

Details

Provenance
aheineckeAuthored on Jul 18 2018, 1:02 PM
Parents
rMb78140daf772: json: Fix memory errors in create_keylist_patterns
Branches
Unknown
Tags
Unknown