Fix double frees.
This commit is contained in:
parent
e3899ababb
commit
9c8dc84ac1
3
CHANGES
3
CHANGES
@ -4,7 +4,8 @@
|
|||||||
|
|
||||||
Changes between 1.0.1g and 1.0.1h [xx XXX xxxx]
|
Changes between 1.0.1g and 1.0.1h [xx XXX xxxx]
|
||||||
|
|
||||||
*)
|
*) Fix some double frees. These are not thought to be exploitable.
|
||||||
|
[mancha <mancha1@zoho.com>]
|
||||||
|
|
||||||
Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
|
Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
|
||||||
|
|
||||||
|
@ -928,6 +928,7 @@ int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si)
|
|||||||
if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0)
|
if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0)
|
||||||
goto err;
|
goto err;
|
||||||
OPENSSL_free(abuf);
|
OPENSSL_free(abuf);
|
||||||
|
abuf = NULL;
|
||||||
if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0)
|
if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0)
|
||||||
goto err;
|
goto err;
|
||||||
abuf = OPENSSL_malloc(siglen);
|
abuf = OPENSSL_malloc(siglen);
|
||||||
|
@ -629,6 +629,7 @@ static int TS_compute_imprint(BIO *data, TS_TST_INFO *tst_info,
|
|||||||
X509_ALGOR_free(*md_alg);
|
X509_ALGOR_free(*md_alg);
|
||||||
OPENSSL_free(*imprint);
|
OPENSSL_free(*imprint);
|
||||||
*imprint_len = 0;
|
*imprint_len = 0;
|
||||||
|
*imprint = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1356,6 +1356,7 @@ int dtls1_send_server_key_exchange(SSL *s)
|
|||||||
(unsigned char *)encodedPoint,
|
(unsigned char *)encodedPoint,
|
||||||
encodedlen);
|
encodedlen);
|
||||||
OPENSSL_free(encodedPoint);
|
OPENSSL_free(encodedPoint);
|
||||||
|
encodedPoint = NULL;
|
||||||
p += encodedlen;
|
p += encodedlen;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user