Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144456857
D38419.id116712.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38419.id116712.diff
View Options
diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c
--- a/contrib/elftoolchain/readelf/readelf.c
+++ b/contrib/elftoolchain/readelf/readelf.c
@@ -5840,7 +5840,8 @@
Dwarf_Addr base0;
Dwarf_Half attr;
Dwarf_Signed attr_count, cnt;
- Dwarf_Unsigned off, bytecnt;
+ Dwarf_Unsigned bytecnt;
+ Dwarf_Off off;
int i, j, ret;
if ((ret = dwarf_attrlist(die, &attr_list, &attr_count, &de)) !=
@@ -5857,11 +5858,12 @@
}
if (attr != DW_AT_ranges)
continue;
- if (dwarf_formudata(attr_list[i], &off, &de) != DW_DLV_OK) {
- warnx("dwarf_formudata failed: %s", dwarf_errmsg(de));
+ if (dwarf_global_formref(attr_list[i], &off, &de) != DW_DLV_OK) {
+ warnx("dwarf_global_formref failed: %s",
+ dwarf_errmsg(de));
continue;
}
- if (dwarf_get_ranges(re->dbg, (Dwarf_Off) off, &ranges, &cnt,
+ if (dwarf_get_ranges(re->dbg, off, &ranges, &cnt,
&bytecnt, &de) != DW_DLV_OK)
continue;
base0 = base;
@@ -5900,6 +5902,8 @@
warnx("dwarf_siblingof: %s", dwarf_errmsg(de));
else if (ret == DW_DLV_OK)
dump_dwarf_ranges_foreach(re, ret_die, base);
+
+ dwarf_dealloc(re->dbg, die, DW_DLA_DIE);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 1:15 PM (18 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28582693
Default Alt Text
D38419.id116712.diff (1 KB)
Attached To
Mode
D38419: readelf(1): fix -wR option, memory leaks, and -wf minor bug
Attached
Detach File
Event Timeline
Log In to Comment