mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: avoid expression overflow
Use 64bit math to multiply extent_size.
This commit is contained in:
parent
78d14a805c
commit
426c3c7b88
@ -63,7 +63,7 @@ static uint64_t _lv_size_bytes_to_integrity_meta_bytes(uint64_t lv_size_bytes, u
|
||||
/* for calculating the metadata LV size for the specified
|
||||
journal size, round the specified journal size up to the
|
||||
nearest extent. extent_size is in sectors. */
|
||||
initial_bytes = dm_round_up(journal_sectors, extent_size) * 512;
|
||||
initial_bytes = dm_round_up(journal_sectors, (int64_t)extent_size) * 512;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user