Date: Fri, 17 Nov 1995 23:35:19 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: hackers@FreeBSD.ORG Subject: Re: mountd(8) performs illegal free() Message-ID: <199511172235.XAA17700@uriah.heep.sax.de> In-Reply-To: <199511171150.MAA25180@allegro.lemis.de> from "Greg Lehey" at Nov 17, 95 12:50:50 pm
next in thread | previous in thread | raw e-mail | index | archive | help
As Greg Lehey wrote: > > In the last few -current releases, I've had the message > > Malloc warning: free(): junk pointer (too high) Many have been bothered, few are chosen. :-) > if (hpe == (struct hostent *)NULL) > out_of_mem(); > - hpe->h_name = "Default"; > + hpe->h_name = malloc (16); > + strcpy (hpe->h_name, "Default"); hpe->h_name = strdup("Default"); -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511172235.XAA17700>