fixed UNKNOWN READ
Reported by OSS-Fuzz https://oss-fuzz.com/testcase-detail/5681169970757632
This commit is contained in:
parent
6263afbe43
commit
c3f23b836e
|
@ -868,7 +868,7 @@ static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len)
|
|||
}
|
||||
|
||||
/* Encryption key present ? */
|
||||
iPinCount = iACLen - 1;
|
||||
iPinCount = iACLen > 0 ? iACLen - 1 : 0;
|
||||
|
||||
if (buf[iOffset] & 0x20) {
|
||||
int iSC;
|
||||
|
|
Loading…
Reference in New Issue