Fix code analysis issue

This commit is contained in:
pancake 2013-10-12 02:32:35 +02:00
parent d8e41ac26b
commit 230896cd65
3 changed files with 11 additions and 2 deletions

View File

@ -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!

View File

@ -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;

View File

@ -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");