Re: Wiz Command Problem

From: Zeavon (zeavon@kilnar.com)
Date: 03/05/00


On Sun, 5 Mar 2000, Deja Augustine wrote:

> It will run fine, but after it lists a certain number of mobs/objs, it
> crashes the mud with a Segmentation Fault.  But it doesn't necessarily do it
> every time...

You're pushing stuff into a buffer with a limited size and not checking to
see if there is room left in the buffer for the information. I'm willing
to bet dimes to dollars that the problem is a buffer overflow.

Check to make sure that there is room in your buffer for what you're about
to shove in there.

--
Zeavon Calatin, MageMaster of the Realms
Spear of Insanity
http://spear.kilnar.com/    telnet://spear.kilnar.com:1066


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



This archive was generated by hypermail 2b30 : 04/10/01 PDT