|
From: <sv...@va...> - 2007-08-23 18:54:00
|
Author: sewardj
Date: 2007-08-23 19:53:59 +0100 (Thu, 23 Aug 2007)
New Revision: 1776
Log:
Allow up to 7 prefixes, so as to accept
66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 nopw %cs:0x0(%rax,%rax,1)
as a valid no-op. Blargh.
Modified:
trunk/priv/guest-amd64/toIR.c
Modified: trunk/priv/guest-amd64/toIR.c
===================================================================
--- trunk/priv/guest-amd64/toIR.c 2007-07-11 22:49:26 UTC (rev 1775)
+++ trunk/priv/guest-amd64/toIR.c 2007-08-23 18:53:59 UTC (rev 1776)
@@ -8387,7 +8387,7 @@
as many invalid combinations as possible. */
n_prefixes = 0;
while (True) {
- if (n_prefixes > 5) goto decode_failure;
+ if (n_prefixes > 7) goto decode_failure;
pre = getUChar(delta);
switch (pre) {
case 0x66: pfx |= PFX_66; break;
|