Hello, The callers of the ATRDecodeAtr() function (SCardConnect() and SCardReconnect() in winscard.c) don't check its return value, which might potentially cause reads of uninitialized variables |availableProtocols| and |defaultProtocol| and unexpected side effects. Regards, Maksim