Skip to content

Commit 49b0ceb

Browse files
committed
Fix oobread in VAX disassembler (tests_64920) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
1 parent 027cd9b commit 49b0ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libr/anal/p/anal_vax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static int vax_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf, int len,
150150
case 0xfb: // calls
151151
op->type = R_ANAL_OP_TYPE_CALL;
152152
op->size = 7;
153-
{
153+
if (len > 6) {
154154
int oa = 3;
155155
ut32 delta = buf[oa];
156156
delta |= (ut32)(buf[oa + 1]) << 8;

0 commit comments

Comments
 (0)