* util/mkisofs/write.c (padblock_write): Abort when given an
excedingly large embed image, instead of silently truncating it.
+2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
+
+ * util/mkisofs/write.c (padblock_write): Abort when given an
+ excedingly large embed image, instead of silently truncating it.
+
2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
* include/multiboot.h: Indentation fixes.
FILE *fp = fopen (boot_image_embed, "rb");
if (! fp)
error (1, errno, _("Unable to open %s"), boot_image_embed);
+
fread (buffer, 2048 * PADBLOCK_SIZE, 1, fp);
+ if (fgetc (fp) != EOF)
+ error (1, 0, _("%s is too big for embed area"), boot_image_embed);
}
if (use_protective_msdos_label)