Topic: Bug in asn.c GetCertHeader()
In GetCertHeader(..) this variable is declared:
mp_int mpi;
and then hopefully initialized later on in GetInt(...)
however if GetInt fails then, instead of returning
ret is set to ASN_PARSE_E
it looks like this ret value is then ignored later on
so I assume the intention was to write
return ASN_PARSE_E;
instead of
ret = ASN_PARSE_E;
Since mp_int is not nulled or anything, attempting
to free it in mp_init will causes a crash.
Eoin.