diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-01-02 00:25:56 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-01-06 18:30:44 +0000 |
commit | a08c904d4e9688a869242d9cec1b64ca23b1214e (patch) | |
tree | f2323563785cc167155240fa846194ae34e7379f /gdb/tracectf.h | |
parent | 89a65580f4522f81ef7e4e49298b24f3ebc14355 (diff) | |
download | gdb-a08c904d4e9688a869242d9cec1b64ca23b1214e.zip gdb-a08c904d4e9688a869242d9cec1b64ca23b1214e.tar.gz gdb-a08c904d4e9688a869242d9cec1b64ca23b1214e.tar.bz2 |
Fix a crash with a malformed PE header
Don't try to read the PE export table when no section contains the RVA
for it.
(I have a PE executable [1] packed with UPX, where the export table data
directory entry contains a RVA which doesn't correspond to any section.
Mistakenly trying to debug this with gdb makes it crash.)
[1] https://cygwin.com/setup/setup-2.898.x86_64.exe
gdb/ChangeLog:
2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
* coff-pe-read.c (read_pe_exported_syms): Don't try to read the
export table if no section contains it's RVA.
Diffstat (limited to 'gdb/tracectf.h')
0 files changed, 0 insertions, 0 deletions