[Mono-bugs] [Bug 549492] New: Gzip files with extra junk hang ReadZStream

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 23 04:51:13 EDT 2009


           Summary: Gzip files with extra junk hang ReadZStream
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: doc.formatique at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
Gecko/20091020 Ubuntu/9.10 (karmic) Firefox/3.5.3

mono/support/zlib-helper.c:ReadZStream loops while data is available and
deflate() returns Z_OK or Z_STREAM_END. Thus it never returns if the stream
contains extra data.

(I saw this with cat'ened .gz files: zcat displays them all, .Net and
CSharpZipLib stop at the first one)

Reproducible: Always

Steps to Reproduce:
1. Write into a DeflateStream
2. Append some data after it
3. Decompress
Actual Results:  

Expected Results:  
Decompress data, ignore junk

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list