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" Sender: halo1 AT zahav DOT net DOT il To: "Richard Dawe" 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: (rich AT phekda DOT freeserve DOT co DOT uk) Subject: Re: FSEXT: grow_table and realloc failure References: 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 Precedence: bulk > Date: Wed, 03 Apr 2002 18:22:36 +0100 > From: "Richard Dawe" > > 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?