mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
Reported and tested by: Timothy Nikkel.
This commit is contained in:
1 parent
ed5587afea
commit
d2e29d81a9
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
|
||||||
|
Reported and tested by: Timothy Nikkel.
|
||||||
|
|
||||||
2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
|
* grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
|
||||||
|
|||||||
+1
-1
@@ -555,7 +555,7 @@ grub_ext2_read_inode (struct grub_ext2_data *data,
|
|||||||
|
|
||||||
/* Read the inode. */
|
/* Read the inode. */
|
||||||
if (grub_disk_read (data->disk,
|
if (grub_disk_read (data->disk,
|
||||||
((grub_le_to_cpu32 (blkgrp.inode_table_id) + blkno)
|
(((grub_disk_addr_t) grub_le_to_cpu32 (blkgrp.inode_table_id) + blkno)
|
||||||
<< LOG2_EXT2_BLOCK_SIZE (data)),
|
<< LOG2_EXT2_BLOCK_SIZE (data)),
|
||||||
EXT2_INODE_SIZE (data) * blkoff,
|
EXT2_INODE_SIZE (data) * blkoff,
|
||||||
sizeof (struct grub_ext2_inode), inode))
|
sizeof (struct grub_ext2_inode), inode))
|
||||||
|
|||||||
Reference in new issue
Block a user