commit | ec2b9f60d1221c0ef9c2a4aac710332b60d4b498 | [log] [tgz] |
---|---|---|
author | Catena cyber <35799796+catenacyber@users.noreply.github.com> | Sat Jun 02 10:52:24 2018 +0200 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Sat Jun 02 16:52:24 2018 +0800 |
tree | 51b7cfe55fe5ee094bdfc2779261a0da011333c7 | |
parent | 86d124a2d3e5c523b53a0eb3060a8f16cf89d8ed [diff] |
operands are invalid at initialisation (#1159) Found by oss-fuzz
diff --git a/MCInst.c b/MCInst.c index bdbb82d..d549624 100644 --- a/MCInst.c +++ b/MCInst.c
@@ -16,6 +16,12 @@ void MCInst_Init(MCInst *inst) { + int i; + + for (i = 0; i < 48; i++){ + inst->Operands[i].Kind = kInvalid; + } + inst->Opcode = 0; inst->OpcodePub = 0; inst->size = 0; inst->has_imm = false;