]> git.itanic.dy.fi Git - linux-stable/commit
ASN.1: Fix an indefinite length skip error
authorDavid Howells <dhowells@redhat.com>
Mon, 22 Oct 2012 14:05:55 +0000 (15:05 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 5 Dec 2012 00:57:39 +0000 (11:27 +1030)
commitf3537f91f9be2ce5fcbaa1aa6d787ad0436daec6
tree7e3b48605e275e89385b9602c017993441291664
parent12e130b04580532aa099893158aa2776b321ae7f
ASN.1: Fix an indefinite length skip error

Fix an error in asn1_find_indefinite_length() whereby small definite length
elements of size 0x7f are incorrecly classified as non-small.  Without this
fix, an error will be given as the length of the length will be perceived as
being very much greater than the maximum supported size.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/asn1_decoder.c