Project

General

Profile

Actions

Bug #1161

closed

crashed when uploading 2G+ file from firefox 10.0

Added by Koen Deforche about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Pieter Libin
Target version:
Start date:
02/08/2012
Due date:
% Done:

0%

Estimated time:

Actions #1

Updated by Pieter Libin about 12 years ago

When uploading a big file (2,285,199,368 bytes) using WFileUpload widget, IE & Chrome seems working fine, however when using firefox 10.0, WT crashed due to firefox sending malformed header(Content-Length: --2009767703).

It appears that firefox mishandles signed/unsigned int32, wt should protect itself from crashing.

This problem happens on WT 3.2.0 (git commit 4e198c7dc5)

Actions #2

Updated by Pieter Libin about 12 years ago

Reproducable with the widgetgallery example:

problem is at WebRequest.C::contentLength()

to create a 2G file:

dd if=/dev/zero of=output.dat bs=1G count=2

Actions #3

Updated by Pieter Libin about 12 years ago

We should content lenght to be > 0, if not return 0 + log an error.

Actions #4

Updated by Pieter Libin about 12 years ago

  • Status changed from InProgress to Resolved
Actions #5

Updated by Koen Deforche about 12 years ago

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: Atom PDF