mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 04:39:15 +00:00
commands/macbless: Fix potential overflow.
Is a minor concern as no such FS would be created under normal circumstances and failure was benign. Found by: Coverity scan.
This commit is contained in:
parent
09e84f188b
commit
e3b3e53f72
@ -106,7 +106,7 @@ grub_mac_bless_inode (grub_device_t dev, grub_uint32_t inode, int is_dir,
|
||||
ablk_size = grub_be_to_cpu32 (volheader.hfs.blksz);
|
||||
ablk_start = grub_be_to_cpu16 (volheader.hfs.first_block);
|
||||
embedded_offset = (ablk_start
|
||||
+ extent_start
|
||||
+ ((grub_uint64_t) extent_start)
|
||||
* (ablk_size >> GRUB_DISK_SECTOR_BITS));
|
||||
|
||||
err =
|
||||
|
Loading…
Reference in New Issue
Block a user