From 1a8a1b503718d83fd295094781bf37d7ce54bb66 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 11 Apr 2004 15:15:11 +0000 Subject: [PATCH] Bug #962: lib/rfc1035.c:309: rfc1035NameUnpack: Assertion (*off) < sz failed. --- lib/rfc1035.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rfc1035.c b/lib/rfc1035.c index 8e138538d6..bad96e9c4c 100644 --- a/lib/rfc1035.c +++ b/lib/rfc1035.c @@ -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; -- 2.47.2