Date: Thu, 30 Mar 2000 21:44:22 -0800 (PST) From: Jin Guojun (FTG staff) <jin@george.lbl.gov> To: freebsd-bugs@FreeBSD.org Subject: re: bin/16271 Message-ID: <200003310544.VAA00275@george.lbl.gov>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003310544.VAA00275>
