logo       

Re: ClamAV infinite loop: msg#00035

security.virus.clamav.devel

Subject: Re: ClamAV infinite loop

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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise