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

Commit b3c9db48 authored by Newton Lam's avatar Newton Lam Committed by Gerrit Code Review
Browse files

Merge "Use uint64_t instead of size_t when calculating extent size to avoid overflow" into main

parents 5424402b 44884d5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ std::vector<SuperImageExtent> SuperLayoutBuilder::GetImageLayout() {
                return {};
            }

            size_t size = e.num_sectors * LP_SECTOR_SIZE;
            uint64_t size = e.num_sectors * LP_SECTOR_SIZE;
            uint64_t super_offset = e.target_data * LP_SECTOR_SIZE;
            extents.emplace_back(super_offset, size, image_name, image_offset);