https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8513

            Bug ID: 8513
           Summary: Archive handler misses rar members with a duplicate
                    name, or with a space in the name on Windows
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

Created attachment 6215
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=6215&action=edit
Handle duplicate rar member names, and case and spaces on Windows

The Archive handler has the following defects with rar archives:

* When two members have the same file name, using RARLAB's unrar, the handler
only sees the first member, but the second member still uses one of the
archive_max_files slots. Using unrar-free, the handler sees both members, but
the repeated name still uses a slot.

* On Windows, file names that contain spaces and files with names that differ
only in case are not handled properly.

The attached patch fixes the defects with the following limitation: Using
RARLAB's unrar, members with duplicate file names are concatenated for
scanning, as they already are with unrar-free. The patch includes a new test
case. The patch applies after attachment 6214 on bug 8512.

The Windows space fix is in a utility function which is also used by
ExtractText, DCC, and the PDF and Image handlers. This patch fixes previously
undiscovered problems those have when a temporary file path or dcc_home
contains a space, for example when TEMP is set to a directory with a space in
its name.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to