Hello All,
Automatic tool detects there are several potential NULL pointer dereference
in openssl source code, please help me review the attached two patches.
Thanks,
Xufeng
Xufeng Zhang (2):
openssl: avoid NULL pointer dereference in EVP_DigestInit_ex()
openssl: avoid NULL pointer
We should avoid accessing the type pointer if it's NULL,
this could happen if ctx-digest is not NULL.
---
crypto/evp/digest.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c
index 982ba2b..96122ea 100644
--- a/crypto/evp/digest.c
Hello All,
Automatic tool detects there are several potential NULL pointer dereference
in openssl source code, please help me review the attached two patches.
Thanks,
Xufeng
Xufeng Zhang (2):
openssl: avoid NULL pointer dereference in EVP_DigestInit_ex()
openssl: avoid NULL pointer
We should avoid accessing the pointer if ASN1_STRING_new()
allocates memory failed.
---
crypto/dh/dh_ameth.c |6 ++
crypto/dsa/dsa_ameth.c |5 +
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c
index 141c09b..784746b
Sorry, looks like this patchset has been resend, please ignore one of them.
Thanks,
Xufeng
On 08/21/2013 10:54 AM, Xufeng Zhang wrote:
Hello All,
Automatic tool detects there are several potential NULL pointer dereference
in openssl source code, please help me review the attached two patches