summaryrefslogtreecommitdiff
path: root/lib/minitasn1
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-04 12:52:25 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-04 12:52:25 +0200
commit88b46492e68ab43b10c768c8dcd3fcebc2b0a4ea (patch)
tree9933eebb36b250e1c1402c9b26bbfb756e05b41d /lib/minitasn1
parentc2b60b5f2caed76ed510dd9d06250fc328be7d15 (diff)
downloadgnutls-88b46492e68ab43b10c768c8dcd3fcebc2b0a4ea.tar.gz
Corrected an off-by-one error.
The issue was discovered using the codenomicon TLS suite.
Diffstat (limited to 'lib/minitasn1')
-rw-r--r--lib/minitasn1/decoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/minitasn1/decoding.c b/lib/minitasn1/decoding.c
index 0b334fefc4..16f202a2c4 100644
--- a/lib/minitasn1/decoding.c
+++ b/lib/minitasn1/decoding.c
@@ -149,7 +149,7 @@ asn1_get_tag_der (const unsigned char *der, int der_len,
/* Long form */
punt = 1;
ris = 0;
- while (punt <= der_len && der[punt] & 128)
+ while (punt < der_len && der[punt] & 128)
{
if (INT_MULTIPLY_OVERFLOW (ris, 128))