]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #962: lib/rfc1035.c:309: rfc1035NameUnpack: Assertion (*off) < sz failed.
authorhno <>
Sun, 11 Apr 2004 15:15:11 +0000 (15:15 +0000)
committerhno <>
Sun, 11 Apr 2004 15:15:11 +0000 (15:15 +0000)
lib/rfc1035.c

index 8e138538d605c76cc3c2063e290d0e57f430d6a7..bad96e9c4c689edc88f52e78c438280f32441963 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: rfc1035.c,v 1.30 2003/04/25 12:19:59 hno Exp $
+ * $Id: rfc1035.c,v 1.31 2004/04/11 09:15:11 hno Exp $
  *
  * Low level DNS protocol routines
  * AUTHOR: Duane Wessels
@@ -337,7 +337,7 @@ rfc1035NameUnpack(const char *buf, size_t sz, off_t * off, char *name, size_t ns
                break;
            if (len > (ns - no - 1))    /* label won't fit */
                return 1;
-           if ((*off) + len > sz)      /* message is too short */
+           if ((*off) + len >= sz)     /* message is too short */
                return 1;
            memcpy(name + no, buf + (*off), len);
            (*off) += len;