mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
From Igor V. Kovalenko:
This openbios-grubfs-ext2fs-block.patch fixes a problem where inode pointer is truncated to 32bit integer and then sign-extended to 64bit integer while passing second pointer argument to ext2_rdfsb. git-svn-id: svn://coreboot.org/openbios/openbios-devel@230 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -587,7 +587,7 @@ ext2fs_dir (char *dirname)
|
||||
log2 (EXT2_BLOCK_SIZE (SUPERBLOCK) / sizeof (struct ext2_inode)));
|
||||
printf ("ext2fs_dir: inode table fsblock=%d\n", ino_blk);
|
||||
#endif /* E2DEBUG */
|
||||
if (!ext2_rdfsb (ino_blk, (int) INODE))
|
||||
if (!ext2_rdfsb (ino_blk, INODE))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user