Please sign in to comment.
Check the Content-Length before reading the request's content
Some browsers, like Firefox, do not support files that are larger than 2GB. Uploading a >2GB file causes an integer overflow and the Content-Length header is set to a negative value. To prevent any crash in this case, we check the Content-Length value before reading the request's content. When the value is negative, an error 400 is returned. A bug about this problem is openned for Firefox: - https://bugzilla.mozilla.org/show_bug.cgi?id=215450
- Loading branch information...