diff options
author | Nick Clifton <nickc@redhat.com> | 2016-12-05 14:59:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-12-05 14:59:02 +0000 |
commit | 52c4f3bdd5957a31b671a9791f462be5e8eadd85 (patch) | |
tree | 87d292f55187294d3b45f0fd1b5ac2fc2a18d2d1 /bfd/peicode.h | |
parent | e2996cc315d6ea242e1a954dc20246485ccc8512 (diff) | |
download | gdb-52c4f3bdd5957a31b671a9791f462be5e8eadd85.zip gdb-52c4f3bdd5957a31b671a9791f462be5e8eadd85.tar.gz gdb-52c4f3bdd5957a31b671a9791f462be5e8eadd85.tar.bz2 |
Fix abort when running tools on a bogus binary.
PR binutils/20907
* peicode.h (pe_ILF_build_a_bfd): Replace abort with error return.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r-- | bfd/peicode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index 9f98f86..ee47a67 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -892,8 +892,8 @@ pe_ILF_build_a_bfd (bfd * abfd, if (import_name_type == IMPORT_ORDINAL) { if (ordinal == 0) - /* XXX - treat as IMPORT_NAME ??? */ - abort (); + /* See PR 20907 for a reproducer. */ + goto error_return; #ifdef COFF_WITH_pex64 ((unsigned int *) id4->contents)[0] = ordinal; |