[syslinux] com32/mboot/map.c question

Klaus T. nightos at gmail.com
Mon Oct 12 15:19:04 PDT 2009


Hello,

I get the following message while loading my multiboot kernel with
mboot.c32:
"Invalid Multiboot image: neither ELF header nor a.out kludge found".
I checked the code and came across this (com32/mboot/map.c line 130) :
 if (i + mbh_len < len)
     mbh_len = 0; /* Invalid... */
 else
     break;  /* Found something... */
    }
Shouldn't it be "if (i + mbh_len >= len)" ?
With this change my kernel is being loaded properly.

Best regards,
KlausT



More information about the Syslinux mailing list