Search Issue Tracker

Fixed in Unity 2019.1

Votes

0

Found in

2018.2.10f1

Issue ID

1092447

Regression

No

Scripting: DownloadHandler.ReceiveContentLength 2GB integer overflow

WebRequest

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 3Secondary functionality broken

To reproduce:
1. Open attached project "DownloadHandlerOverflow_Unity2018.2.16f1.zip"
2. Open "DownloadHandler.ReceiveContentLength Integer Overflow Demo.unity" scene
3. Enter Play mode
4. Observe the console

Expected result: contentLength is a positive value
Actual result: Getting "ReceiveContentLength() contentLength is: -1084967296 (should be 3210000000)" in the console

Reproduced on:
2017.4.2f1 2017.4.16f1, 2018.2.16f1, 2018.3.0b10, 2019.1.0a10

Notes:
Reproduced on win 10 machine.
Getting nothing in the console on MacOS 10.14

Response avatar

Resolution Note:

Fixed in 2019.1.0a13. Since this is a new feature, not planning to backport it.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.