summaryrefslogtreecommitdiff
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:50 +0200
commit060d67a6b839b326913fe882ffcaeb30906bc2a6 (patch)
treec21a37873f35d4b10177511dfd9a92ebb157db94
parent7d6466cb91c6d02fbb22b631fda911883c777ec7 (diff)
downloadgnutls-060d67a6b839b326913fe882ffcaeb30906bc2a6.tar.gz
Corrected an off-by-one error.
The issue was discovered using the codenomicon TLS suite.
-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))