[git] GnuPG - branch, master, updated. gnupg-2.1.15-320-gcd00b07

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Nov 4 07:35:41 CET 2016


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 "The GNU Privacy Guard".

The branch, master has been updated
       via  cd00b07ec26c3408e6aee66957b08c6fd319b700 (commit)
      from  f9da935c3eb302e75a80def51128fb6f669661d7 (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 cd00b07ec26c3408e6aee66957b08c6fd319b700
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Nov 4 15:34:35 2016 +0900

    scd: Fix length error for READKEY.
    
    * scd/app-openpgp.c (do_readkey): Decrement the length.
    
    --
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 4bf99ad..f8d9954 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1770,6 +1770,8 @@ do_readkey (app_t app, int advanced, const char *keyid,
 
       gcry_sexp_sprint (s_key, GCRYSEXP_FMT_ADVANCED, *pk, *pklen);
       gcry_sexp_release (s_key);
+      /* Decrement for trailing '\0' */
+      *pklen = *pklen - 1;
     }
   else
     {

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

Summary of changes:
 scd/app-openpgp.c | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list