Coverity patch for VLE (#7904)

This commit is contained in:
Giovanni 2017-07-11 11:25:32 +02:00 committed by radare
parent 7dbc50ed5f
commit 59d6141658
2 changed files with 3 additions and 2 deletions

View File

@ -524,7 +524,7 @@ static int analop_vle(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len)
case R_ANAL_OP_TYPE_XOR:
break;
default:
eprintf ("Missing R_ANAL_OP_TYPE (0x%X)\n", op->type);
eprintf ("Missing an R_ANAL_OP_TYPE");
break;
}
vle_free (instr);

View File

@ -639,6 +639,7 @@ static void set_ppc_fields(vle_t * v, const ppc_t* p, ut32 data) {
v->fields[2].value = (data & 0xF800) >> 11;
v->fields[2].type = p->types[2];
}
break;
case F_DCI:
{
v->n = 1;
@ -847,4 +848,4 @@ void vle_snprint(char* str, int size, ut64 addr, vle_t* instr) {
add += snprintf (str + add, bufsize - add, " cr%u", instr->fields[i].value);
}
}
}
}