[git] GPGME - branch, master, updated. gpgme-1.11.1-78-g7d65dc2

by Andre Heinecke cvs at cvs.gnupg.org
Wed Jul 4 12:18:15 CEST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  7d65dc2a5c4f32139a1b9b1f0bd375f7ab1c58f6 (commit)
      from  76b847091593669c8a7e38918267d6be97dbd4d0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7d65dc2a5c4f32139a1b9b1f0bd375f7ab1c58f6
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed Jul 4 12:15:05 2018 +0200

    cpp: Fix memory of DecryptionResult::symkeyAlgo
    
    * lang/cpp/src/decryptionresult.cpp (Private, ~Private): strdup
    the symkey algo.

diff --git a/lang/cpp/src/decryptionresult.cpp b/lang/cpp/src/decryptionresult.cpp
index de58921..ea0a8a5 100644
--- a/lang/cpp/src/decryptionresult.cpp
+++ b/lang/cpp/src/decryptionresult.cpp
@@ -51,6 +51,9 @@ public:
         if (res.file_name) {
             res.file_name = strdup(res.file_name);
         }
+        if (res.symkey_algo) {
+            res.symkey_algo = strdup(res.symkey_algo);
+        }
         //FIXME: copying gpgme_recipient_t objects invalidates the keyid member,
         //thus we use _keyid for now (internal API)
         for (gpgme_recipient_t r = res.recipients ; r ; r = r->next) {
@@ -68,6 +71,10 @@ public:
             std::free(res.file_name);
         }
         res.file_name = 0;
+        if (res.symkey_algo) {
+            std::free(res.symkey_algo);
+        }
+        res.symkey_algo = 0;
     }
 
     _gpgme_op_decrypt_result res;

-----------------------------------------------------------------------

Summary of changes:
 lang/cpp/src/decryptionresult.cpp | 7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list