39 HtPUKv *kv = ht_pu_find_kv(db,
name,
NULL);
44 ht_pu_insert(db,
name, 1ULL);
57 .key_len = strlen(
uname),
59 .value_len =
sizeof(
ut64)
61 ht_pu_insert_kv(db, &
tmp,
false);
90 char *
p = strchr(dn,
'.');
109 bool res = ht_pp_insert(ht,
uname, sym);
118 if (!ht_pp_insert(ht, oname, sym)) {
124 ht_pp_update(ht, oname, sym);
129 HtPP *ht = ht_pp_new0();
137 if (sym && sym->
name && *sym->
name) {
146 HtPU *db = ht_pu_new0();
167 for (
i = 0;
i < 0x100;
i++) {
170 for (
i = 0;
str[
i];
i++) {
173 }
else if (
str[
i] >=
'a' &&
str[
i] <=
'z') {
175 }
else if (
str[
i] >=
'A' &&
str[
i] <=
'Z') {
180 if (
str[
i] ==
'\\') {
189 for (
i = 0;
i < 0x100;
i++) {
194 if (ln > 2 &&
str[0] !=
'_') {
198 if (ot >= (nm + up +
lo)) {
218 for (
i = 0, ptr = addrs;
i < splits;
i++, ptr += strlen(ptr) + 1) {
228 if (!strcmp(ptr,
"all")) {
232 range_sep = strchr(ptr,
'-');
238 if (refaddr >=
from && refaddr <=
to) {
244 if (
addr != 0 || *ptr ==
'0') {
245 if (refaddr ==
addr) {
260 for (
i = 0;
str[
i];
i++) {
265 return i ? ch_count * 100 /
i : 0;
270 bool got_uppercase, in_esc_seq;
271 switch (
bin->strfilter) {
273 got_uppercase =
false;
275 for (
i = 0;
str[
i];
i++) {
276 signed char ch =
str[
i];
278 (in_esc_seq && (ch ==
't' || ch ==
'n' || ch ==
'r'))) {
285 got_uppercase =
true;
288 in_esc_seq = in_esc_seq ?
false : ch ==
'\\';
296 if (!got_uppercase) {
301 for (
i = 0;
str[
i];
i++) {
310 if (!strchr(
str + 1,
'@')) {
313 if (!strchr(
str + 1,
'.')) {
322 if (!strchr(
str + 1,
'%')) {
330 if (!strstr(
str,
"://")) {
339 for (
i = 0;
str[
i];
i++) {
342 segmentsum = segmentsum * 10 + (ch -
'0');
347 }
else if (ch ==
'.') {
348 if (prevd ==
true && segmentsum < 256) {
370 for (
i = 0;
str[
i];
i++) {
386 if (
len >= 0 && (len < bin->minstrlen || (
bin->maxstrlen > 0 &&
len >
bin->maxstrlen))) {
RZ_API void rz_bin_filter_symbols(RzBinFile *bf, RzList *list)
static char * __hashify(char *s, ut64 vaddr)
RZ_API void rz_bin_filter_sections(RzBinFile *bf, RzList *list)
RZ_API char * rz_bin_filter_name(RzBinFile *bf, HtPU *db, ut64 vaddr, char *name)
static bool bin_strfilter(RzBin *bin, const char *str)
static int get_char_ratio(char ch, const char *str)
RZ_API void rz_bin_filter_sym(RzBinFile *bf, HtPP *ht, ut64 vaddr, RzBinSymbol *sym)
static bool false_positive(const char *str)
RZ_API bool rz_bin_string_filter(RzBin *bin, const char *str, int len, ut64 addr)
RZ_API bool rz_bin_strpurge(RzBin *bin, const char *str, ut64 refaddr)
RZ_API RZ_OWN char * rz_bin_demangle(RZ_NULLABLE RzBinFile *bf, RZ_NULLABLE const char *language, RZ_NULLABLE const char *symbol, ut64 vaddr, bool libs)
Demangles a symbol based on the language or the RzBinFile data.
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
RZ_API char * sdb_fmt(const char *fmt,...)
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API const KEY_TYPE bool * found
static void list(RzEgg *egg)
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
static const char struct stat static buf struct stat static buf static vhangup int struct rusage static rusage struct sysinfo static info unsigned static __unused uname
#define rz_return_if_fail(expr)
#define rz_return_val_if_fail(expr, val)
#define RZ_LOG_WARN(fmtstr,...)
RZ_API ut64 rz_num_get(RzNum *num, const char *str)
#define RZ_STR_ISNOTEMPTY(x)
RZ_API char * rz_str_appendf(char *ptr, const char *fmt,...) RZ_PRINTF_CHECK(2
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
RZ_API size_t rz_str_split(char *str, char ch)
Split string str in place by using ch as a delimiter.
RZ_API ut32 sdb_hash(const char *key)
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
XX curplugin == o->plugin.
ut64(WINAPI *w32_GetEnabledXStateFeatures)()