This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] PR22166, SHT_GNU_verneed memory allocation
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sun, 24 Sep 2017 03:05:14 -0400
- Subject: [binutils-gdb] PR22166, SHT_GNU_verneed memory allocation
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT bd61e135492ecf624880e6b78e5fcde3c9716df6 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: bd61e135492ecf624880e6b78e5fcde3c9716df6
PR22166, SHT_GNU_verneed memory allocation
The sanity check covers the previous minimim size, plus that the size
is at least enough for sh_info verneed entries.
Also, since we write all verneed fields or exit with an error, there
isn't any need to zero the memory allocated for verneed entries.
PR 22166
* elf.c (_bfd_elf_slurp_version_tables): Test sh_info on
SHT_GNU_verneed section for sanity. Don't zalloc memory for
verref.