File opensc-0_13_0-CVE-2019-19479.patch of Package opensc.31033
Index: opensc-0.13.0/src/libopensc/card-setcos.c =================================================================== --- opensc-0.13.0.orig/src/libopensc/card-setcos.c +++ opensc-0.13.0/src/libopensc/card-setcos.c @@ -869,7 +869,7 @@ static void parse_sec_attr_44(sc_file_t } /* Encryption key present ? */ - iPinCount = iACLen - 1; + iPinCount = iACLen > 0 ? iACLen - 1 : 0; if (buf[iOffset] & 0x20) { int iSC;