|
Re: ClamAV infinite loop: msg#00034security.virus.clamav.devel
Try this patch in .../clamav-devel/libclamav: *** Oothers.c 2005-11-28 09:01:06.000000000 +0000 --- others.c 2005-11-28 09:02:03.000000000 +0000 *************** *** 354,360 **** cli_errmsg("cli_realloc(): Can't re-allocate memory to %d byte.\n", size); perror("realloc_problem"); return NULL; ! } else return alloc; } unsigned int cli_rndnum(unsigned int max) --- 354,366 ---- cli_errmsg("cli_realloc(): Can't re-allocate memory to %d byte.\n", size); perror("realloc_problem"); return NULL; ! } ! if(alloc == ptr) { ! cli_errmsg("cli_realloc(): Can't re-allocate memory to %u bytes\n", size); ! free(ptr); ! return NULL; ! } ! return alloc; } unsigned int cli_rndnum(unsigned int max) -- Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 njh@xxxxxxxxxxxxx http://www.bandsman.co.uk _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ClamAV infinite loop: 00034, Nigel Horne |
|---|---|
| Next by Date: | Re: ClamAV infinite loop: 00034, Trog |
| Previous by Thread: | Re: ClamAV infinite loopi: 00034, Nigel Horne |
| Next by Thread: | Re: ClamAV infinite loop: 00034, Trog |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |