mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 16:59:08 +00:00
Fix 004e_00007ffd2a9dc86.. from gamozo
This commit is contained in:
parent
4f785d398f
commit
30deb7e3f2
@ -700,9 +700,14 @@ static Sdb *store_versioninfo_gnu_verneed(struct Elf_(r_bin_elf_obj_t) *bin, Elf
|
||||
goto beach;
|
||||
sdb_num_set (sdb_version, "vn_version", entry->vn_version, 0);
|
||||
sdb_num_set (sdb_version, "idx", i, 0);
|
||||
if (entry->vn_file > bin->dynstr_size)
|
||||
if (entry->vn_file > bin->dynstr_size) {
|
||||
goto beach;
|
||||
sdb_set (sdb_version, "file_name", &bin->dynstr[entry->vn_file], 0);
|
||||
}
|
||||
{
|
||||
char *s = r_str_ndup (&bin->dynstr[entry->vn_file], 16);
|
||||
sdb_set (sdb_version, "file_name", s, 0);
|
||||
free (s);
|
||||
}
|
||||
sdb_num_set (sdb_version, "cnt", entry->vn_cnt, 0);
|
||||
vstart += entry->vn_aux;
|
||||
for (j = 0, isum = i + entry->vn_aux; j < entry->vn_cnt && vstart < end; ++j) {
|
||||
|
Loading…
Reference in New Issue
Block a user