[Pcsclite-muscle] SCardControl() should return SCARD_E_INSUFFICIENT_BUFFER similar to SCardTransmit()
Tue Feb 28 07:37:09 PST 2017
2017-02-17 20:24 GMT+01:00 Maximilian Stein <maximilian.stein at secunet.com>:
> 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
> client application.
> The attached patch solves this similar to the fix in .
> Kind regards
> Maximilian Stein
>  8eb9ea1b354b050f997d003cf3b0c5b56f29f9f7 - SCardTransmit() may
> return SCARD_E_INSUFFICIENT_BUFFER
You are right.
Patch applied in
Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pcsclite-muscle