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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue