]> git.baikalelectronics.ru Git - kernel.git/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)
commitfce75171bf52f4852336ef17123aaa3fa4c966c9
tree7e3b48605e275e89385b9602c017993441291664
parent8e6ebc04a293fbd2de94717b993dd63ce0d73dae
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