asan: hvf: fix overflow in decode struct

Change-Id: I9d8d08d922eb08748b1535c628b08f27db3d5619
Fixes: 111676629
This commit is contained in:
Lingfeng Yang 2018-07-20 07:00:56 -07:00 committed by espes
parent 2911dda2dc
commit d0b4d2939a
1 changed files with 3 additions and 3 deletions

View File

@ -452,9 +452,9 @@ struct decode_x87_tbl {
struct decode_tbl invl_inst = {0x0, 0, 0, false, NULL, NULL, NULL, NULL,
decode_invalid};
struct decode_tbl _decode_tbl1[255];
struct decode_tbl _decode_tbl2[255];
struct decode_x87_tbl _decode_tbl3[255];
struct decode_tbl _decode_tbl1[256];
struct decode_tbl _decode_tbl2[256];
struct decode_x87_tbl _decode_tbl3[256];
static void decode_x87_ins(CPUX86State *env, struct x86_decode *decode)
{