]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrected an off-by-one error.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 May 2014 10:52:25 +0000 (12:52 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 May 2014 10:52:25 +0000 (12:52 +0200)
The issue was discovered using the codenomicon TLS suite.

lib/minitasn1/decoding.c

index 0b334fefc4ba86f1516786ec61eaf08b132f0923..16f202a2c4c3e328169911483f85ec1e7e445fdb 100644 (file)
@@ -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))