anomy-list

Minor change to bad uuencoded preamble check

From: Paul M. Hirsch (107408@xyz.molar.is)
Date: Tue 06 Jan 2004 - 19:33:41 GMT

  • Next message: Bjarni R. Einarsson: "Announcing sanitizer.pl, revision 1.66"

    I have had a few messages come in recently that caused
    Sanitizer processes to eat memory until they hit their
    size limit, then die. The common thread was that they
    all had a line that started with "Begin 2004 " (like
     "Begin 2004 with a big kick to the head!")

    The line in Sanitizer.pm that escapes lines that look like
    UUencoding preambles that aren't was case sensitive:

     $pre =~ s/begin /begin_/;

    So, it worked on begin <number> only. Toss on a /i
    and the hang/infinite bloat goes away.

    ================
    --- Sanitizer.pm.orig Wed Dec 17 06:50:02 2003
    +++ Sanitizer.pm Tue Jan 6 12:25:10 2004
    @@ -2156,7 +2156,7 @@
                                    else
                                    {
                                        # Not really a uuencoded line, escape it.
    - $pre =~ s/begin /begin_/;
    + $pre =~ s/begin /begin_/i;
                                        $reader->UnRead($pre);
                                            
                                            $part->{"log"}->entry("uu_begin_bug", SLOG_WARNING|SLOG_INFO,
    ================

    -Paul

    -- 
    // Paul M. Hirsch          //
    // paul at voltagenoir.org //
    // PGPkeyID 0x15DD8FA5     //
    



    hosted by molar.is