Skip to content

Commit

Permalink
fix aa
Browse files Browse the repository at this point in the history
  • Loading branch information
condret committed Jan 31, 2017
1 parent 33f5318 commit ac638ca
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions libr/core/canal.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,16 @@ static int core_anal_fcn(RCore *core, ut64 at, ut64 from, int reftype, int depth
RFlagItem *f;
RAnalRef *ref;
int delta = r_anal_fcn_size (fcn);
// XXX hack slow check io error
if ((buflen = r_io_read_at (core->io, at + delta, buf, 4) != 4)) {
eprintf ("read errro\n");
goto error;
}
// real read.
// this is unnecessary if its contiguous
buflen = r_io_read_at (core->io, at+delta, buf, core->anal->opt.bb_max_size);
if (core->io->va) {
if (!r_io_is_valid_offset (core->io, at+delta, !core->anal->opt.noncode)) {
goto error;
}
}
buflen = core->anal->opt.bb_max_size;
if (!r_io_read_at (core->io, at + delta, buf, buflen)) {
eprintf ("read errro\n");
goto error;
}
if (r_cons_is_breaked ()) {
break;
}
Expand Down

0 comments on commit ac638ca

Please # to comment.