Le 4 nov. 2015 12:26 PM, "Andrei Borzenkov" <arvidj...@gmail.com> a écrit : > > 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"); > This is just to avoid accessing unallocated data. In this case the memory is allocated. So it's a minor issue. I'm more concerned with some module iterator breaking > > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel