Commit 1c7c69a8 authored by Bodo Möller's avatar Bodo Möller
Browse files

Fix memory leak on bad inputs.

parent 24ad0610
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@

 Changes between 0.9.8r and 0.9.8s [xx XXX xxxx]

  *) Fix x509_name_ex_d2i memory leak on bad inputs.
     [Bodo Moeller]

  *) Add protection against ECDSA timing attacks as mentioned in the paper
     by Billy Bob Brumley and Nicola Tuveri, see:

+3 −1
Original line number Diff line number Diff line
@@ -197,6 +197,8 @@ static int x509_name_ex_d2i(ASN1_VALUE **val, const unsigned char **in, long len
	*in = p;
	return ret;
err:
        if (nm.x != NULL)
		X509_NAME_free(nm.x);
	ASN1err(ASN1_F_X509_NAME_EX_D2I, ERR_R_NESTED_ASN1_ERROR);
	return 0;
}