Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6210

[classlib][archive] Inflater.setInput crashes when input is read 1 byte at a time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0M9
    • 5.0M11
    • Classlib
    • None
    • SVN Revision: 777222
    • Patch Available
    • Moderate

    Description

      Inflater.setInput() breaks when it doesn't have a big enough buffer to read the magic number into. Originally reported downstream in Android:
      http://code.google.com/p/android/issues/detail?id=2729

      Harmony test case attached. I'll submit a fix in a follow-up patch.

      Attachments

        1. HARMONY-6210_fix.patch
          1 kB
          Jesse Wilson
        2. Android_2729_ZipInputStream.patch
          1 kB
          Jesse Wilson

        Activity

          People

            tellison Tim Ellison
            jessewilson Jesse Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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