You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2012/06/30 11:06:42 UTC

[jira] [Updated] (COMPRESS-191) Too relaxed tar detection in ArchiveStreamFactory

     [ https://issues.apache.org/jira/browse/COMPRESS-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated COMPRESS-191:
-----------------------------------

    Attachment: 0001-COMPRESS-191-Too-relaxed-tar-detection-in-ArchiveStr.patch

The attached patch adds heuristics for verifying the tar header checksum, and uses that mechanism to better avoid false positives in ArchiveStreamFactory.
                
> Too relaxed tar detection in ArchiveStreamFactory
> -------------------------------------------------
>
>                 Key: COMPRESS-191
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-191
>             Project: Commons Compress
>          Issue Type: Improvement
>          Components: Archivers
>    Affects Versions: 1.2, 1.3, 1.4, 1.4.1
>            Reporter: Jukka Zitting
>            Priority: Minor
>              Labels: tar
>         Attachments: 0001-COMPRESS-191-Too-relaxed-tar-detection-in-ArchiveStr.patch
>
>
> The relaxed tar detection logic added in COMPRESS-177 unfortunately matches
> also some non-tar files like a [test AIFF file|https://svn.apache.org/repos/asf/tika/trunk/tika-parsers/src/test/resources/test-documents/testAIFF.aif] that Apache Tika uses. It would be good to improve the detection heuristics to still match files like the one in COMPRESS-177 but avoid false positives like the AIFF file in Tika.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira