Closed Bug 276927 Opened 20 years ago Closed 20 years ago

wrong handling of content-length > 2^32

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 274765

People

(Reporter: julian.reschke, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Content-Length response headers with values larger than 2^32 aren't handled
properly. For instance, for the URL above, the server reports

Content-Length: 4370640896 

but Firefox tries to download 75673600 bytes (which is the actual content length
minus 2^32).

Probably an 32-bit integer overflow.






Reproducible: Always

Steps to Reproduce:
1. Download from
<http://ftp.heanet.ie/pub/fedora/linux/core/2/i386/iso/FC2-i386-DVD.iso>


Actual Results:  
Download starts and claims that 73.9MB will be downloaded.

Expected Results:  
Should display the actual length.
Summary: wrong handling of content-length < 2^32 → wrong handling of content-length > 2^32

*** This bug has been marked as a duplicate of 274765 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.