wrong action on non-detecting the magic.
+2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
+ wrong action on non-detecting the magic.
+
2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
return grub_errno;
if (grub_memcmp (apart.magic, GRUB_AMIGA_PART_MAGIC,
- sizeof (apart.magic)) == 0)
-
+ sizeof (apart.magic)) != 0)
+ return grub_error (GRUB_ERR_BAD_PART_TABLE,
+ "invalid Amiga partition map");
/* Calculate the first block and the size of the partition. */
part.start = (grub_be_to_cpu32 (apart.lowcyl)
* grub_be_to_cpu32 (apart.heads)