Fix code analysis issue
This commit is contained in:
parent
d8e41ac26b
commit
230896cd65
|
@ -168,3 +168,6 @@ ASLR stands for Age/Sex/Location/Reverser
|
|||
This software comes with no brain included. please use your own
|
||||
rm: /: Permission denied
|
||||
That's embarrassing.
|
||||
Connection with license server failed.
|
||||
In soviet afghanistan radare debugs russia!
|
||||
In soviet afghanistan you debug radare!
|
||||
|
|
|
@ -381,9 +381,14 @@ default:
|
|||
break;
|
||||
case UD_Icall:
|
||||
op->type = R_ANAL_OP_TYPE_CALL;
|
||||
if (u.operand[0].type==UD_OP_REG) {
|
||||
switch (u.operand[0].type) {
|
||||
case UD_OP_REG:
|
||||
op->jump = 0; // EAX, EBX, ... use anal->reg
|
||||
} else {
|
||||
break;
|
||||
case UD_OP_IMM:
|
||||
case UD_OP_MEM:
|
||||
case UD_OP_PTR:
|
||||
default:
|
||||
op->jump = addr + oplen + (int)getval (&u.operand[0]);
|
||||
}
|
||||
op->fail = addr + oplen;
|
||||
|
|
|
@ -835,6 +835,7 @@ R_API int r_core_anal_graph(RCore *core, ut64 addr, int opts) {
|
|||
&& (addr == 0 || inrange (addr, fcni))) {
|
||||
if (is_json && count++>0) r_cons_printf (",");
|
||||
r_core_anal_graph_nodes (core, fcni, opts);
|
||||
if (addr != 0) break;
|
||||
}
|
||||
}
|
||||
if (!is_html && !is_json) r_cons_printf ("}\n");
|
||||
|
|
Loading…
Reference in New Issue