fs/reiserfs: Fix sector count overflow.
Found by: Coverity scan.
This commit is contained in:
parent
157f9a9cca
commit
8c1d086689
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue