[PATCH] winedbg: rex is not used for Grp15b (Coverity)

Marcus Meissner marcus at jet.franken.de
Wed Feb 17 01:31:12 CST 2010


Coverity complained about a static overrun when rex is set,
Discussed with Eric, for Grp15b "rex" is not evaluated,
so suppresss its  usage.

The same might be true for other db_Grp calls, but its quite
hard to review, so fix this one first.

Ciao, Marcus
---
 programs/winedbg/db_disasm64.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/db_disasm64.c b/programs/winedbg/db_disasm64.c
index 7cb3475..4d4e2eb 100644
--- a/programs/winedbg/db_disasm64.c
+++ b/programs/winedbg/db_disasm64.c
@@ -1406,8 +1406,8 @@ db_disasm(db_addr_t loc, boolean_t altfmt)
 			break;
 		}
 	}
-	if (ip->i_extra == db_Grp15 && f_mod(rex, regmodrm) == 3) {
-		i_name = db_Grp15b[f_reg(rex, regmodrm)];
+	if (ip->i_extra == db_Grp15 && f_mod(0, regmodrm) == 3) {
+		i_name = db_Grp15b[f_reg(0, regmodrm)];
 		i_size = NONE;
 		i_mode = 0;
 	}
-- 
1.5.6



More information about the wine-patches mailing list