From owner-freebsd-bugs Mon Apr 22 10:30:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA20751 for bugs-outgoing; Mon, 22 Apr 1996 10:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA20742 Mon, 22 Apr 1996 10:30:01 -0700 (PDT) Date: Mon, 22 Apr 1996 10:30:01 -0700 (PDT) Message-Id: <199604221730.KAA20742@freefall.freebsd.org> To: freebsd-bugs Cc: From: David Greenman Subject: Re: bin/1153: fmt segfaults Reply-To: David Greenman 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: David Greenman To: "matthew c. mead" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/1153: fmt segfaults Date: Sun, 28 Apr 1996 16:24:24 -0700 >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. Oh! Sorry about that, yes, I was assuming 2.1-stable. Nevermind. :-) -DG David Greenman Core-team/Principal Architect, The FreeBSD Project