aboutsummaryrefslogtreecommitdiffstats
path: root/scd/ccid-driver.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-03-20 09:00:12 +0000
committerWerner Koch <[email protected]>2013-03-20 09:00:12 +0000
commiteaa6dc3a8b4f31525650cd4785d6bafab86d68b7 (patch)
tree6552e846c825e2dae78d5ceefebee0e2acaeb27f /scd/ccid-driver.c
parentAdd code to allow for late memory cleanup. (diff)
parentgpg: Print indicator for unknown key capability. (diff)
downloadgnupg-eaa6dc3a8b4f31525650cd4785d6bafab86d68b7.tar.gz
gnupg-eaa6dc3a8b4f31525650cd4785d6bafab86d68b7.zip
Merge branch 'master' into key-storage-workkey-storage-work
--
Diffstat (limited to '')
-rw-r--r--scd/ccid-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index 2d1ef8d46..da5fac954 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -2839,7 +2839,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;