On Mon, 2005-11-28 at 09:03 +0000, Nigel Horne wrote: > Try this patch in .../clamav-devel/libclamav:
> ! if(alloc == ptr) {
> ! cli_errmsg("cli_realloc(): Can't re-allocate memory to %u
> bytes\n", size);
> ! free(ptr);
> ! return NULL;
> ! }
You seriously don't want to do that. The memory allocator can return the
same address if it is able to extend the existing memory region.
cli_realloc() is correct as it is.
-trog
signature.asc
Description: This is a digitally signed message part
_______________________________________________ http://lurker.clamav.net/list/clamav-devel.html
