Date: Mon, 22 Apr 1996 10:00:03 -0700 (PDT) From: "matthew c. mead" <mmead@Glock.COM> To: freebsd-bugs Subject: Re: bin/1153: fmt segfaults Message-ID: <199604221700.KAA17513@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1153; it has been noted by GNATS. From: "matthew c. mead" <mmead@Glock.COM> To: davidg@Root.COM Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/1153: fmt segfaults Date: Mon, 22 Apr 1996 12:54:09 -0400 (EDT) David Greenman writes: > I don't get it. How can "cp" be NULL? It's assigned to "linebuf" which is > allocated off the stack: > char linebuf[BUFSIZ], canonb[BUFSIZ]; > ...linebuf can never be NULL. Could you be looking at the source for the 2.1 version of fmt? The one in -current has been rewritten to use a reallocating buffer for linebuf. -matt -- Matthew C. Mead mmead@Glock.COM http://www.Glock.COM/~mmead/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604221700.KAA17513>