e_shentsize isn't checked, and e_shstrndx, sh_link and sh_name are used
unchecked. Do what link_elf_obj.c does.
MFC after: 1 week
Differential D61389
link_elf: validate the section headers in link_elf_load_file() Authored by ojanerif_amd.com on Tue, Nov 10, 1:04 PM.
Details e_shentsize isn't checked, and e_shstrndx, sh_link and sh_name are used MFC after: 1 week
Diff Detail
|