This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix use-after-free error when parsing a corrupt nested archive.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 19 Jul 2017 10:14:45 -0400
- Subject: [binutils-gdb] Fix use-after-free error when parsing a corrupt nested archive.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 909e4e716c4d77e33357bbe9bc902bfaf2e1af24 ***
Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: 909e4e716c4d77e33357bbe9bc902bfaf2e1af24
Fix use-after-free error when parsing a corrupt nested archive.
PR 21787
* archive.c (bfd_generic_archive_p): If the bfd does not have the
correct magic bytes at the start, set the error to wrong format
and clear the format selector before returning NULL.