Home GnuPG
Diffusion GPGME 6d7b4382c3e1

json: Ensure that native msging request is string

Description

json: Ensure that native msging request is string

* src/gpgme-json.c (native_messaging_repl): Ensure that the
request is NULL terminated.

This avoids potential memory leaks and access to unmapped memory
in case the request was not terminated.
Other request functions use es_read_line which gurantees NULL
termination.

Details

Provenance
aheineckeAuthored on Jul 18 2018, 1:06 PM
Parents
rM82e4b900a96c: json: Fix crash by ensuring response is never NULL
Branches
Unknown
Tags
Unknown