Date: Tue, 2 Oct 2001 11:47:49 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Peter Pentchev <roam@ringlet.net> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/30968: whois client bug w/ .biz Message-ID: <200110021547.f92FlnX69538@khavrinen.lcs.mit.edu> In-Reply-To: <200110021120.f92BK2L92453@freefall.freebsd.org> References: <200110021120.f92BK2L92453@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 2 Oct 2001 04:20:02 -0700 (PDT), Peter Pentchev <roam@ringlet.net> said: > while ((buf = fgetln(sfi, &len)) != NULL) { > + newbuf = realloc(buf, len + 1); You can't do this. The buffer fgetln() returns belongs to stdio (it may be a pointer into the FILE's buffer). -GAWollman 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?200110021547.f92FlnX69538>