off by 1
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3104 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
30d0066a58
commit
1bee8bf5c6
|
@ -248,7 +248,7 @@ static int is_esteid_atr(u8 *atr, size_t atr_len) {
|
|||
if (atr_len<14)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i<atr_len-14; i++) {
|
||||
for (i = 0; i<atr_len-14+1; i++) {
|
||||
if (!memcmp(atr++, str, 14))
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue