# By Henrik Engström # Via Android Git Automerger (1) and others * commit '0b515aece642283a25c6a4416f0aecdaf17bdb58': Fix possible integer overflow in MtpStorage
This commit is contained in:
@ -39,7 +39,7 @@ public class MtpStorage {
|
||||
mStorageId = volume.getStorageId();
|
||||
mPath = volume.getPath();
|
||||
mDescription = context.getResources().getString(volume.getDescriptionId());
|
||||
mReserveSpace = volume.getMtpReserveSpace() * 1024 * 1024;
|
||||
mReserveSpace = volume.getMtpReserveSpace() * 1024L * 1024L;
|
||||
mRemovable = volume.isRemovable();
|
||||
mMaxFileSize = volume.getMaxFileSize();
|
||||
}
|
||||
|
Reference in New Issue
Block a user