[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.19-91-g91423a8

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Mar 15 00:51:10 CET 2013

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, STABLE-BRANCH-2-0 has been updated
       via  91423a826e3cefd78fc0006e65b56559dd578784 (commit)
      from  6d0e41815a726ad4b170ed18cc772a1817559299 (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 91423a826e3cefd78fc0006e65b56559dd578784
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Mar 15 08:34:32 2013 +0900

    scd: ccid-driver supporting larger APDU.
    * scd/ccid-driver.c (ccid_transceive_apdu_level): Support larger
    This is still ad hoc change, but it's OK.  Supporting full extended
    APDU exchange level is not worth yet.

diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index ccf579c..dd9fabe 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -2840,7 +2840,7 @@ ccid_transceive_apdu_level (ccid_driver_t handle,
   /* The maximum length for a short APDU T=1 block is 261.  For an
      extended APDU T=1 block the maximum length 65544; however
      extended APDU exchange level is not fully supported yet.  */
-  if (apdulen > 289)
+  if (apdulen > sizeof (send_buffer) - 10)
     return CCID_DRIVER_ERR_INV_VALUE; /* Invalid length. */
   msg[0] = PC_to_RDR_XfrBlock;


Summary of changes:
 scd/ccid-driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

The GNU Privacy Guard

More information about the Gnupg-commits mailing list