Compare commits

...

5 Commits

Author SHA1 Message Date
Francesco Tamagni 8f7c5ee4f3 Fix comparison 2024-03-18 09:17:09 +01:00
Francesco Tamagni 811cd8f251 Fix compilation harder 2024-03-18 09:06:56 +01:00
Francesco Tamagni 74bf07c23e Cast to local variable and fix compilation 2024-03-18 08:51:24 +01:00
pancake 1bb62fcd0b better 2024-03-18 08:00:02 +01:00
pancake 8d81eb7f8e Fix CID#1540326 - string not null terminated 2024-03-18 07:38:35 +01:00
2 changed files with 13 additions and 6 deletions

View File

@ -12261,7 +12261,7 @@ static void cmd_anal_graph(RCore *core, const char *input) {
{
core->graph->is_callgraph = true;
r_core_cmdf (core, "ag-;.agR*;");
r_core_agraph_print(core, -1, input + 1);
r_core_agraph_print (core, -1, input + 1);
core->graph->is_callgraph = false;
}
break;

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2008-2023 - mrmacete, pancake */
/* radare - LGPL - Copyright 2008-2024 - mrmacete, pancake */
#include <r_io.h>
#include <r_lib.h>
@ -1059,10 +1059,17 @@ static RDSCHeader * r_io_dsc_read_header(int fd, ut64 offset) {
}
static bool is_valid_magic(ut8 magic[16]) {
return !strcmp ((char *) magic, "dyld_v1 arm64")
|| !strcmp ((char *) magic, "dyld_v1 arm64e")
|| !strcmp ((char *) magic, "dyld_v1 x86_64")
|| !strcmp ((char *) magic, "dyld_v1 x86_64h");
const char * ma = (const char *)magic;
if (r_str_startswith (ma, "dyld_v1 ")) {
const size_t off = strlen ("dyld_v1 ");
const size_t left = 16 - off;
return 0 \
|| !strncmp (ma + off, " arm64", left)
|| !strncmp (ma + off, " arm64e", left)
|| !strncmp (ma + off, " x86_64", left)
|| !strncmp (ma + off, "x86_64h", left);
}
return false;
}
static bool is_null_uuid(ut8 uuid[16]) {