fix a bug when derutil parse zero length tag

This commit is contained in:
estkme 2023-10-23 00:25:04 +08:00
parent d14cfe8bc1
commit 198f8d6004

View file

@ -136,6 +136,11 @@ int euicc_derutil_tag_find(uint8_t **rptr, uint8_t *buffer, uint32_t buffer_len,
}
return current_length;
}
if (current_length == 0)
{
state = 0;
continue;
}
current_length--;
if (current_length == 0)
{