Matt Caswell e6dcb08984 ASN1_primitive_new NULL param handling
ASN1_primitive_new takes an ASN1_ITEM * param |it|. There are a couple
of conditional code paths that check whether |it| is NULL or not - but
later |it| is deref'd unconditionally. If |it| was ever really NULL then
this would seg fault. In practice ASN1_primitive_new is marked as an
internal function in the public header file. The only places it is ever
used internally always pass a non NULL parameter for |it|. Therefore, change
the code to sanity check that |it| is not NULL, and remove the conditional
checking.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit 9e488fd6ab2c295941e91a47ab7bcd346b7540c7)
2015-03-12 09:32:22 +00:00
..
2015-01-22 09:38:39 +00:00
2015-03-12 09:32:22 +00:00
2015-03-05 09:22:50 +00:00
2015-03-08 16:29:42 +00:00
2015-03-05 09:22:50 +00:00
2015-01-27 16:36:25 -05:00
2015-03-05 09:22:50 +00:00
2015-01-22 14:22:19 +00:00
2012-06-08 09:18:47 +00:00
2015-03-05 09:22:50 +00:00
2015-03-05 09:22:50 +00:00
2015-01-22 09:38:39 +00:00
2015-03-02 15:26:47 +00:00
2011-08-12 12:31:08 +00:00
2015-02-09 13:01:28 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00