aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-06 08:29:08 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-06 08:29:08 -0800
commit54d1ae492f724f103a07f69c8e429a35d43b5c52 (patch)
treec4cdcbc2d5223f7efea732cbf041da0ec2220912 /lib
parentMerge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff)
parentASN.1: Fix an indefinite length skip error (diff)
downloadlinux-dev-54d1ae492f724f103a07f69c8e429a35d43b5c52.tar.xz
linux-dev-54d1ae492f724f103a07f69c8e429a35d43b5c52.zip
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull module signing fixes from Rusty Russell: "David gave me these a month ago, during my git workflow churn :(" * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: ASN.1: Fix an indefinite length skip error MODSIGN: Don't use enum-type bitfields in module signature info block
Diffstat (limited to 'lib')
-rw-r--r--lib/asn1_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1_decoder.c b/lib/asn1_decoder.c
index de2c8b5a715b..5293d2433029 100644
--- a/lib/asn1_decoder.c
+++ b/lib/asn1_decoder.c
@@ -91,7 +91,7 @@ next_tag:
/* Extract the length */
len = data[dp++];
- if (len < 0x7f) {
+ if (len <= 0x7f) {
dp += len;
goto next_tag;
}