delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/08/05:20:31

Date: Tue, 8 Dec 1998 12:20:41 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rob Kramer <robk AT cyberway DOT com DOT sg>
cc: djgpp AT delorie DOT com
Subject: Re: v2.02 malloc/free problem? Or silly me?
In-Reply-To: <MPG.10d72037bf1d4b31989683@news.cyberway.com.sg>
Message-ID: <Pine.SUN.3.91.981208122008.19046R-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 8 Dec 1998, Rob Kramer wrote:

> I tried installing the new version 2.02, but seem to have weird 
> malloc/free problems.

This is most probably a subtle bug in your program that went unnoticed
in v2.01.  The new malloc doesn't keep slack space beyond the end of
the allocated buffer, so programs which overrun the allocated storage
run much higher risk of destroying the chain of pointers maintained by
malloc and free.

In general, I expect many similar bugs to be revealed by upgrading to
v2.02.

> Back to 2.01 for now :(

I would rather suggest to debug your program ;-).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019