Skip to contentSkip to conversation

[7209] Safety net for the cases where disassembler/ translator disagree over instruction decoding

Qemu-devel malc 1 participant 1 message Apr 21, 2009

lore
Share & tools
lore

malc

author
#0 lore raw

Revision: 7209

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7209
Author:   malc
Date:     2009-04-21 22:26:22 +0000 (Tue, 21 Apr 2009)

Log Message:
-----------
Safety net for the cases where disassembler/translator disagree over instruction decoding

Noticed by Mark Karpeles.

Modified Paths:
--------------
trunk/disas.c

Modified: trunk/disas.c
===================================================================

disas.c +7 -0
@@ -222,6 +222,13 @@
 	fprintf(out, "\n");
 	if (count < 0)
 	    break;
+        if (size < count) {
+            fprintf(out,
+                    "Disassembler disagrees with translator over instruction "
+                    "decoding\n"
+                    "Please report this to [email protected]\n");
+            break;
+        }
     }
 }