This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix abort in x86 disassembler.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a37a2806e3289294ed214aed3c8a45db46026b39

commit a37a2806e3289294ed214aed3c8a45db46026b39
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu Dec 1 10:26:32 2016 +0000

    Fix abort in x86 disassembler.
    
    	PR binutils/20893
    	* i386-dis.c (OP_VEX): Replace call to abort with a append of bad
    	opcode designator.

Diff:
---
 opcodes/ChangeLog  | 6 ++++++
 opcodes/i386-dis.c | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 299b750..783ffa2 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2016-12-01  Nick Clifton  <nickc@redhat.com>
+
+	PR binutils/20893
+	* i386-dis.c (OP_VEX): Replace call to abort with a append of bad
+	opcode designator.
+
 2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
 
 	* arc-opc.c (insert_ra_chk): New function.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index ada4401..ad0baf1 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -16975,7 +16975,8 @@ OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
 	  names = names_mask;
 	  break;
 	default:
-	  abort ();
+	  /* See PR binutils/20893 for a reproducer.  */
+	  oappend ("(bad)");
 	  return;
 	}
       break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]