This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix access violation when parsing a corrupt IEEE binary.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 19 Jun 2017 10:02:48 -0400
- Subject: [binutils-gdb] Fix access violation when parsing a corrupt IEEE binary.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT acb56a83016611bcb5f0a32368fddc8c213f7dd0 ***
Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: acb56a83016611bcb5f0a32368fddc8c213f7dd0
Fix access violation when parsing a corrupt IEEE binary.
PR binutils/21612
* libieee.h (struct common_header_type): Add end_p field.
* ieee.c (this_byte_and_next): Do not advance input_p beyond
end_p.
(read_id): Check for a length that exceeds the remaining bytes in
the input buffer.
(ieee_seek): Initialise end_p.
(ieee_archive_p): Likewise.
(ieee_object_p): Likewise.