Use uint64_t instead of size_t when calculating extent size to avoid overflow
Change-Id: I22a77162d08fd7e82ffaa3e0c6c8adb6e956f7d1
This commit is contained in:
parent
7e0ba3af9a
commit
44884d5c31
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue