Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d2def71 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am c28fde57: am 0b515aec: am 3cfca67b: Merge "Fix possible integer overflow in MtpStorage"

# By Henrik Engström
# Via Android Git Automerger (2) and others
* commit 'c28fde57':
  Fix possible integer overflow in MtpStorage
parents a6a5c8f6 c28fde57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
    }