mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-26 19:44:28 +00:00
Check zero address size.
2011-09-18 H.J. Lu <hongjiu.lu@intel.com> PR binutils/13196 * dwarf.c (display_debug_aranges): Check zero address size.
This commit is contained in:
parent
aa06ae28f1
commit
b3681d67e4
@ -1,3 +1,8 @@
|
||||
2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR binutils/13196
|
||||
* dwarf.c (display_debug_aranges): Check zero address size.
|
||||
|
||||
2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR binutils/13180
|
||||
|
@ -4215,6 +4215,13 @@ display_debug_aranges (struct dwarf_section *section,
|
||||
|
||||
address_size = arange.ar_pointer_size + arange.ar_segment_size;
|
||||
|
||||
if (address_size == 0)
|
||||
{
|
||||
error (_("Invalid address size in %s section!\n"),
|
||||
section->name);
|
||||
break;
|
||||
}
|
||||
|
||||
/* The DWARF spec does not require that the address size be a power
|
||||
of two, but we do. This will have to change if we ever encounter
|
||||
an uneven architecture. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user