mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-16 06:56:38 +00:00
fs/reiserfs: Fix sector count overflow.
Found by: Coverity scan.
This commit is contained in:
parent
157f9a9cca
commit
8c1d086689
@ -1090,7 +1090,7 @@ grub_reiserfs_read_real (struct grub_fshelp_node *node,
|
|||||||
switch (found.type)
|
switch (found.type)
|
||||||
{
|
{
|
||||||
case GRUB_REISERFS_DIRECT:
|
case GRUB_REISERFS_DIRECT:
|
||||||
block = found.block_number * (block_size >> GRUB_DISK_SECTOR_BITS);
|
block = ((grub_disk_addr_t) found.block_number) * (block_size >> GRUB_DISK_SECTOR_BITS);
|
||||||
grub_dprintf ("reiserfs_blocktype", "D: %u\n", (unsigned) block);
|
grub_dprintf ("reiserfs_blocktype", "D: %u\n", (unsigned) block);
|
||||||
if (initial_position < current_position + item_size)
|
if (initial_position < current_position + item_size)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user