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:
Vladimir Serbinenko 2015-01-24 21:12:02 +01:00
parent 09e84f188b
commit e3b3e53f72

View file

@ -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 =