Hi,

grub crashed when i try to made an ls -l and if one of my disk contain an AppleRaid partition.
ls crash when it try to scan the partition.

vladimir said me that there are bugs in hfsplus.c, that doesn"t handle errors correctly.

He made me a quick fix:

diff --git a/fs/hfsplus.c b/fs/hfsplus.c
index eae28d7..c4844fa 100644
--- a/fs/hfsplus.c
+++ b/fs/hfsplus.c
@@ -508,7 +508,7 @@ grub_hfsplus_btree_search (struct grub_hfsplus_btree *btree,
                                    btree->nodesize, (char *) node))
        {
          grub_free (node);
-         return grub_errno;
+         return grub_error (GRUB_ERR_BAD_FS, "file not found");
        }

but it told me that a lot of other places have the same bug.

Yves Blusseau


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to