[ECOS] Re: dlmalloc-2.6.4.c MALLOC_COPY broken?
Dave Lawrence
dlawrence@ad-holdings.co.uk
Tue Jan 8 11:25:00 GMT 2008
Andrew Lunn wrote:
> I don't see how this can result in overlapping memory. newptr is a new
> block of memory, so it is not possible that it overlaps with ptr.
I agree. Infact it is 2.6.6 that is broken (sorry for the confusion).
This version attempts to extend the block forwards or backwards in
preference to allocating a completely new block. If the increase in
size is less then a factor of two then the resulting copy will overlap.
dlmalloc.cxx in the anon CVS seems to be based on 2.6.6.
More information about the Ecos-patches
mailing list