diff options
author | Nick Clifton <nickc@redhat.com> | 2015-01-06 16:06:45 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-01-06 16:06:45 +0000 |
commit | 85880250e591a51624d24db653aaace0c5ce5943 (patch) | |
tree | 0319d173921cd8ec36f007e0270dc883a30e8336 /bfd/ChangeLog | |
parent | fce10a8494efa8faec67b718f25e06d3d71694b3 (diff) | |
download | gdb-85880250e591a51624d24db653aaace0c5ce5943.zip gdb-85880250e591a51624d24db653aaace0c5ce5943.tar.gz gdb-85880250e591a51624d24db653aaace0c5ce5943.tar.bz2 |
Fixes for memory access violations in the coffdump program.
PR binutils/17512
* coffdump.c (dump_coff_section): Check for a symbol being
available before printing its name.
(main): Check the return value from coff_grok.
* coffgrok.c: Reformat and tidy.
Add range checks to most functions.
(coff_grok): Return NULL if the input bfd is not in a COFF
format.
* coffgrok.h: Reformat and tidy.
(struct coff_section): Change the nrelocs field to unsigned.
* srconv.c (main): Check the return value from coff_grok.
* coff-i860.c (CALC_ADDEND): Always set an addend value.
* tekhex.c (getvalue): Add an end pointer parameter. Use it to
avoid reading off the end of the buffer.
(getsym): Likewise.
(first_phase): Likewise.
(pass_over): Pass an end pointer to the invoked function.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5215aa7..efcb63a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2015-01-06 Nick Clifton <nickc@redhat.com> + + PR binutils/17512 + * coff-i860.c (CALC_ADDEND): Always set an addend value. + * tekhex.c (getvalue): Add an end pointer parameter. Use it to + avoid reading off the end of the buffer. + (getsym): Likewise. + (first_phase): Likewise. + (pass_over): Pass an end pointer to the invoked function. + 2015-01-05 H.J. Lu <hongjiu.lu@intel.com> PR binutils/17512 |