Commons Compress
  1. Commons Compress
  2. COMPRESS-253

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.1, 1.6, 1.7
    • Fix Version/s: 1.8
    • Component/s: Compressors
    • Labels:

      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Indra Talip
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development