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

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;