mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 23:35:58 +03:00
[GH-ISSUE #857] FileChunk Int32 overflow #582
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @devcore256 on GitHub (Jul 27, 2020).
Original GitHub issue: https://github.com/quasar/Quasar/issues/857
Description
File downloading is not work correctly for files larger than Int32.MaxValue (2147483647 bytes). You will get error message from client "Error reading file" when you try
_fileStream.Seek(offset, SeekOrigin.Begin);in method ReadChunk(long offset).Bug in class Quasar.Common.IO.FileSplit
When pass arg to ReadChunk method currentChunk * MaxChunkSize is casting to Int32. We must declare currentChunk as long.
Expected behavior
@MaxXor commented on GitHub (Aug 8, 2020):
Nice catch and very detailed error report. Thanks a lot!