On 11.11.2011 15:02, Paulo de Rezende Pinatti wrote: > + if (dev->disk->partition == NULL) > + { > + grub_util_info ("no partition map found for %s", dev->disk->name); > + } > + > + if (strcmp(dev->disk->partition->partmap->name, "msdos") == 0) This is wrong, you check for the pointer being non-NULL, issue a warning and then happily dereference it regardless.
-- Regards Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel