Skip to content

Commit

Permalink
Fix oobread in VAX disassembler (tests_64920) ##crash
Browse files Browse the repository at this point in the history
Reported by giantbranch of NSFOCUS TIANJI Lab
  • Loading branch information
trufae committed Oct 30, 2021
1 parent 027cd9b commit 49b0ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/anal/p/anal_vax.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static int vax_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf, int len,
case 0xfb: // calls
op->type = R_ANAL_OP_TYPE_CALL;
op->size = 7;
{
if (len > 6) {
int oa = 3;
ut32 delta = buf[oa];
delta |= (ut32)(buf[oa + 1]) << 8;
Expand Down

0 comments on commit 49b0ceb

Please sign in to comment.