Mailing List Archive

Patches For Your Amusement
These patches

* clamd scans up to streammaxlength
* clamav-milter does not send more than streammaxlength (by way of
making clamfi_send track bytes sent) only if not using quarantine option
* paranoid checking is performed for all memory allocations by way of
using a macro which when called in a function requires a function scoped
variable int ret_code = 0 and a goto label called cleanup. This may be a
little over the top.
* attempt to get debug logging working for me without having Foreground set
* using vsnprintf_alloc, a function I am experimenting with that handles
allocation and length checking for the destination string itself (avoid
potential truncation in clamfi_send and somewhat akward reallocating in
clamfi_eom for logging all recipients)

These patches will apply clean against todays CVS, except for
clamav-milter.c which needs -r1.76

Any and all feedback is most welcome, including observations on my
stupidity, if in evidence.

Running ok here for a couple hours. Probaly some bugs.

Joe
Re: Patches For Your Amusement [ In reply to ]
Joe Maimon wrote:

> These patches
>
> * clamd scans up to streammaxlength
> * clamav-milter does not send more than streammaxlength (by way of
> making clamfi_send track bytes sent) only if not using quarantine option
> * paranoid checking is performed for all memory allocations by way of
> using a macro which when called in a function requires a function
> scoped variable int ret_code = 0 and a goto label called cleanup. This
> may be a little over the top.
> * attempt to get debug logging working for me without having
> Foreground set
> * using vsnprintf_alloc, a function I am experimenting with that
> handles allocation and length checking for the destination string
> itself (avoid potential truncation in clamfi_send and somewhat akward
> reallocating in clamfi_eom for logging all recipients)
>
> These patches will apply clean against todays CVS, except for
> clamav-milter.c which needs -r1.76
>
> Any and all feedback is most welcome, including observations on my
> stupidity, if in evidence.
>
> Running ok here for a couple hours. Probaly some bugs.
>
> Joe
>
Running ok for hours now.

Here are versions of the patches that will apply against clamav-milter 0.70o
Re: Patches For Your Amusement [ In reply to ]
I have setup a small page for all my (updated) clamav patches for
purposes of convenience.

http://www.jmaimon.com/clamav

(still running ok)

I will stop harassing you all now about this.

Joe Maimon wrote:
>These patches