logo       

Re: ClamAV infinite loop: msg#00030

security.virus.clamav.devel

Subject: Re: ClamAV infinite loop

Nigel Horne wrote:
On Wed, 2005-11-16 at 21:41, Brian Bebeau wrote:


cli_realloc() doesn't fail, so it never breaks out of the loop
from that.


From cli_realloc:

if(!size || size > MAX_ALLOCATION) {
cli_errmsg("Attempt to allocate %d bytes. Please report to
bugs@xxxxxxxxxx\n", size);
return NULL;
}

Looks like a failure to me!

But cli_realloc does NOT fail. I don't get that error message.
Possibly it doesn't fail because it's not trying to alloc as
much memory. Only the cli_calloc() in messageCreate() fails,
trying to calloc 68 bytes.
Why does the loop repeat and try to do the exact same thing
when messageCreate() fails?
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise