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

Commit 64a98072 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am 6d2def71: am c28fde57: am 0b515aec: am 3cfca67b: Merge "Fix possible...

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

# By Henrik Engström
# Via Android Git Automerger (3) and others
* commit '6d2def71':
  Fix possible integer overflow in MtpStorage
parents bc0ed2ce 6d2def71
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();
    }