Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-781

CompressionFilter generate invalid compressed data

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Invalid
    • Affects Version/s: 1.1.7, 2.0.0-M1, 2.0.0-M2, 2.0.0-M3, 2.0.0-M4, 2.0.0-M5, 2.0.0-M6, 2.0.0-RC1
    • Fix Version/s: None
    • Component/s: Filter
    • Labels:
      None

      Description

      Zlib.deflate() method is using

      IoBuffer.wrap(outBytes, 0, zStream.next_out_index);

      rather than

      IoBuffer.wrap(outBytes, 0, zStream.avail_out);

      That introduce invalid data in the wrapped buffer: (looks like next_out_index = avail_out + 1)
      Replacing zStream.next_out_index by avail_out fix the issue.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ylecaillez Yannick Lecaillez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified