From bdbf3e52e3ac6bf046cd5c1d35ec7d33b9d96095 Mon Sep 17 00:00:00 2001 From: StalkR Date: Tue, 15 Sep 2020 15:44:26 +0200 Subject: [PATCH] MCInst: fix uninitialized value in operand value 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;