No subject


Wed Aug 6 16:08:47 CEST 2008


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;
 	}




More information about the OpenBIOS mailing list