04.11.2015 14:21, Vladimir 'phcoder' Serbinenko пишет:
Le 31 oct. 2015 8:02 AM, "Andrei Borzenkov" <arvidj...@gmail.com> a écrit :

mkimage sets module size to aligned value; later it is used to actually
process it which /may/ lead to inconsistency (as any comparison is against
stored aligned size, not actual module size).

Which inconsistency do you have in mind?

  if (size < e->e_shoff + e->e_shentsize * e->e_shnum)
    {
      grub_error (GRUB_ERR_BAD_OS, "ELF sections outside core");




_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to