|
Re: ClamAV infinite loop: msg#00035security.virus.clamav.devel
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
http://lurker.clamav.net/list/clamav-devel.html |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ClamAV infinite loop: 00035, Nigel Horne |
|---|---|
| Next by Date: | Re: ClamAV infinite loop: 00035, Nigel Horne |
| Previous by Thread: | Re: ClamAV infinite loopi: 00035, Nigel Horne |
| Next by Thread: | Re: ClamAV infinite loop: 00035, Nigel Horne |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |