diff options
author | Nick Clifton <nickc@redhat.com> | 2014-11-05 10:13:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-11-05 10:13:16 +0000 |
commit | 20ad5e2842911039a60b6bdf9880cee895179e43 (patch) | |
tree | 60c1883ca19d125970f9d60ad04cb32cced0ffcc /bfd/ChangeLog | |
parent | 1ae1b8cc656639e18715829cbcd72916e86f3324 (diff) | |
download | gdb-20ad5e2842911039a60b6bdf9880cee895179e43.zip gdb-20ad5e2842911039a60b6bdf9880cee895179e43.tar.gz gdb-20ad5e2842911039a60b6bdf9880cee895179e43.tar.bz2 |
More fixes for processing corrupt files.
PR binutils/17512
* coffcode.h (coff_set_alignment_hook): Warn if the file lies
about the number of relocations it contains.
(coff_sort_func_alent): Return 0 if the pointers are NULL.
(coff_slurp_line_table): Add more range checks. Do not free new
tables created when sorting line numbers.
* peXXigen.c (pe_print_idata): Add range checks.
(pe_print_edata): Likewise.
(rsrc_print_resource_entries): Likewise. Avoid printing control
characters. Terminate priniting if corruption is detected.
(rsrc_print_resource_directory): Terminate printing if an unknown
directory type is encountered.
(pe_print_debugdata): Fix off-by-one error.
(rsrc_count_entries): Add range checking.
(rsrc_parse_entry): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5c2445c..4b40860 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,21 @@ +2014-11-05 Nick Clifton <nickc@redhat.com> + + PR binutils/17512 + * coffcode.h (coff_set_alignment_hook): Warn if the file lies + about the number of relocations it contains. + (coff_sort_func_alent): Return 0 if the pointers are NULL. + (coff_slurp_line_table): Add more range checks. Do not free new + tables created when sorting line numbers. + * peXXigen.c (pe_print_idata): Add range checks. + (pe_print_edata): Likewise. + (rsrc_print_resource_entries): Likewise. Avoid printing control + characters. Terminate priniting if corruption is detected. + (rsrc_print_resource_directory): Terminate printing if an unknown + directory type is encountered. + (pe_print_debugdata): Fix off-by-one error. + (rsrc_count_entries): Add range checking. + (rsrc_parse_entry): Likewise. + 2014-11-04 Nick Clifton <nickc@redhat.com> PR binutils/17512 |