oberthur: fixed length checking

fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26116
This commit is contained in:
Frank Morgner 2020-10-05 08:49:27 +02:00
parent 2f6ab4c1a2
commit fca2ba9474
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ sc_oberthur_parse_privateinfo (struct sc_pkcs15_card *p15card,
LOG_FUNC_CALLED(ctx);
for (ii=0; ii<len; ii+=5) {
for (ii=0; ii+5<=len; ii+=5) {
unsigned int file_id, size;
if(*(buff+ii) != 0xFF)