From 37b997067d1ceba882f505f30b8fc21186a83819 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Mon, 5 Jul 2010 15:07:47 +0000 Subject: [PATCH] bugfix: PACE response data was not copied to application git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@195 96b47cad-a561-4643-ad3b-153ac7d7599c --- ccid/patches/ccid-1.3.11.patch | 1 + ccid/patches/ccid-1.3.13.patch | 1 + ccid/patches/pcsclite_trunk_r4993.patch | 1 + 3 files changed, 3 insertions(+) diff --git a/ccid/patches/ccid-1.3.11.patch b/ccid/patches/ccid-1.3.11.patch index df53a1f..cb97c03 100644 --- a/ccid/patches/ccid-1.3.11.patch +++ b/ccid/patches/ccid-1.3.11.patch @@ -218,6 +218,7 @@ Index: ccid-1.3.11/src/commands.c + length = *RxLength; + return IFD_ERROR_INSUFFICIENT_BUFFER; + } ++ memcpy(RxBuffer, &cmd[10], length); + + return IFD_SUCCESS; +} diff --git a/ccid/patches/ccid-1.3.13.patch b/ccid/patches/ccid-1.3.13.patch index cfe7321..77caf2d 100644 --- a/ccid/patches/ccid-1.3.13.patch +++ b/ccid/patches/ccid-1.3.13.patch @@ -218,6 +218,7 @@ Index: ccid-1.3.13/src/commands.c + length = *RxLength; + return IFD_ERROR_INSUFFICIENT_BUFFER; + } ++ memcpy(RxBuffer, &cmd[10], length); + + return IFD_SUCCESS; +} diff --git a/ccid/patches/pcsclite_trunk_r4993.patch b/ccid/patches/pcsclite_trunk_r4993.patch index 93e7d67..83306f7 100644 --- a/ccid/patches/pcsclite_trunk_r4993.patch +++ b/ccid/patches/pcsclite_trunk_r4993.patch @@ -230,6 +230,7 @@ Index: Drivers/ccid/src/commands.c + length = *RxLength; + return IFD_ERROR_INSUFFICIENT_BUFFER; + } ++ memcpy(RxBuffer, &cmd[10], length); + + return IFD_SUCCESS; +}