[Pcsclite-muscle] SCardControl() should return SCARD_E_INSUFFICIENT_BUFFER similar to SCardTransmit()
Fri Feb 17 11:24:27 PST 2017
I think SCardControl() should work similar to SCardTransmit() regarding
client application buffer size as in commit . Depending on the
underlying IFD handler the current implementation might cause the same
incorrect behaviour as described in .
If the underlying IFD Handler is not correctly checking the buffer size,
the current implementation could even cause a buffer overflow in the
The attached patch solves this similar to the fix in .
 8eb9ea1b354b050f997d003cf3b0c5b56f29f9f7 - SCardTransmit() may
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1670 bytes
Desc: not available
More information about the pcsclite-muscle