From: Michael Snyder Date: Thu, 3 Mar 2011 23:49:21 +0000 (+0000) Subject: 2011-03-03 Michael Snyder X-Git-Tag: gdb_7_3-branchpoint~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d543c50d66d2d8955b577a013914d29bf470ffd2;p=thirdparty%2Fbinutils-gdb.git 2011-03-03 Michael Snyder * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d6e022eac74..918927ac808 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,7 @@ 2011-03-03 Michael Snyder + * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error. + * aoutx.h (aout_final_link): Use sizeof int not sizeof int*. (aout_link_write_other_symbol): Missing break statement. diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c index 8083d978dd9..c739d69c730 100644 --- a/bfd/coff-x86_64.c +++ b/bfd/coff-x86_64.c @@ -546,7 +546,7 @@ coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED, { reloc_howto_type *howto; - if (rel->r_type > ARRAY_SIZE (howto_table)) + if (rel->r_type >= ARRAY_SIZE (howto_table)) { bfd_set_error (bfd_error_bad_value); return NULL;