Fixes hang on virtualbox.
+2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
+
2014-07-08 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/10_hurd.in: Make kernel list progression not fail on
2014-07-08 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/10_hurd.in: Make kernel list progression not fail on
grub_off_t header_off;
struct cbfs_header head;
grub_off_t header_off;
struct cbfs_header head;
+ if (grub_disk_get_size (disk) == GRUB_DISK_SIZE_UNKNOWN)
+ goto fail;
+
if (grub_disk_read (disk, grub_disk_get_size (disk) - 1,
GRUB_DISK_SECTOR_SIZE - sizeof (ptr),
sizeof (ptr), &ptr))
if (grub_disk_read (disk, grub_disk_get_size (disk) - 1,
GRUB_DISK_SECTOR_SIZE - sizeof (ptr),
sizeof (ptr), &ptr))