diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/processor/disassembler_x86.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/processor/disassembler_x86.cc b/src/processor/disassembler_x86.cc index 31af24fc..76015f4a 100644 --- a/src/processor/disassembler_x86.cc +++ b/src/processor/disassembler_x86.cc @@ -212,7 +212,7 @@ bool DisassemblerX86::setBadRead() { return false; libdis::x86_op_t *operand = libdis::x86_get_src_operand(¤t_instr_); - if (operand->type != libdis::op_expression) + if (!operand || operand->type != libdis::op_expression) return false; memcpy(&bad_register_, &operand->data.expression.base, @@ -226,7 +226,7 @@ bool DisassemblerX86::setBadWrite() { return false; libdis::x86_op_t *operand = libdis::x86_get_dest_operand(¤t_instr_); - if (operand->type != libdis::op_expression) + if (!operand || operand->type != libdis::op_expression) return false; memcpy(&bad_register_, &operand->data.expression.base, |