From owner-freebsd-bugs Thu Mar 30 21:44:26 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from portnoy.lbl.gov (portnoy.lbl.gov [131.243.2.11]) by hub.freebsd.org (Postfix) with ESMTP id A522C37B744 for ; Thu, 30 Mar 2000 21:44:22 -0800 (PST) (envelope-from jin@portnoy.lbl.gov) Received: (from jin@localhost) by george.lbl.gov () id VAA00275 for freebsd-bugs@FreeBSD.org; Thu, 30 Mar 2000 21:44:22 -0800 (PST) Date: Thu, 30 Mar 2000 21:44:22 -0800 (PST) From: Jin Guojun (FTG staff) Message-Id: <200003310544.VAA00275@george.lbl.gov> To: freebsd-bugs@FreeBSD.org Subject: re: bin/16271 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This problem also exists in 4.0 release. The patch is very simple, and the concept is clear. Can we fix this problem with apply the following patch? Thanks, -Jin } Description } } an unsinged len is used to compare with signed expression, } this causes core dump because the (len > 0) always true, } so loop never ends. } patch: *** contrib/nvi/ex/ex_subst.c Thu Oct 31 22:45:30 1996 --- /tmp/ex_subst.c.new Thu Mar 30 21:35:24 2000 *************** *** 1177,1183 **** size_t *plenp; int *replacedp; { ! size_t blen, len; int lastdollar; char *bp, *p, *t; --- 1177,1184 ---- size_t *plenp; int *replacedp; { ! size_t blen; ! int len; int lastdollar; char *bp, *p, *t; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message