aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-03-03 16:11:12 +0000
committerNick Clifton <nickc@redhat.com>2020-03-03 16:11:12 +0000
commit5be2b2f549b0ba0743938d1d74708d79cf42dc0f (patch)
treeedce11a4903260bf4d97d06c6907cb798bff60e6 /binutils
parent10d97a0f99079325bf85e17cc741496e686a6b74 (diff)
downloadgdb-5be2b2f549b0ba0743938d1d74708d79cf42dc0f.zip
gdb-5be2b2f549b0ba0743938d1d74708d79cf42dc0f.tar.gz
gdb-5be2b2f549b0ba0743938d1d74708d79cf42dc0f.tar.bz2
Remove a call to abort which can be triggered by running objdump on a corrupt input file.
PR 25625 * prdbg.c (pr_tag_type): Remove call to abort.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/prdbg.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index e1cec98..afc3803 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-03-03 Nick Clifton <nickc@redhat.com>
+
+ PR 25625
+ * prdbg.c (pr_tag_type): Remove call to abort.
+
2020-03-02 Aaron Merey <amerey@redhat.com>
* binutils/testsuite/binutils-all/debuginfod.exp: Improve port
diff --git a/binutils/prdbg.c b/binutils/prdbg.c
index ef6fe61..1b376f4 100644
--- a/binutils/prdbg.c
+++ b/binutils/prdbg.c
@@ -1624,7 +1624,7 @@ pr_tag_type (void *p, const char *name, unsigned int id,
t = "union class ";
break;
default:
- abort ();
+ /* PR 25625: Corrupt input can trigger this case. */
return FALSE;
}