Skip to content

Commit a80b6a3

Browse files
committed
Fix phantom allowList
1 parent 33e06cb commit a80b6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/us/q3q/fido2/FIDO2Applet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ private void getAssertion(APDU apdu, short lc, short readIdx, short firstCredIdx
14671467
short allowListIdx = -1;
14681468

14691469
short paramsRead = 2;
1470-
if (bufferMem[readIdx] == 0x03) { // allowList
1470+
if (numParams > 2 && bufferMem[readIdx] == 0x03) { // allowList
14711471
readIdx++;
14721472
if (readIdx >= lc) {
14731473
sendErrorByte(apdu, FIDOConstants.CTAP2_ERR_INVALID_CBOR);

0 commit comments

Comments
 (0)