From 9e1c9ce8e9cee778d4fee89e83207a4bda539bdd Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 12 Sep 2010 13:37:53 +0400 Subject: BR3064376: ndisasm crash ndisasm may crash due to lack of check of VEX table index. Signed-off-by: Cyrill Gorcunov --- disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disasm.c b/disasm.c index ba282d3..6320852 100644 --- a/disasm.c +++ b/disasm.c @@ -1102,7 +1102,7 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize, prefix.vex_v = (~prefix.vex[2] >> 3) & 15; prefix.vex_lp = prefix.vex[2] & 7; - ix = itable_vex[RV_XOP][prefix.vex_m][prefix.vex_lp]; + ix = itable_vex[RV_XOP][prefix.vex_m][prefix.vex_lp & 3]; } end_prefix = true; break; -- cgit v1.2.3