mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 02:06:46 +00:00
Fix few more covs (#12303)
This commit is contained in:
parent
191ef84f03
commit
ef42e5a205
@ -26,7 +26,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
|
||||
static int omode = -1;
|
||||
static int obits = 32;
|
||||
cs_insn* insn = NULL;
|
||||
int ret, n = 0;
|
||||
int ret = 0, n = 0;
|
||||
cs_mode mode = a->big_endian? CS_MODE_BIG_ENDIAN: CS_MODE_LITTLE_ENDIAN;
|
||||
if (mode != omode || a->bits != obits) {
|
||||
cs_close (&cd);
|
||||
|
@ -1189,6 +1189,7 @@ repeat:
|
||||
}
|
||||
if (!xrefs || !r_list_length (xrefs)) {
|
||||
r_list_free (xrefs);
|
||||
xrefs = NULL;
|
||||
r_cons_printf ("(no refs)\n");
|
||||
// return 0;
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ static int lang_c_file(RLang *lang, const char *file) {
|
||||
" $(pkg-config --cflags --libs r_core)", cc, file, libpath, libname);
|
||||
free (cc);
|
||||
if (r_sandbox_system (buf, 1) != 0) {
|
||||
free (buf);
|
||||
return false;
|
||||
}
|
||||
free (buf);
|
||||
|
@ -44,6 +44,7 @@ static int lang_rust_file(RLang *lang, const char *file) {
|
||||
cc, file, libpath, libname);
|
||||
free (cc);
|
||||
if (r_sandbox_system (cmd, 1) != 0) {
|
||||
free (cmd);
|
||||
return false;
|
||||
}
|
||||
free (cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user