mirror of
https://github.com/estkme-group/lpac
synced 2024-09-19 07:20:41 +02:00
fix a bug when derutil parse zero length tag
This commit is contained in:
parent
d14cfe8bc1
commit
198f8d6004
|
@ -136,6 +136,11 @@ int euicc_derutil_tag_find(uint8_t **rptr, uint8_t *buffer, uint32_t buffer_len,
|
||||||
}
|
}
|
||||||
return current_length;
|
return current_length;
|
||||||
}
|
}
|
||||||
|
if (current_length == 0)
|
||||||
|
{
|
||||||
|
state = 0;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
current_length--;
|
current_length--;
|
||||||
if (current_length == 0)
|
if (current_length == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue