aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-11-28 16:36:02 +0000
committerWerner Koch <[email protected]>2006-11-28 16:36:02 +0000
commit252b668814dc419be37223b3fc75a661ff656f60 (patch)
treefe51bf585a57cc3325f3e488eea5992344926ed3 /scd/apdu.c
parent * openfile.c (ask_outfile_name): Fixed buffer overflow occurring (diff)
downloadgnupg-252b668814dc419be37223b3fc75a661ff656f60.tar.gz
gnupg-252b668814dc419be37223b3fc75a661ff656f60.zip
Preparing 2.0.1
Diffstat (limited to '')
-rw-r--r--scd/apdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 3057d6415..ac2f3c44b 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -2603,7 +2603,7 @@ send_le (int slot, int class, int ins, int p0, int p1,
unsigned char **retbuf, size_t *retbuflen,
struct pininfo_s *pininfo)
{
-#define RESULTLEN 256
+#define RESULTLEN 258
unsigned char result[RESULTLEN+10]; /* 10 extra in case of bugs in
the driver. */
size_t resultlen;
@@ -2866,7 +2866,7 @@ apdu_send_direct (int slot, const unsigned char *apdudata, size_t apdudatalen,
int handle_more,
unsigned char **retbuf, size_t *retbuflen)
{
-#define RESULTLEN 256
+#define RESULTLEN 258
unsigned char apdu[5+256+1];
size_t apdulen;
unsigned char result[RESULTLEN+10]; /* 10 extra in case of bugs in