Re: Idea! Memory system with overrun check

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


On Wed, 3 Dec 1997, Chris Jacobson wrote:

>I just had an idea... using the memory system I wrote, one could write a
>special function to automatically append 1 byte to all memory allocated,
>and set that to a magic number.  Then when freeing, if the magic number
>is inconsistent, you know you have a memory overrun!  I'll look into
>doing it.  Shouldn't be too hard.

Um...if you based it on my Buffer patch, it already does that. You may have
an older version though.

--
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