This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Don't call bfd_get_file_size in _bfd_generic_get_section_contents
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 28 Jun 2017 15:08:33 -0400
- Subject: [binutils-gdb] Don't call bfd_get_file_size in _bfd_generic_get_section_contents
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 328ce951b2513a102711bb640496a2f1b5f8d3dd ***
Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 328ce951b2513a102711bb640496a2f1b5f8d3dd
Don't call bfd_get_file_size in _bfd_generic_get_section_contents
Since it is impossible to read beyond the end of normal files, we only
need to check archive element size in _bfd_generic_get_section_contents
* libbfd.c (_bfd_generic_get_section_contents): Don't call
bfd_get_file_size. Check archive element size.
(_bfd_generic_get_section_contents_in_window): Likewise.