Skip to content

Commit

Permalink
multiboot2: search for header within 32 kiB
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Feb 20, 2018
1 parent 3ef2c03 commit 77c608f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ mb_scan(void *kernel, size_t kernsz)
}
else if (mb->magic == MULTIBOOT2_MAGIC) {
mb->info.mb2.header = (struct multiboot2_header*) magic;
if ((void*) magic >= kernel + 8192
if ((void*) magic >= kernel + 32768
- mb->info.mb2.header->header_length)
{
ERROR(EINVAL,
Expand Down

0 comments on commit 77c608f

Please sign in to comment.