commit | 33f39e1632370f8ea3a6e23ec31cbf673a1d03da | [log] [tgz] |
---|---|---|
author | obs1dium <obs1dium@users.noreply.github.com> | Fri Oct 13 03:04:16 2017 +0200 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Oct 13 09:04:16 2017 +0800 |
tree | d62254731174d4aeda872c85c694d31db3777a2c | |
parent | f5ee69e42baf7d62d816ac57365dd6532de840c0 [diff] [blame] |
Fix undefined behavior when disassembling ud0 x86 instructions (#1032) * fix undefined behavior due to uninitialized memory * fix bad calloc call
diff --git a/MCInst.c b/MCInst.c index d521845..cc062d0 100644 --- a/MCInst.c +++ b/MCInst.c
@@ -16,6 +16,7 @@ void MCInst_Init(MCInst *inst) { + inst->Opcode = 0; inst->OpcodePub = 0; inst->size = 0; inst->has_imm = false;