diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-28 11:07:04 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-28 11:07:04 -0700 |
commit | 328ce951b2513a102711bb640496a2f1b5f8d3dd (patch) | |
tree | 410c0349ea93ed40c1d24e91f277c618d5c37986 /bfd/bfd.c | |
parent | 47fdcf63c04b5c220974affc8ff1d9ef8a041919 (diff) | |
download | gdb-328ce951b2513a102711bb640496a2f1b5f8d3dd.zip gdb-328ce951b2513a102711bb640496a2f1b5f8d3dd.tar.gz gdb-328ce951b2513a102711bb640496a2f1b5f8d3dd.tar.bz2 |
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.
Diffstat (limited to 'bfd/bfd.c')
0 files changed, 0 insertions, 0 deletions