Skip to content

Commit

Permalink
Fix #2450 ASAN crash in code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Apr 27, 2015
1 parent 876ac12 commit 92e5d07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/anal/fcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ static int fcn_recurse(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut8 *buf, ut6
break;
}
repeat:
if ((len-idx)<5) {
break;
}
r_anal_op_fini (&op);
if (buf[idx]==buf[idx+1] && buf[idx]==0xff && buf[idx+2]==0xff) {
FITFCNSZ();
Expand Down

0 comments on commit 92e5d07

Please sign in to comment.