Re: your mail

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/01/97


On Mon, 1 Dec 1997, Heartless wrote:

>        I'm curious as to why I keep getting crashes due to libc... I've
>upgraded

Because you have a memory problem with your MUD scribbling over malloc()'s
internal structures.  Fix your memory problem and free() won't crash
anymore.

Examples include strcpy()'ing a 8k string into a 1k buffer and accessing
buf[8192] of a 8192 character buffer.  Another problem is using buf[-1]
which is really awful. :)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST