Skip to content

Commit

Permalink
Fix #442 - ag/agv crash on asm.middle=true
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 9, 2013
1 parent 160495a commit 12089bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libr/anal/reflines.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ R_API struct r_anal_refline_t *r_anal_reflines_get(struct r_anal_t *anal,

R_API int r_anal_reflines_middle(RAnal *a, RAnalRefline *list, ut64 addr, int len) {
struct list_head *pos;
if (list)
for (pos = (&(list->list))->next; pos != (&(list->list)); pos = pos->next) {
RAnalRefline *ref = list_entry (pos, RAnalRefline, list);
if ((ref->to> addr) && (ref->to < addr+len))
Expand Down

0 comments on commit 12089bb

Please sign in to comment.