Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/link_elf.c
| Context not available. | |||||
| * Try and load the symbol table if it's present. (you can | * Try and load the symbol table if it's present. (you can | ||||
| * strip it!) | * strip it!) | ||||
| */ | */ | ||||
| if (hdr->e_shnum != 0 && hdr->e_shentsize > SIZE_MAX / hdr->e_shnum) { | |||||
| return (ENOEXEC); | |||||
| } | |||||
| nbytes = hdr->e_shnum * hdr->e_shentsize; | nbytes = hdr->e_shnum * hdr->e_shentsize; | ||||
| if (nbytes == 0 || hdr->e_shoff == 0) | if (nbytes == 0 || hdr->e_shoff == 0) | ||||
| goto nosyms; | goto nosyms; | ||||
| Context not available. | |||||