Closed Bug 329245 Opened 18 years ago Closed 8 years ago

gzip with 0 byte extra field can't uncompress

Categories

(Core :: Networking, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 234031

People

(Reporter: dbt, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

If the gzip FEXTRA field is set, the XLEN is 4, and the internal LEN is 0, firefox fails to decode the contents of the gzipped file.

If the same file has FEXTRA set, XLEN of 5, internal LEN of 1, firefox works fine.

Reproducible: Always

Steps to Reproduce:
1. go to http://meat.net/gzip/
2. click on test0.xml.gz

Actual Results:  
XML Parsing Error: no element found

Expected Results:  

        This XML file does not appear to have any style information associated with it. The document tree is shown below.

Both of these are valid files.  I haven't tried invalid combinations where, say XLEN > 4 but LEN = 0 or anything like that.
Component: General → Networking
Product: Firefox → Core
QA Contact: general → networking
Version: unspecified → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.