diff options
author | Andre Heinecke <[email protected]> | 2018-07-18 10:57:51 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2018-07-18 10:57:51 +0000 |
commit | b78140daf7720132711314a4e5ed878b49da99f4 (patch) | |
tree | 8d3abbc2175c15d836c4829635359124e31cb790 /lang/cpp/src/context_vanilla.cpp | |
parent | qt: Handle encoding for diagnostics (diff) | |
download | gpgme-b78140daf7720132711314a4e5ed878b49da99f4.tar.gz gpgme-b78140daf7720132711314a4e5ed878b49da99f4.zip |
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.
Diffstat (limited to 'lang/cpp/src/context_vanilla.cpp')
0 files changed, 0 insertions, 0 deletions