Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
sourin-v@… originally submitted this as ticket:140
ScardStatus? calls return bad length for reader (first call with NULL buffer) and then failed with SCARD_E_INSUFFICIENT_BUFFER (0x80100008)
Steps to Reproduce:
Program should print information about the card
When allocating a buffer of size specified by the first SCardStatus call, the second call to SCardStatus failed with SCARD_E_INSUFFICIENT_BUFFER (0x80100008)
The text was updated successfully, but these errors were encountered:
sourin-v@… originally submitted this as attachment:main.c:ticket:140
Sorry, something went wrong.
harningt@… originally submitted this as comment:1:ticket:140
Item of note: if you allocate slightly larger (I think even 1 byte larger was enough) it will work.
This is indeed a bug that should be solved as the formula should be 'ask for buffer size, allocate buffer size, fill buffer' not 'ask, guess, allocate, fill'
sourin-v@… originally submitted this as comment:2:ticket:140
No branches or pull requests