On 10/12/2009 03:19 PM, Klaus T. wrote:> 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.
>
It should actually be > not even >=.
Thank you for the bug report, unfortunately it missed the 3.83 release :(
-hpa