Home GnuPG
Diffusion GPGME b78140daf772

json: Fix memory errors in create_keylist_patterns

Description

json: Fix memory errors in create_keylist_patterns

* src/gpgme-json.c (create_keylist_patterns): Reserve two
pointers more then linefeeds.
(create_keylist_patterns): Fix loop to count linebreaks.
(create_keylist_patterns): Use calloc for good measure.

This fixes crashes and memory corruption as cnt did not
match i.

Details

Provenance
aheineckeAuthored on Jul 18 2018, 12:57 PM
Parents
rM16462c54b350: qt: Handle encoding for diagnostics
Branches
Unknown
Tags
Unknown