Author: stepan Date: 2008-08-24 14:54:03 +0200 (Sun, 24 Aug 2008) New Revision: 230
Modified: openbios-devel/fs/grubfs/fsys_ext2fs.c Log:
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.
Modified: openbios-devel/fs/grubfs/fsys_ext2fs.c =================================================================== --- openbios-devel/fs/grubfs/fsys_ext2fs.c 2008-08-10 18:12:17 UTC (rev 229) +++ openbios-devel/fs/grubfs/fsys_ext2fs.c 2008-08-24 12:54:03 UTC (rev 230) @@ -587,7 +587,7 @@ 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; }