Fix few more coverity warns, bump sdb and drx android build
This commit is contained in:
parent
14031911f0
commit
a8926f9209
7 changed files with 13 additions and 12 deletions
|
|
@ -205,3 +205,6 @@ Hold on, this should never happen!
|
|||
Well this is embarrasing...
|
||||
THIS IS NOT FUNNY
|
||||
This code was intentionally left blank, try 'e asm.arch = ws'
|
||||
This is a compressed PDF. Why the hell are you opening this in r2 ? SIGSEGV
|
||||
♥ --
|
||||
Can you stand on your head?
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ static int bin_relocs (RCore *r, int mode, ut64 baddr, int va) {
|
|||
r_list_foreach (relocs, iter, reloc) {
|
||||
r_cons_printf ("addr=0x%08"PFMT64x" off=0x%08"PFMT64x" type=%s",
|
||||
baddr+reloc->rva, reloc->offset, bin_reloc_type_name (reloc));
|
||||
if (reloc->import && reloc->import->name)
|
||||
if (reloc->import && reloc->import->name[0])
|
||||
r_cons_printf (" %s", reloc->import->name);
|
||||
if (reloc->addend) {
|
||||
if (reloc->import && reloc->addend > 0)
|
||||
|
|
@ -723,7 +723,8 @@ static int bin_symbols (RCore *r, int mode, ut64 baddr, int va, ut64 at, const c
|
|||
if (symbol->size>0) {
|
||||
r_cons_printf ("Cd %"PFMT64d" @ 0x%08"PFMT64x"\n",
|
||||
symbol->size, addr);
|
||||
} else eprintf ("Wrong symbol '%s' have size %d\n", symbol->name, symbol->size);
|
||||
} else eprintf ("Wrong symbol '%s' have size %"PFMT64d"\n",
|
||||
symbol->name, symbol->size);
|
||||
}
|
||||
r_cons_printf ("f sym.%s %"PFMT64d" 0x%08"PFMT64x"\n",
|
||||
symbol->name, symbol->size, addr);
|
||||
|
|
|
|||
|
|
@ -1866,17 +1866,20 @@ eprintf ("++ EFL = 0x%08x %d\n", ctx.EFlags, r_offsetof (CONTEXT, EFlags));
|
|||
// XXX: maybe the register map is not correct, must review
|
||||
}
|
||||
#elif __linux__
|
||||
#ifndef __ANDROID__
|
||||
{
|
||||
int i;
|
||||
for (i=0; i<8; i++) { // DR0-DR7
|
||||
if (i==4 || i == 5) continue;
|
||||
long ret = ptrace (PTRACE_PEEKUSER, pid, r_offsetof (
|
||||
struct user, u_debugreg[i]), 0);
|
||||
eprintf ("PEEK %d = %x\n", i, ret);
|
||||
memcpy (buf+(i*sizeof(ret)), &ret, sizeof(ret));
|
||||
}
|
||||
return sizeof (R_DEBUG_REG_T);
|
||||
}
|
||||
#else
|
||||
#warning Android X86 does not support DRX
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
return R_TRUE;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
#define SDB_VERSION "0.7.0"
|
||||
#define SDB_VERSION "0.7.1"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
DESTDIR?=
|
||||
PREFIX?=/usr
|
||||
|
||||
SDBVER=0.7.0
|
||||
SDBVER=0.7.1
|
||||
|
||||
CFLAGS_STD?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
|
||||
#CFLAGS+=-Wno-initializer-overrides
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
#define SDB_VERSION "0.7.0"
|
||||
#define SDB_VERSION "0.7.1"
|
||||
|
|
|
|||
|
|
@ -523,23 +523,17 @@ SDB_VISIBLE void sdb_flush(Sdb* s) {
|
|||
static int r_sys_rmkdir(char *dir) {
|
||||
char *ptr, *path;
|
||||
ptr = path = dir;
|
||||
printf ("MAKE DIR\n");
|
||||
if (*ptr==DIRSEP) ptr++;
|
||||
printf ("2 MAKE DIR (%s)\n", ptr);
|
||||
while ((ptr = strchr (ptr, DIRSEP))) {
|
||||
*ptr = 0;
|
||||
printf ("2.2 pene\n");
|
||||
if (!r_sys_mkdir (path) && r_sys_mkdir_failed ()) {
|
||||
fprintf (stderr, "r_sys_rmkdir: fail %s\n", dir);
|
||||
printf ("2.4 pene\n");
|
||||
free (path);
|
||||
return 0;
|
||||
}
|
||||
printf ("2.8 pene\n");
|
||||
*ptr = DIRSEP;
|
||||
ptr++;
|
||||
}
|
||||
printf ("3 SOPA\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue