When uploading big files (>2.1GB) a wrong Content-Length is sent.

RESOLVED DUPLICATE of bug 215450

Status

()

RESOLVED DUPLICATE of bug 215450
6 years ago
6 years ago

People

(Reporter: johann.werner, Unassigned)

Tracking

13 Branch
x86_64
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Uploading a file exactly 2147483648 bytes big (== 2^31 - 1) resulted in a "Content-Length: -2147483025"
Uploading a slightly smaller file of 2096103424 bytes resulted in a "Content-Length: 2096104034"

The Content-Length sent should have been the size of the file + the size of the header. As it can be seen in the first upload that length is bigger than Integer.MAX_VALUE and thus an integer overflow occurs. Apparently Firefox uses an int where a long would be advisable.

Comment 1

6 years ago
How and where do you upload what kind of file? This would welcome a specific testcase...
we don't support over 2gb yet.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 215450
You need to log in before you can comment on or make changes to this bug.