Re: [Exim] system-filter update - please test also problem w…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: jens persson
Date:  
À: Nigel Metheringham
CC: exim-users
Anciens-sujets: [Exim] system-filter update - please test
Sujet: Re: [Exim] system-filter update - please test also problem with "string_sprintf expansion was longer than 8192"
Hello!

There might be a problem with this new version, making it give false
positives. I think that the following happened a mail with a attached
pgp signature (actually a Microsoft sec bulletin MS01-038) that contained
something like this:

------_=_NextPart_000_01C0FA6A.C39BAA10
Content-Type: application/pgp;
        name="PGPexch.htm.asc" 
    Content-Transfer-Encoding: base64
    Content-Description: PGPexch.htm.asc 
    Content-Disposition: attachment;         
    filename="PGPexch.htm.asc" 


cWYvWGR4azBUdTEvexeydFgNCjg3cTN2QjRjMmZlYjk1ei94ZHEvYmp1K2UrSHZ0OURweXRUN0wx
                ^^^
(note this is not the actual message since it was lost during my testing. 
 Yes I know... But backups are for wimps :-)


I think that this might be becurse of the change from \w to . that should
have been into [^"] so that it don't continue past the name (I'm not sure
whether the ":s are mandatory or if we need to get into backtracking).

I then discover it sitting in the queue giving:
LOG: 0 PANIC DIE
string_sprintf expansion was longer than 8192

Since the match was quite long and when constructing the fail
message it became longer then 8192 chars. I removed the reference
to $1 in the fail message and the queue run went well (bouncing the
message).

/jp

On Wed, Aug 15, 2001 at 11:13:35AM +0100, Nigel Metheringham wrote:
> I have (finally) slammed out an updated system-filter.
>
> I'd apprecaite it if people could give this the once over before I more
> widely announce it.
>
> Changes:-
>     - added .lnk extension (much applause)
>     - changed \w in filenames to . (locale problems)
>     - changed build method - now the filter is built from several
>       small library files
>     - added GPL notices
>     - changed some comments etc
>     - updated sample regexp at end

>
>     Nigel.

>
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##


-- 
Jens Persson          E-mail: jens.persson@???
System administrator (UNIX, mail, http etc.)
BTJ AB                 Phone: +46 46 18 00 00
S-221 82 Lund            Fax: +46 46 30 62 19