summaryrefslogtreecommitdiffstats
path: root/contrib/elftoolchain/libdwarf
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-06-23 06:42:30 +0000
committerdim <dim@FreeBSD.org>2015-06-23 06:42:30 +0000
commit201187b2b00e763733a1a207fddcf34328229dd8 (patch)
treef2a63fd8fceb13f85c6a462842de00cbf7ae4166 /contrib/elftoolchain/libdwarf
parent1420f5dc45b5050a921603332133dce964cdd3a5 (diff)
downloadFreeBSD-src-201187b2b00e763733a1a207fddcf34328229dd8.zip
FreeBSD-src-201187b2b00e763733a1a207fddcf34328229dd8.tar.gz
Fix endless recursion in dwarf_get_section_max_offsets(), found by clang
3.7.0. Reviewed by: emaste
Diffstat (limited to 'contrib/elftoolchain/libdwarf')
-rw-r--r--contrib/elftoolchain/libdwarf/dwarf_sections.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/elftoolchain/libdwarf/dwarf_sections.c b/contrib/elftoolchain/libdwarf/dwarf_sections.c
index d3c1379..172573b 100644
--- a/contrib/elftoolchain/libdwarf/dwarf_sections.c
+++ b/contrib/elftoolchain/libdwarf/dwarf_sections.c
@@ -104,8 +104,8 @@ dwarf_get_section_max_offsets(Dwarf_Debug dbg, Dwarf_Unsigned *debug_info,
Dwarf_Unsigned *debug_ranges, Dwarf_Unsigned *debug_pubtypes)
{
- return (dwarf_get_section_max_offsets(dbg, debug_info, debug_abbrev,
+ return (dwarf_get_section_max_offsets_b(dbg, debug_info, debug_abbrev,
debug_line, debug_loc, debug_aranges, debug_macinfo,
debug_pubnames, debug_str, debug_frame, debug_ranges,
- debug_pubtypes));
+ debug_pubtypes, NULL));
}
OpenPOWER on IntegriCloud