Merge "Use uint64_t instead of size_t when calculating extent size to avoid overflow" into main
This commit is contained in:
commit
b3c9db481f
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