This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] PR24236, Heap buffer overflow in _bfd_archive_64_bit_slurp_armap
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 19 Feb 2019 20:53:31 -0500
- Subject: [binutils-gdb] PR24236, Heap buffer overflow in _bfd_archive_64_bit_slurp_armap
*** TEST RESULTS FOR COMMIT 8abac8031ed369a2734b1cdb7df28a39a54b4b49 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 8abac8031ed369a2734b1cdb7df28a39a54b4b49
PR24236, Heap buffer overflow in _bfd_archive_64_bit_slurp_armap
PR 24236
* archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
sentinel NUL to string buffer nearer to loop where it is used.
Don't go past sentinel when scanning strings, and don't write
NUL again.
* archive.c (do_slurp_coff_armap): Simplify string handling to
archive64.c style.