You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling ChunkUpload with files over 2GB, the line 499 from
dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs overflows due to the following code:
UploadSessionCursor cursor = new UploadSessionCursor(sessionId, (ulong)(chunkSize * idx));
since both chunkSize and idx are ints. This line overflows the int and leads the UploadSessionAppendV2Async call to return invalid_offset. To fix this, chunkSize should be a uint, and idx should be explicitly sized as a ulong.
The text was updated successfully, but these errors were encountered:
When calling ChunkUpload with files over 2GB, the line 499 from
dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs overflows due to the following code:
UploadSessionCursor cursor = new UploadSessionCursor(sessionId, (ulong)(chunkSize * idx));
since both chunkSize and idx are ints. This line overflows the int and leads the UploadSessionAppendV2Async call to return invalid_offset. To fix this, chunkSize should be a uint, and idx should be explicitly sized as a ulong.
The text was updated successfully, but these errors were encountered: