Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-253

BZip2CompressorInputStream reads fewer bytes from truncated file than CPython's bz2 implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.1, 1.6, 1.7
    • 1.8
    • Compressors

    Description

      Jython includes support for decompressing bz2 files using commons compress and shares regression tests with CPython. The CPython test test_read_truncated in test_bz2.py passes under CPython but fails under Jython.

      The BZip2CompressorInputStream is able to read 769 bytes from the truncated data rather than the 770 bytes that the CPython bz2 implementation can read.

      Attachments

        1. compress-253.patch
          12 kB
          Stefan Bodewig
        2. PythonTruncatedBzip2Test.java
          4 kB
          Indra Talip

        Activity

          People

            Unassigned Unassigned
            indra Indra Talip
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: