fix(pcsc): add comment explaining the use of a 256 bytes buffer

This commit is contained in:
achazal
2026-03-24 14:21:00 +01:00
parent dad40ca5ae
commit 232bb1959c
+2
View File
@@ -1312,6 +1312,8 @@ static int CmdPCSC(const char *Cmd) {
}
}
// ISO 7816-3 specifies that ATRs can be 2 to 33 bytes long
// but some custom cards may support up to 256 bytes long ATRs
uint8_t res[2 + 256] = {0};
res[1] = atrLen;
memcpy(res + 2, atr, atrLen);