Closed Bug 300652 Opened 19 years ago Closed 19 years ago

large download causes negative numbers in download manager

Categories

(Toolkit :: Downloads API, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 228968

People

(Reporter: andrew_oakley2002, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

When you download a file greater than 2^31 bytes in size, after 2^31 bytes have
been downloaded, the current amount that has been downloaded and the transfer
speed becomes negative.  Presumably this is because of an overflow (a 32 bit
signed integer storing the current amount downloaded) and then transfer speed is
based on rate of change and so that becomes negative.  
I would assume that the best way of fixing this would be to change the size of
the integer storing this value to a 64bit (unsigned) integer so that much larger
file sizes will work correctly.  

Reproducible: Always

Steps to Reproduce:
1. Put a large file (>2.5GB) on a web server (LAN server would be best)
2. Begin downloading the file
3. Wait until 2GB has downloaded, and look at the download manager

*** This bug has been marked as a duplicate of 228968 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 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.