Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with SCardStatus on MAC OS X 10.10 (Yosemite) #137
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:
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'