From owner-freebsd-bugs Mon Apr 22 10:00:09 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA17530 for bugs-outgoing; Mon, 22 Apr 1996 10:00:09 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA17513 Mon, 22 Apr 1996 10:00:03 -0700 (PDT) Date: Mon, 22 Apr 1996 10:00:03 -0700 (PDT) Message-Id: <199604221700.KAA17513@freefall.freebsd.org> To: freebsd-bugs Cc: From: "matthew c. mead" Subject: Re: bin/1153: fmt segfaults Reply-To: "matthew c. mead" Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1153; it has been noted by GNATS. From: "matthew c. mead" 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/