diff options
author | Nick Clifton <nickc@redhat.com> | 2015-01-12 17:28:55 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-01-12 17:28:55 +0000 |
commit | 1306a7421c764d1f5e2a08afdb9b5818662c9e9c (patch) | |
tree | 5cb172294b01ccd1fbcbdccdc6755c79e3e142ee /binutils/ChangeLog | |
parent | 4ac15b59f2f506ff0ad59f148275cd7406b8d765 (diff) | |
download | gdb-1306a7421c764d1f5e2a08afdb9b5818662c9e9c.zip gdb-1306a7421c764d1f5e2a08afdb9b5818662c9e9c.tar.gz gdb-1306a7421c764d1f5e2a08afdb9b5818662c9e9c.tar.bz2 |
Another fix for memory access errors trigegred by running readelf on a corrupt binary.
PR binutils/17531
* dwarf.c (display_debug_addr): Use xcalloc to allocate the debug_addr_info
array. Check for an address_base that is too large.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 75c29c8..af7689b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -6,6 +6,9 @@ (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU arrays. (xcalloc2): New function. Like xcalloc, but checks for overflow. + (display_debug_addr): Use xcalloc to allocate the debug_addr_info + array. Check for an address_base that is too large. + * dwarf.h (xcalloc2): Prototype. 2015-01-12 Alan Modra <amodra@gmail.com> |