* grub-core/lib/relocator.c (malloc_in_range): Take into account that

allocate_regbeg may need to create new chunk header.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-11-15 09:50:58 +01:00
parent 22e7dbb2bb
commit f6bbabc373
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/relocator.c (malloc_in_range): Take into account that
allocate_regbeg may need to create new chunk header.
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
Fix quoting in legacy parser.

View File

@ -597,7 +597,8 @@ malloc_in_range (struct grub_relocator *rel,
events[N].hancestor = pa;
N++;
events[N].type = REG_BEG_END;
events[N].pos = grub_vtop (p + p->size) - sizeof (*r);
events[N].pos = grub_vtop (p + p->size) - sizeof (*r)
- sizeof (struct grub_mm_header);
N++;
}
else