Merge pull request #3273 from kapodamy/int-overflow-fix

fix #2790
This commit is contained in:
Tobias Groza 2020-03-25 21:12:36 +01:00 committed by GitHub
commit 452f258b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class DownloadRunnable extends Thread {
Log.d(TAG, mId + ":acquired block at position=" + block.position + " done=" + block.done);
}
long start = block.position * DownloadMission.BLOCK_SIZE;
long start = (long)block.position * DownloadMission.BLOCK_SIZE;
long end = start + DownloadMission.BLOCK_SIZE - 1;
start += block.done;