Fix heap-buffer-overflow error detected by address sanitization on a fuzzed binary.
authorNick Clifton <nickc@redhat.com>
Tue, 8 Nov 2016 15:03:46 +0000 (15:03 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 8 Nov 2016 15:03:46 +0000 (15:03 +0000)
commitcb64e50d42a49bce61050c79c5ab0846905b6a82
tree8b9cd3d83f0cdf8c8fbe1de7840f8ff395abbe8e
parent93f9a11fbdb8f09428b17180d51a09a1bda39a52
Fix heap-buffer-overflow error detected by address sanitization on a fuzzed binary.

PR binutils/20794
* readelf.c (process_section_headers): Fix off-by-one error when
checking for invalid sh_link and sh_info fields.
binutils/ChangeLog
binutils/readelf.c