Matt Caswell
289c06823e
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:29:48 +00:00
..
2015-02-24 10:12:57 +01:00
2015-03-12 09:29:48 +00:00
2015-01-22 09:31:38 +00:00
2015-03-10 12:34:21 +01:00
2015-03-12 09:29:48 +00:00
2015-01-22 09:31:38 +00:00
2015-02-24 10:12:57 +01:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-03-05 09:15:08 +00:00
2015-01-22 09:31:38 +00:00
2015-02-12 13:01:33 -05:00
2015-02-05 09:45:25 -05:00
2015-03-08 16:29:28 +00:00
2015-03-08 16:29:28 +00:00
2015-03-05 09:15:08 +00:00
2015-02-25 17:22:01 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-26 10:46:26 -05:00
2015-01-22 09:31:38 +00:00
2015-03-12 09:29:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-30 16:38:42 +01:00
2015-03-05 09:15:08 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 14:11:04 +00:00
2015-02-24 10:12:57 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-03-05 09:15:08 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-26 11:06:28 -05:00
2015-01-22 09:31:38 +00:00
2015-02-22 19:22:09 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 16:12:26 +00:00
2015-01-22 09:31:38 +00:00
2015-03-05 09:15:08 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-02-22 08:10:29 +01:00
2015-01-22 09:31:48 +00:00
2015-03-02 15:26:41 +00:00
2015-02-10 15:36:03 +01:00
2008-04-17 10:19:16 +00:00
2011-08-12 12:31:08 +00:00
2014-06-10 23:20:55 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-06 11:14:23 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2014-06-18 13:43:09 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-02-09 13:01:15 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2011-11-14 20:45:57 +00:00
2014-06-18 13:43:09 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-13 11:28:54 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2005-12-16 10:37:24 +00:00
2015-01-22 16:16:24 +00:00
2015-01-22 09:31:38 +00:00
2013-06-30 23:13:23 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2014-07-20 14:36:49 +02:00
2015-01-22 09:31:38 +00:00
2011-11-14 20:47:22 +00:00
2015-01-22 09:31:38 +00:00
2013-05-20 00:16:18 +02:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2014-02-14 17:25:14 +01:00
2014-02-14 17:25:14 +01:00