Closed
Bug 310658
Opened 19 years ago
Closed 19 years ago
When downloading files larger than 2G, the byte count wraps around to negative numbers.
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 228968
People
(Reporter: sethg, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 It acts exactly as if the byte count were stored in a 32-bit signed integer. After you pass the 2G mark, the number goes negative and gradually approaches zero. While this is going on, the data transfer rate is also messed up, which you would expect with a negative byte count. Since DVD ISO images can be as large as 4.7Gbytes, changing to a 32-bit unsigned integer would not fix this. I recommend changing the byte count to a 64-bit integer, signed or unsigned as you need. Reproducible: Always Steps to Reproduce: 1. Download any file larger than 2Gbytes. 2. Watch what happens when you pass the 2Gbyte boundary in the download. 3. Actual Results: See details above. Expected Results: Continue to have positive increasing byte count for large files.
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 228968 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•18 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•