Closed Bug 764762 Opened 12 years ago Closed 12 years ago

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

Categories

(Firefox :: Untriaged, defect)

13 Branch
x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 215450

People

(Reporter: johann.werner, Unassigned)

Details

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.
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
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.