Skip to content
Commit f617b496 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Don't set *pval to NULL in ASN1_item_ex_new.



While *pval is usually a pointer in rare circumstances it can be a long
value. One some platforms (e.g. WIN64) where
sizeof(long) < sizeof(ASN1_VALUE *) this will write past the field.

*pval is initialised correctly in the rest of ASN1_item_ex_new so setting it
to NULL is unecessary anyway.

Thanks to Julien Kauffmann for reporting this issue.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 9fdbc9df
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment