Skip to content

Commit

Permalink
Replace hard with Capstone assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 authored and imbillow committed Sep 27, 2024
1 parent 1d0dcbc commit d64195c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/Xtensa/XtensaDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ DecodeStatus Xtensa_LLVM_getInstruction(MCInst *MI, uint16_t *size16,
uint64_t size64;
DecodeStatus status =
getInstruction(MI, &size64, Bytes, BytesSize, Address);
assert(size64 < 0xffff);
CS_ASSERT_RET_VAL(size64 < 0xffff, MCDisassembler_Fail);
*size16 = size64;
return status;
}

0 comments on commit d64195c

Please sign in to comment.