Workaround for the fatbin slice selection regression ##bin

This commit is contained in:
pancake 2022-07-08 11:48:29 +02:00 committed by pancake
parent 30168a2065
commit 0fe2fab15c
2 changed files with 5 additions and 0 deletions

View File

@ -4393,6 +4393,10 @@ R_API bool r_core_bin_set_arch_bits(RCore *r, const char *name, const char *_arc
return false;
}
}
if (!strcmp (arch, "null")) {
free (arch);
arch = strdup (R_SYS_ARCH);
}
/* Find a file with the requested name/arch/bits */
RBinFile *binfile = r_bin_file_find_by_arch_bits (r->bin, arch, bits);
if (!binfile) {

View File

@ -42,6 +42,7 @@ RUN
NAME=entitlements with rabin2
FILE=bins/mach0/AppIOSEntitlements.ios
ARGS=-a x86
CMDS=!rabin2 -OC `i~file:0[1]`
EXPECT=<<EOF
<?xml version="1.0" encoding="UTF-8"?>