diff options
author | Alan Modra <amodra@gmail.com> | 2017-04-29 14:48:16 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-04-29 18:59:37 +0930 |
commit | a941291cab71b9ac356e1c03968c177c03e602ab (patch) | |
tree | d65e215e50c613debf66d04caedaef757d4d2839 /gdb/python/python.c | |
parent | 45ce1b47e4490993b5c1a04f4a8acb62d9ec5039 (diff) | |
download | binutils-a941291cab71b9ac356e1c03968c177c03e602ab.zip binutils-a941291cab71b9ac356e1c03968c177c03e602ab.tar.gz binutils-a941291cab71b9ac356e1c03968c177c03e602ab.tar.bz2 |
PR21432, buffer overflow in perform_relocation
The existing reloc offset range tests didn't catch small negative
offsets less than the size of the reloc field.
PR 21432
* reloc.c (reloc_offset_in_range): New function.
(bfd_perform_relocation, bfd_install_relocation): Use it.
(_bfd_final_link_relocate): Likewise.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions