Viktor Dukhovni
bdcd660e33
Bugfix: in asn1parse avoid erroneous len after a sub-sequence
Introduced in:
commit 79c7f74d6c
Author: Ben Laurie <ben@links.org>
Date: Tue Mar 29 19:37:57 2016 +0100
Fix buffer overrun in ASN1_parse().
Problem input:
https://tools.ietf.org/html/draft-ietf-curdle-pkix-eddsa-00#section-8.1
-----BEGIN PUBLIC KEY-----
MC0wCAYDK2VkCgECAyEAGb9ECWmEzf6FQbrBZ9w7lshQhqowtrbLDFw4rXAxZuE=
-----END PUBLIC KEY-----
Previously:
0:d=0 hl=2 l= 45 cons: SEQUENCE
2:d=1 hl=2 l= 8 cons: SEQUENCE
4:d=2 hl=2 l= 3 prim: OBJECT :1.3.101.100
9:d=2 hl=2 l= 1 prim: ENUMERATED :02
Error in encoding
140735164989440:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:../openssl/crypto/asn1/asn1_lib.c:148:
Now:
0:d=0 hl=2 l= 45 cons: SEQUENCE
2:d=1 hl=2 l= 8 cons: SEQUENCE
4:d=2 hl=2 l= 3 prim: OBJECT :1.3.101.100
9:d=2 hl=2 l= 1 prim: ENUMERATED :02
12:d=1 hl=2 l= 33 prim: BIT STRING
0000 - 00 19 bf 44 09 69 84 cd-fe 85 41 ba c1 67 dc 3b ...D.i....A..g.;
0010 - 96 c8 50 86 aa 30 b6 b6-cb 0c 5c 38 ad 70 31 66 ..P..0....\8.p1f
0020 - e1 .
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-14 02:41:30 -04:00
..
2016-04-07 21:27:24 +02:00
2016-04-14 02:41:30 -04:00
2016-03-21 16:57:34 +00:00
2016-03-21 11:02:00 +01:00
2016-04-13 08:59:03 +01:00
2016-04-07 21:18:00 +02:00
2016-04-07 21:27:24 +02:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-10 01:50:45 +02:00
2016-04-13 12:07:31 +02:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-13 11:36:46 +02:00
2016-04-13 08:59:03 +01:00
2016-04-07 14:41:34 -04:00
2016-03-21 11:02:00 +01:00
2016-04-09 10:10:55 +01:00
2016-04-09 10:10:55 +01:00
2016-03-23 19:58:12 +01:00
2016-03-29 20:03:48 +02:00
2016-04-13 08:59:03 +01:00
2016-04-13 16:22:58 -04:00
2016-04-13 21:25:24 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-13 15:23:47 +02:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:44:27 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-13 15:05:07 +01:00
2016-03-21 11:02:00 +01:00
2016-04-06 16:19:17 +02:00
2016-04-13 12:09:46 +02:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-04 16:11:43 -04:00
2016-04-13 08:59:03 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:44:27 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-06 16:19:20 +02:00
2016-03-29 09:53:51 +02:00
2016-04-07 21:27:24 +02:00
2016-04-04 16:11:43 -04:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-03-21 11:02:00 +01:00
2016-04-08 09:30:23 -04:00
2016-04-04 16:11:43 -04:00
2016-03-09 11:09:26 +01:00
2015-01-23 15:38:41 +01:00
2015-01-22 09:20:09 +00:00
2015-04-20 15:06:22 +02:00
2015-09-25 13:34:02 +02:00
2016-03-30 11:22:42 +02:00
2016-02-10 15:52:32 -05:00
2016-03-30 11:22:42 +02:00
2016-02-10 19:36:48 +01:00
2016-03-30 11:22:42 +02:00
2016-02-09 20:13:29 -05:00
2016-04-13 08:59:03 +01:00
2016-01-26 16:40:43 -05:00
2016-02-09 20:13:29 -05:00
2016-04-13 15:05:07 +01:00
2015-01-22 09:20:09 +00:00
2015-05-05 22:18:59 -04:00
2015-05-05 22:18:59 -04:00
2015-01-22 09:20:09 +00:00
2015-05-05 22:18:59 -04:00
2015-01-22 09:20:09 +00:00
2016-03-21 11:02:00 +01:00
2016-02-25 10:04:00 -05:00
2016-03-31 00:12:47 +01:00
2016-03-08 21:06:04 +00:00
2016-02-25 10:19:50 -05:00
2016-01-26 16:40:43 -05:00
2015-05-14 17:21:40 +02:00
2016-01-26 16:40:43 -05:00
2016-02-26 16:50:59 +00:00
2016-03-17 17:06:57 -04:00
2016-04-13 12:09:46 +02:00
2016-04-13 12:09:46 +02:00
2016-04-13 12:09:46 +02:00
2015-01-22 09:20:09 +00:00
2015-01-22 09:20:09 +00:00
2015-07-14 01:10:01 +02:00
2015-12-02 10:53:33 +01:00
2016-02-26 10:00:36 +00:00
2016-03-03 19:47:01 -05:00
2016-04-02 16:56:09 -04:00
2016-03-17 17:06:57 -04:00
2015-01-22 09:20:09 +00:00
2016-03-09 11:09:26 +01:00