[git] GnuPG - branch, master, updated. gnupg-2.1.15-235-g25428be

by NIIBE Yutaka cvs at cvs.gnupg.org
Mon Oct 17 05:06:24 CEST 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  25428be52168fa9c581b7f11c95a5c63b25343b7 (commit)
      from  70a8584ec4389209762eb65bb77f20f7881577be (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 25428be52168fa9c581b7f11c95a5c63b25343b7
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Oct 17 12:02:28 2016 +0900

    scd: Fix keytocard for ECC.
    
    * scd/app-openpgp.c (build_ecc_privkey_template): Size can be greater
    than 128 when it comes with public key for curve of larger field.
    
    --
    
    Reported-by: Arnaud Fontaine <arnaud.fontaine at ssi.gouv.fr>
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 563a045..ef335fe 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2689,6 +2689,8 @@ build_ecc_privkey_template (app_t app, int keyno,
                    + privkey_len
                    + suffix_len
                    + datalen);
+  if (exthdr_len + privkey_len + suffix_len + datalen >= 128)
+    template_size++;
   tp = template = xtrymalloc_secure (template_size);
   if (!template)
     return gpg_error_from_syserror ();

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

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