anomy-bugs

Re: base64 encodings with linelength % 4 != 0

From: Bjarni R. Einarsson (16345@xyz.molar.is)
Date: Fri 09 Aug 2002 - 15:36:55 UTC

  • Next message: wolfgang: "rule with policy=unknown will include att while it should not"

    On 2002-08-08, 17:49:14 (+0000), Bjarni R. Einarsson wrote:
    > Hmm, thanks... there definately is a problem somewhere, thanks for the
    > sample. I'll see if I can get it fixed. :-)

    Problem found - the decoding works fine, but the reencoding logic
    had some problems. Modifying MIMEStream::EncodeBase64 to include
    this line:

       my $llen = (int($writer->{"DecodeBase64llen"}/3)*3) || 57;

    Instead of the old:

       my $llen = $writer->{"DecodeBase64llen"} || 57;

    Should solve the problem.

    I plan to release a new version of the Sanitizer to correct this
    problem ASAP.

    -- 
    Bjarni R. Einarsson                           PGP: 02764305, B7A3AB89
     16345@xyz.molar.is                -><-              http://bre.klaki.net/
    

    Check out my open-source email sanitizer: http://mailtools.anomy.net/ Spammers, please send plenty of email to: 16469@xyz.molar.is



    hosted by molar.is