mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix multiplication converted to larger type
This fixes the instances of the "Multiplication result converted to larger type" alert that codeQL scanning found. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Andrew Innes <andrew.c12@gmail.com> Closes #14094
This commit is contained in:
@@ -1362,7 +1362,7 @@ efi_write(int fd, struct dk_gpt *vtoc)
|
||||
if (NBLOCKS(vtoc->efi_nparts, vtoc->efi_lbasize) < 34) {
|
||||
dk_ioc.dki_length = EFI_MIN_ARRAY_SIZE + vtoc->efi_lbasize;
|
||||
} else {
|
||||
dk_ioc.dki_length = NBLOCKS(vtoc->efi_nparts,
|
||||
dk_ioc.dki_length = (len_t)NBLOCKS(vtoc->efi_nparts,
|
||||
vtoc->efi_lbasize) *
|
||||
vtoc->efi_lbasize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user