This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix address violation when attempting to read a corrupt field in a COFF archive header structure.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 19 Jul 2017 07:50:47 -0400
- Subject: [binutils-gdb] Fix address violation when attempting to read a corrupt field in a COFF archive header structure.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 29866fa186ee3ebda5242221607dba360b2e541e ***
Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: 29866fa186ee3ebda5242221607dba360b2e541e
Fix address violation when attempting to read a corrupt field in a COFF archive header structure.
PR 21786
* coff-rs6000.c (_bfd_strntol): New function.
(_bfd_strntoll): New function.
(GET_VALUE_IN_FIELD): New macro.
(EQ_VALUE_IN_FIELD): new macro.
(_bfd_xcoff_slurp_armap): Use new macros.
(_bfd_xcoff_archive_p): Likewise.
(_bfd_xcoff_read_ar_hdr): Likewise.
(_bfd_xcoff_openr_next_archived_file): Likewise.
(_bfd_xcoff_stat_arch_elt): Likewise.