mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-10 15:33:04 +00:00
Fix ELF crash in clusterfuzz-testcase-minimized-ia_fuzz-6065450650697728.dms
This commit is contained in:
parent
6742bbd2c1
commit
3a7a7ba789
@ -751,15 +751,14 @@ static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz)
|
||||
const char *section_name = "";
|
||||
const char *link_section_name = "";
|
||||
char *end = NULL;
|
||||
Elf_(Shdr) *link_shdr = NULL;
|
||||
ut8 dfs[sizeof (Elf_(Verdef))] = {0};
|
||||
Sdb *sdb;
|
||||
ut32 cnt;
|
||||
size_t i;
|
||||
if (shdr->sh_link > bin->ehdr.e_shnum) {
|
||||
if (shdr->sh_link >= bin->ehdr.e_shnum) {
|
||||
return false;
|
||||
}
|
||||
link_shdr = &bin->shdr[shdr->sh_link];
|
||||
Elf_(Shdr) *link_shdr = &bin->shdr[shdr->sh_link];
|
||||
#ifdef R_BIN_ELF64
|
||||
if ((int)shdr->sh_size < 1 || shdr->sh_size > SIZE_MAX) {
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user