mirror of
https://gitlab.com/qemu-project/capstone.git
synced 2025-09-17 02:01:15 +08:00
mips: return Fail on assert failure in MipsDisassembler.c
This commit is contained in:
@ -490,6 +490,8 @@ static DecodeStatus DecodeINSVE_DF_4(MCInst *MI, uint32_t insn,
|
||||
} //else llvm_unreachable("Invalid encoding");
|
||||
|
||||
//assert(NSize != 0 && RegDecoder != nullptr);
|
||||
if (NSize == 0 || RegDecoder == NULL)
|
||||
return MCDisassembler_Fail;
|
||||
|
||||
if (RegDecoder == NULL)
|
||||
return MCDisassembler_Fail;
|
||||
|
Reference in New Issue
Block a user