bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows realloc & GNU


From: Derek Price
Subject: Re: Windows realloc & GNU
Date: Tue, 20 Sep 2005 17:32:38 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Conrad T. Pino wrote:

>Yes but the "free" function detects the write past the end and displays
>a dialog box with "Abort", "Retry", "Ignore" options.  Nothing odd occurs
>when "free" isn't called.  Looks clean to me.
>  
>

That isn't right.  Since realloc(0,0) should return a valid pointer, you
need to be able to pass it to free() without a problem.  Some code may
be making this assumption.  Use the GNULIB replacement realloc in
lib/realloc.c.

Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:derek@ximbiot.com>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]