diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-04 12:52:25 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-05-04 12:52:25 +0200 |
commit | 88b46492e68ab43b10c768c8dcd3fcebc2b0a4ea (patch) | |
tree | 9933eebb36b250e1c1402c9b26bbfb756e05b41d | |
parent | c2b60b5f2caed76ed510dd9d06250fc328be7d15 (diff) | |
download | gnutls-88b46492e68ab43b10c768c8dcd3fcebc2b0a4ea.tar.gz |
Corrected an off-by-one error.
The issue was discovered using the codenomicon TLS suite.
-rw-r--r-- | lib/minitasn1/decoding.c | 2 |
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)) |