Return to elf.c CVS log | Up to [local] / src / usr.bin / nm |
version 1.30, 2015/06/23 15:02:58 | version 1.31, 2015/06/23 15:13:29 | ||
---|---|---|---|
|
|
||
return (NULL); | return (NULL); | ||
} | } | ||
if ((shdr = calloc(head->e_shentsize, head->e_shnum)) == NULL) { | if (head->e_shentsize < sizeof(Elf_Shdr)) { | ||
warnx("%s: inconsistent section header size", name); | |||
return (NULL); | |||
} | |||
if ((shdr = calloc(head->e_shnum, head->e_shentsize)) == NULL) { | |||
warn("%s: malloc shdr", name); | warn("%s: malloc shdr", name); | ||
return (NULL); | return (NULL); | ||
} | } |