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; +}