From c66bb3396701d1cf4cef44ab02c225d44a8d7f95 Mon Sep 17 00:00:00 2001 From: StalkR Date: Wed, 16 Sep 2020 09:06:27 +0000 Subject: [PATCH] MCInst: fix uninitialized value in operand value (#1685) https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14912 Same as https://github.com/aquynh/capstone/pull/1684 for next branch --- MCInst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MCInst.c b/MCInst.c index bbb3050c04..d0bdc68ebe 100644 --- a/MCInst.c +++ b/MCInst.c @@ -21,6 +21,7 @@ void MCInst_Init(MCInst *inst) for (i = 0; i < 48; i++) { inst->Operands[i].Kind = kInvalid; + inst->Operands[i].ImmVal = 0; } inst->Opcode = 0;