Trog wrote:
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.

Good point.

cli_realloc() is correct as it is.

-trog



------------------------------------------------------------------------

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html


--
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Typesetter.
NJH Music, Barnsley, UK.  ICQ#20252325
[EMAIL PROTECTED] http://www.bandsman.co.uk
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to