oberthur: fixed length checking
fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26116
This commit is contained in:
parent
2f6ab4c1a2
commit
fca2ba9474
@ -496,7 +496,7 @@ sc_oberthur_parse_privateinfo (struct sc_pkcs15_card *p15card,
|
|||||||
|
|
||||||
LOG_FUNC_CALLED(ctx);
|
LOG_FUNC_CALLED(ctx);
|
||||||
|
|
||||||
for (ii=0; ii<len; ii+=5) {
|
for (ii=0; ii+5<=len; ii+=5) {
|
||||||
unsigned int file_id, size;
|
unsigned int file_id, size;
|
||||||
|
|
||||||
if(*(buff+ii) != 0xFF)
|
if(*(buff+ii) != 0xFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user