Fix last covs (#15976)
This commit is contained in:
parent
88a424164c
commit
7c115b1eda
|
@ -1337,6 +1337,7 @@ static void print_hint_tree(RBTree tree, int mode) {
|
|||
if (pj) {
|
||||
pj_end (pj);
|
||||
r_cons_printf ("%s\n", pj_string (pj));
|
||||
pj_free (pj);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1391,8 +1391,7 @@ static void set_bin_relocs(RCore *r, RBinReloc *reloc, ut64 addr, Sdb **db, char
|
|||
module[module_len - 4] = '\0';
|
||||
}
|
||||
|
||||
char *import = strdup (reloc->import->name + strlen ("Ordinal_"));
|
||||
|
||||
const char *import = reloc->import->name + strlen ("Ordinal_");
|
||||
if (import) {
|
||||
char *filename = NULL;
|
||||
int ordinal = atoi (import);
|
||||
|
|
|
@ -3444,12 +3444,11 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
|||
}
|
||||
case 'r': { // "afcr"
|
||||
int i;
|
||||
char *cmd, *regname;
|
||||
RStrBuf *json_buf = r_strbuf_new ("{");
|
||||
bool json = input[3] == 'j'? true: false;
|
||||
|
||||
cmd = r_str_newf ("cc.%s.ret", fcn->cc);
|
||||
regname = sdb_const_get (core->anal->sdb_cc, cmd, 0);
|
||||
char *cmd = r_str_newf ("cc.%s.ret", fcn->cc);
|
||||
const char *regname = sdb_const_get (core->anal->sdb_cc, cmd, 0);
|
||||
if (regname) {
|
||||
if (json) {
|
||||
r_strbuf_appendf (json_buf, "\"ret\":\"%s\"", regname);
|
||||
|
@ -7535,6 +7534,7 @@ static void cmd_anal_hint(RCore *core, const char *input) {
|
|||
r_str_word_set0 (ptr);
|
||||
ut64 addr = r_num_math (core->num, r_str_word_get0 (ptr, 0));
|
||||
r_core_anal_hint_print (core->anal, addr, input[0]);
|
||||
free (ptr);
|
||||
} else {
|
||||
r_core_anal_hint_list (core->anal, input[0]);
|
||||
}
|
||||
|
|
|
@ -5778,7 +5778,7 @@ R_API int r_core_print_disasm_instructions(RCore *core, int nb_bytes, int nb_opc
|
|||
ds->opstr = strdup (ds->hint->opcode);
|
||||
} else {
|
||||
if (ds->decode && !ds->immtrim) {
|
||||
free (ds->opstr);
|
||||
R_FREE (ds->opstr);
|
||||
if (!hasanal) {
|
||||
r_anal_op (core->anal, &ds->analop, ds->at, core->block+i, core->blocksize-i, R_ANAL_OP_MASK_ALL);
|
||||
hasanal = true;
|
||||
|
@ -5786,6 +5786,7 @@ R_API int r_core_print_disasm_instructions(RCore *core, int nb_bytes, int nb_opc
|
|||
tmpopstr = r_anal_op_to_string (core->anal, &ds->analop);
|
||||
ds->opstr = (tmpopstr)? tmpopstr: strdup (r_asm_op_get_asm (&ds->asmop));
|
||||
} else if (ds->immtrim) {
|
||||
free (ds->opstr);
|
||||
ds->opstr = strdup (r_asm_op_get_asm (&ds->asmop));
|
||||
r_parse_immtrim (ds->opstr);
|
||||
} else if (ds->use_esil) {
|
||||
|
@ -5816,6 +5817,7 @@ R_API int r_core_print_disasm_instructions(RCore *core, int nb_bytes, int nb_opc
|
|||
}
|
||||
}
|
||||
ds_build_op_str (ds, true);
|
||||
free (ds->opstr);
|
||||
ds->opstr = strdup (ds->str);
|
||||
asm_str = colorize_asm_string (core, ds, true);
|
||||
core->parser->flagspace = ofs;
|
||||
|
|
|
@ -412,6 +412,7 @@ static void rotateAsmBits(RCore *core) {
|
|||
bits = nb;
|
||||
retries--;
|
||||
}
|
||||
r_anal_hint_free (hint);
|
||||
}
|
||||
|
||||
static const char *rotateAsmemu(RCore *core) {
|
||||
|
|
Loading…
Reference in New Issue