grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug report: crash of grub in case of AppleRaid partitions


From: Yves Blusseau
Subject: Bug report: crash of grub in case of AppleRaid partitions
Date: Sat, 8 Aug 2009 13:31:17 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]