Home GnuPG
Diffusion GPGME 1686e07e77a1

json: Fix crash on invalid json

Description

json: Fix crash on invalid json

* src/gpgme-json.c (process_request): Init res. Check for
json object before encode and chunk.

If json is invalid we can't read chunksize and would crash
in encode and chunk.

Details

Provenance
aheineckeAuthored on Jul 16 2018, 7:47 PM
Parents
rMcc21101a7494: json: Fix uninitialized key unref in op_delete
Branches
Unknown
Tags
Unknown