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

Commit 0b515aec authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

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

# By Henrik Engström
# Via Gerrit Code Review (1) and Henrik Baard (1)
* commit '3cfca67b':
  Fix possible integer overflow in MtpStorage
parents a56711a0 3cfca67b
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();
    }