Date: Mon, 22 Apr 1996 10:30:01 -0700 (PDT) From: David Greenman <davidg@Root.COM> To: freebsd-bugs Subject: Re: bin/1153: fmt segfaults Message-ID: <199604221730.KAA20742@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: David Greenman <davidg@Root.COM>
To: "matthew c. mead" <mmead@Glock.COM>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604221730.KAA20742>
