fixed UNKNOWN READ

Reported by OSS-Fuzz
https://oss-fuzz.com/testcase-detail/5681169970757632
This commit is contained in:
Frank Morgner 2019-11-03 04:45:28 +01:00
parent 6263afbe43
commit c3f23b836e
1 changed files with 1 additions and 1 deletions

View File

@ -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;