delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/04/05/01:16:36

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Fri, 05 Apr 2002 09:12:08 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
Message-Id: <2110-Fri05Apr2002091207+0300-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <E16soP7-0000oI-00@phekda.freeserve.co.uk>
(rich AT phekda DOT freeserve DOT co DOT uk)
Subject: Re: FSEXT: grow_table and realloc failure
References: <E16soP7-0000oI-00 AT phekda DOT freeserve DOT co DOT uk>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 03 Apr 2002 18:22:36 +0100
> From: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
> 
> Below is a diff to fix the realloc bug in grow_table in the FSEXT code.
> If realloc fails, then the current code will trash the __FSEXT_entry
> table. This can lead to bogus behaviour when the program exits
> and the __FSEXT_close_all function is called. On one occassion
> it wedged my box.

I'm not sure I understand the problem, because the solution doesn't
seem to solve what I have in mind.  If realloc fails, doesn't that
mean the old buffer could be invalid as well?  And yet AFAIU your
change simply lets the program use the old array.  What am I missing?

- Raw text -


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