[Box Backup] ./runtest.pl common debug fails

Martin Ebourne boxbackup@fluffy.co.uk
Wed, 16 Nov 2005 16:12:17 +0000


Jamie Webb <j@jmawebb.cjb.net> wrote:
> Linux realloc expands blocks in-place if it can. It's easy to pretty
> much guarantee that it can't:

That's a technique which may well work consistently on that platform. 
But fundamentally you can never be certain of preventing realloc from 
reusing the same address on all possible platforms and given that the 
standard explicitly allows it to, the only correct action is to remove 
the incorrect test.

Cheers,

Martin.