input stringlengths 18 318k | output stringlengths 26 172k | repo_name stringclasses 23
values | decompiler stringclasses 5
values | ged int64 0 1.77k |
|---|---|---|---|---|
void crypto_sort_uint32(void *a0, unsigned long long a1) {
void *v0;
void *v2;
for (v0 = 0; v0 < a1; v0 = __addvdi3(v0, 0x1)) {
*((a0 + 0x4 * v0)) = *((a0 + 0x4 * v0)) ^ 0x80000000;
}
crypto_sort_int32(a0, a1);
v0 = 0;
while (true) {
v2 = v0;
if (v0 >= a1)
break;
*((a0 + 0x4 * v0)) ... | static void crypto_sort_uint32(void *array, long long n) {
crypto_uint32 *x = array;
long long j;
for (j = 0; j < n; ++j)
x[j] ^= 0x80000000;
crypto_sort_int32(array, n);
for (j = 0; j < n; ++j)
x[j] ^= 0x80000000;
} | openssh-portable | angr_dream | 8 |
int tzalloc(char *a0) {
void *v0;
unsigned long v1;
struct_0 *v2;
void *v4;
unsigned long long v5;
unsigned long long v6;
if (!a0)
v4 = 0;
else
v4 = strlen(a0) + 1;
v0 = v4;
if (118 <= v0)
v5 = v0;
else
v5 = 118;
v6 = v5 + 1;
v1 = v6;
v2 = malloc(v1 + 16 & -8);
if (v2) {
... | timezone_t tzalloc(char const *name) {
size_t name_size = name ? strlen(name) + 1 : 0;
size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1;
timezone_t tz = malloc(((__builtin_offsetof(struct tm_zone, abbrs) +
_Alignof(struct tm_zone) - 1 + (abbr_size)) &
... | gnutls | angr_phoenix | 2 |
long *strlist_create(int param_1)
{
long *plVar1;
long lVar2;
int iVar3;
plVar1 = (long *)sh_xmalloc(0x10, "stringlist.c", 0x2e);
if (param_1 == 0) {
*plVar1 = 0;
*(undefined4 *)(plVar1 + 1) = 0;
} else {
lVar2 = strvec_create(param_1 + 1);
*plVar1 = lVar2;
*(int *)(plVar1 + 1) = param... | STRINGLIST *strlist_create(n)
int n;
{
STRINGLIST *ret;
register int i;
ret = (STRINGLIST *)sh_xmalloc((sizeof(STRINGLIST)), "stringlist.c", 46);
if (n) {
ret->list = strvec_create(n + 1);
ret->list_size = n;
for (i = 0; i < n; i++)
ret->list[i] = (char *)((void *)0);
} else {
ret->list... | bash | ghidra | 0 |
void unstifle_history(void)
{
long in_FS_OFFSET;
undefined local_28[24];
undefined8 local_10;
local_10 = *(undefined8 *)(in_FS_OFFSET + 0x28);
history(h, local_28, 1, 0x7fffffff);
} | int unstifle_history(void) {
HistEvent ev;
int omax;
history(h, &ev, 1, 0x7fffffff);
omax = max_input_history;
max_input_history = 0x7fffffff;
return omax;
} | libedit | ghidra | 0 |
undefined8 rl_vi_put(int param_1, uint param_2)
{
ushort **ppuVar1;
int local_c;
ppuVar1 = __ctype_b_loc();
local_c = param_1;
if ((((*ppuVar1)[param_2 & 0xff] & 0x100) == 0) &&
(local_c = param_1, rl_point < rl_end)) {
rl_point = _rl_find_next_mbchar(rl_line_buffer, rl_point, 1, 1);
local_c =... | int rl_vi_put(int count, int key) {
if (!(1 && (1 && ((*__ctype_b_loc())[(int)(((unsigned char)key))] &
(unsigned short int)_ISupper))) &&
(rl_point + 1 <= rl_end))
rl_point = _rl_find_next_mbchar(rl_line_buffer, rl_point, 1, 0x01);
while (count--)
rl_yank(1, key);
rl_backward_... | bash | ghidra | 10 |
int rl_insert_text(char *a0) {
unsigned long v1;
char *v2;
if (!a0 || !*(a0))
v1 = 0;
else
v1 = strlen(a0);
if (!v1) {
*(&v1) = 0;
return v1;
}
if ((v1 + rl_end) >= rl_line_buffer_len)
rl_extend_line_buffer(rl_end + v1);
for (v2 = rl_end; v2 >= rl_point; v2 = v2 - 1) {
v2[rl_lin... | int rl_insert_text(const char *string) {
register int i, l;
l = (string && *string) ? strlen(string) : 0;
if (l == 0)
return 0;
if (rl_end + l >= rl_line_buffer_len)
rl_extend_line_buffer(rl_end + l);
for (i = rl_end; i >= rl_point; i--)
rl_line_buffer[i + l] = rl_line_buffer[i];
strncpy(rl_... | bash | angr_sailr | 11 |
undefined8 e2fsck_pass1_check_device_inode(undefined8 param_1, long param_2)
{
undefined8 uVar1;
int local_c;
if ((*(uint *)(param_2 + 0x20) & 0x81000) == 0) {
if ((*(uint *)(param_2 + 0x20) & 0x30) != 0) {
for (local_c = 4; local_c < 0xf; local_c = local_c + 1) {
if (*(int *)(param_2 + 8 + ((... | int e2fsck_pass1_check_device_inode(ext2_filsys fs __attribute__((unused)),
struct ext2_inode *inode) {
int i;
if (inode->i_flags & (0x00001000 | 0x00080000))
return 0;
if (inode->i_flags & (0x00000010 | 0x00000020)) {
for (i = 4; i < (((12 + 1) + 1) + 1); i++)
i... | e2fsprogs-1.46.5 | ghidra | 5 |
void predlist_init(unsigned long long a0[2]) {
char v0;
unsigned long long v2[2];
unsigned long long v3;
a0[1] = 0;
v2 = a0;
a0[0] = a0[1];
v3 = *(&v0);
return;
} | static void predlist_init(struct predlist *p) {
p->head = p->tail = ((void *)0);
} | findutils | angr_sailr | 0 |
long long begin_output() {
void *v0;
char v1;
char v2;
void *v3;
void *v4;
unsigned long long v5;
unsigned long long v6;
unsigned long v7;
void *v8;
unsigned int v11;
if (!outfile) {
v3 = c_escape(current_name0);
v4 = c_escape(current_name1);
v0 = xasprintf("diff%s %s %s", switch_stri... | void begin_output(void) {
char *names[2];
char *name;
if (outfile != 0)
return;
names[0] = c_escape(current_name0);
names[1] = c_escape(current_name1);
name = xasprintf("diff%s %s %s", switch_string, names[0], names[1]);
if (paginate) {
char const *argv[4];
if (fflush_unlocked(stdout) != ... | diffutils | angr_dream | 36 |
void do_fprintf(undefined8 param_1, uint *param_2, void *param_3,
undefined8 *param_4)
{
uint uVar1;
int iVar2;
size_t sVar3;
int *piVar4;
undefined8 uVar5;
undefined8 uVar6;
long in_FS_OFFSET;
undefined auVar7[16];
undefined8 local_390;
char *local_388;
char *local_380;
void *l... | static void do_fprintf(struct format_val *dest, struct segment *segment,
const char *pathname, const struct stat *stat_buf) {
char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 +
3) +
1];
const char *cp;
switch (segment->segkind) {
case KI... | findutils | ghidra | 128 |
void undo_glob_escape(void *a0) {
unsigned long v0;
int tmp_16;
int tmp_24;
int tmp_35;
int tmp_50;
int tmp_31;
void *v1;
unsigned long long v6;
unsigned long long v7;
v1 = 0;
v0 = v1;
while (true) {
switch (*((v0 + a0))) {
case 0:
v6 = v1 + a0;
*((v1 + a0)) = 0;
retur... | static void undo_glob_escape(char *s) {
size_t i, j;
for (i = j = 0;;) {
if (s[i] == '\0') {
s[j] = '\0';
return;
}
if (s[i] != '\\') {
s[j++] = s[i++];
continue;
}
++i;
switch (s[i]) {
case '?':
case '[':
case '*':
case '\\':
s[j++] = s[i++];
... | openssh-portable | angr_sailr | 29 |
long long funopen_seek(unsigned long long a0[4], unsigned long long *a1,
unsigned long a2) {
unsigned long long v0;
unsigned long long v2;
v0 = *(a1);
if (!a0[3]) {
*(__errno_location()) = 29;
v2 = 4294967295;
} else {
v0 = a0[3](a0[0], v0, a2, v0, a0[3]);
*(a1) = v0;
... | static int funopen_seek(void *cookie, off64_t *offset, int whence) {
struct funopen_cookie *cookiewrap = cookie;
off_t soff = *offset;
if (cookiewrap->seekfn == ((void *)0)) {
(*__errno_location()) = 29;
return -1;
}
soff = cookiewrap->seekfn(cookiewrap->orig_cookie, soff, whence);
*offset = soff... | libbsd-0.11.7 | angr_dream | 5 |
void set_follow_state(uint param_1)
{
if (param_1 == 2) {
_get_stat_birthtime = uRam00000000001003f2;
_get_stat_mtime = optionh_getfilecon;
stderr._4_1_ = 1;
} else if (param_1 < 3) {
if (param_1 == 0) {
_get_stat_birthtime = uRam00000000001003d4;
_get_stat_mtime = optionp_getfilecon;
... | void set_follow_state(enum SymlinkOption opt) {
switch (opt) {
case SYMLINK_ALWAYS_DEREF:
options.xstat = optionl_stat;
options.x_getfilecon = optionl_getfilecon;
options.no_leaf_check = 1;
break;
case SYMLINK_NEVER_DEREF:
options.xstat = optionp_stat;
options.x_getfilecon = optionp_getfi... | findutils | ghidra | 20 |
void emit_mandatory_arg_note(void)
{
char *__s;
FILE *__stream;
__stream = stdout;
__s = (char *)gettext("\nMandatory arguments to long options are mandatory "
"for short options too.\n");
fputs_unlocked(__s, __stream);
return;
} | static inline void emit_mandatory_arg_note(void) {
fputs_unlocked(gettext("\nMandatory arguments to long options are mandatory "
"for short options too.\n"),
stdout)
;
} | coreutils | ghidra | 0 |
long long sh_calloc(unsigned int a0, unsigned long a1, unsigned long long a2,
unsigned long a3) {
return internal_calloc(a0, a1, a2, a3, 0x1);
} | void *sh_calloc(n, s, file, line)
size_t n, s;
const char *file;
int line;
{
return internal_calloc(n, s, file, line, 0x01);
} | bash | angr_phoenix | 0 |
void strvec_mcreate(int param_1)
{
sh_malloc((long)param_1 << 3, "stringvec.c", 0x30);
return;
} | char **strvec_mcreate(n)
int n;
{
return ((char **)sh_malloc(((n) * sizeof(char *)), "stringvec.c", 48));
} | bash | ghidra | 0 |
long strvisx(char *a1, const char *a2, unsigned long a3, int a4) {
char *v5;
v5 = a1;
return istrsenvisx(&v5, 0LL, a2, a3, a4, (char *)&unk_18E8, 0LL);
} | int strvisx(char *mbdst, const char *mbsrc, size_t len, int flags) {
return istrsenvisx(&mbdst, ((void *)0), mbsrc, len, flags, "", ((void *)0));
} | libedit | ida | 0 |
undefined8 lf_snarf(long param_1, void *param_2, ulong param_3)
{
void *__s;
void *pvVar1;
size_t __n;
long lVar2;
ulong local_40;
void *local_38;
local_40 = param_3;
local_38 = param_2;
while (true) {
__s = *(void **)(param_1 + 8);
pvVar1 = rawmemchr(__s, 10);
__n = (long)pvVar1 - (long... | static int lf_snarf(struct line_filter *lf, char *buffer, size_t bufsize) {
for (;;) {
char *start = lf->bufpos;
char *next = rawmemchr(start, '\n');
size_t s = next - start;
if (bufsize <= s)
return 0;
memcpy(buffer, start, s);
if (next < lf->buflim) {
buffer[s] = 0;
lf->buf... | diffutils | ghidra | 8 |
int crypto_sign_ed25519_ref_fe25519_setone(_DWORD *a1) {
int result;
int i;
result = (int)a1;
*a1 = 1;
for (i = 1; i <= 31; ++i) {
a1[i] = 0;
result = i + 1;
}
return result;
} | void crypto_sign_ed25519_ref_fe25519_setone(
crypto_sign_ed25519_ref_fe25519 *r) {
int i;
r->v[0] = 1;
for (i = 1; i < 32; i++)
r->v[i] = 0;
} | openssh-portable | ida | 3 |
undefined8 cron_change_groups(char **param_1)
{
__pid_t _Var1;
int iVar2;
int *piVar3;
undefined8 uVar4;
_Var1 = getpid();
iVar2 = setgid(*(__gid_t *)((long)param_1 + 0x14));
if (iVar2 == 0) {
iVar2 = initgroups(*param_1, *(__gid_t *)((long)param_1 + 0x14));
if (iVar2 == 0) {
uVar4 = 0;
... | int cron_change_groups(struct passwd *pw) {
pid_t pid = getpid();
if (setgid(pw->pw_gid) != 0) {
log_it("CRON", pid, "ERROR", "setgid failed", (*__errno_location()));
return -1;
}
if (initgroups(pw->pw_name, pw->pw_gid) != 0) {
log_it("CRON", pid, "ERROR", "initgroups failed", (*__errno_location()... | cronie | ghidra | 7 |
long new_fields() {
char *v0;
char *v1;
char *v3;
char *v4;
char *v5;
char *v6;
char *v7;
char s[200];
unsigned long v9;
v9 = __readfsqword(0x28u);
v0 = gettext("Enter the new value, or press ENTER for the default");
puts(v0);
puts(&byte_4394);
snprintf(s, 0xC8uLL, "%ld", mindays);
v1 = g... | static int new_fields(void) {
char buf[200];
(void)puts(gettext("Enter the new value, or press ENTER for the default"));
(void)puts("");
(void)snprintf(buf, sizeof buf, "%ld", mindays);
change_field(buf, sizeof buf, gettext("Minimum Password Age"));
if ((getlong(buf, &mindays) == 0) || (mindays < -1)) {
... | shadow | ida | 0 |
long long e2fsck_rehash_directories(struct_0 *a0) {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
char v5;
void *v6;
unsigned long v7;
unsigned int *v8;
char v9;
unsigned long v10;
unsigned int v11;
v6 = 0;
v3 = 1;
init_resource_track(&v9, a0->field_... | void e2fsck_rehash_directories(e2fsck_t ctx) {
struct problem_context pctx;
struct resource_track rtrack;
struct dir_info *dir;
ext2_u32_iterate iter;
struct dir_info_iter *dirinfo_iter = 0;
ext2_ino_t ino;
errcode_t retval;
int cur, max, all_dirs, first = 1;
init_resource_track(&rtrack, ctx->fs->i... | e2fsprogs-1.46.5 | angr_phoenix | 17 |
long mm_answer_sign(long a1, unsigned int a2, long a3) {
long v3;
long v4;
long v5;
size_t v6;
const void *v7;
long v8;
long v9;
long v10;
const char *v11;
long v12;
unsigned int v15;
unsigned int v16;
unsigned int u32;
int v18;
void *s1;
void *v20;
void *ptr;
size_t v22;
size_t v2... | int mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m) {
struct sshkey *key;
struct sshbuf *sigbuf = ((void *)0);
u_char *p = ((void *)0), *signature = ((void *)0);
char *alg = ((void *)0);
size_t datlen, siglen, alglen;
int r, is_proof = 0;
u_int keyid, compat;
const char proof_req[] = "hostke... | openssh-portable | ida | 15 |
long long acl_size(unsigned long long a0) {
struct_0 *v0;
unsigned long long v2;
v0 = __ext2int_and_check(a0, 0x712c);
if (!v0)
v2 = -1;
else
v2 = v0->field_30 * 40 + 8;
return v2;
} | ssize_t acl_size(acl_t acl) {
acl_obj *acl_obj_p = ((acl_obj *)__ext2int_and_check(acl, (0x712C)));
if (!acl_obj_p)
return -1;
return sizeof(struct __acl) +
acl_obj_p->i.a_used * sizeof(struct __acl_entry);
} | acl-2.3.1 | angr_phoenix | 5 |
void specify_nmerge(unsigned long a0, unsigned long a1, unsigned long long a2) {
unsigned int v0;
unsigned int v1;
char v2;
char v3;
char v4;
char v5;
unsigned int v7;
unsigned long long *v8;
unsigned long long v9;
unsigned long long v10;
unsigned long long v11;
unsigned long long v12;
unsigne... | static void specify_nmerge(int oi, char c, char const *s) {
uintmax_t n;
struct rlimit rlimit;
enum strtol_error e = xstrtoumax(s, ((void *)0), 10, &n, "");
unsigned int max_nmerge =
((getrlimit(RLIMIT_NOFILE, &rlimit) == 0 ? rlimit.rlim_cur : 20) - 3);
if (e == LONGINT_OK) {
nmerge = n;
if (n... | coreutils | angr_phoenix | 61 |
long append_ino_and_policy_id(_QWORD *a1, long a2, unsigned int a3,
unsigned int a4) {
long v5;
long v6;
unsigned long v9;
long *v10;
long v11;
_DWORD *v12;
v10 = (long *)a1[74];
if (v10[1]) {
v11 = *v10 + 12 * v10[1] - 12;
if (a3 <= *(_DWORD *)(v11 + 4))
fat... | static int append_ino_and_policy_id(e2fsck_t ctx, struct problem_context *pctx,
ext2_ino_t ino, __u32 policy_id) {
struct encrypted_file_info *info = ctx->encrypted_files;
struct encrypted_file_range *range;
if (info->file_ranges_count > 0) {
range = &info->file_ranges[inf... | e2fsprogs-1.46.5 | ida | 0 |
int fill_words(unsigned long a0, unsigned long long *a1, unsigned int *a2) {
unsigned int *v0;
unsigned int v1;
unsigned int v2;
char *v3;
v0 = a2;
v3 = a0;
v1 = 0;
v2 = 0;
*(a2) = 0;
a1[*(a2)] = v3;
while (true) {
if (!*(v3))
break;
if (*(v3) == 10 && !v1)
break;
if (v1) ... | static char *fill_words(char *c, char *words[], int *n) {
char *sl = c;
int slash = 0;
int skipspace = 0;
*n = 0;
words[*n] = sl;
while (*sl && (*sl != '\n' || slash)) {
if (!slash) {
if (*sl == '"') {
*sl = '\a';
skipspace = !skipspace;
} else if (*sl == '\a') {
sk... | bash | angr_phoenix | 11 |
int host_from_url(char *a0, unsigned int *a1, unsigned long long *a2) {
char *v0;
unsigned int v2;
*(a1) = 0;
*(a2) = &g_407819;
v0 = strstr(a0, "http:
if (!v0) {
v2 = a0;
return v2;
}
snprintf(&buffer.13592, 0x200, "%s", (v0 + 7));
v0 = strchr(&buffer.13592, 0x2f);
if (v0) {
... | static const char *host_from_url(const char *url, unsigned int *port,
const char **path) {
static char buffer[512];
char *p;
*port = 0;
*path = "";
if ((p = strstr(url, "http:
((void *)0)
) {
snpr... | gnutls | angr_sailr | 16 |
int main(int argc, const char **argv, const char **envp) {
long v3;
char *v4;
char *v5;
bool v6;
long v7;
char *v8;
int *v9;
long v10;
long v11;
long tm_sec;
long tm_min;
long tm_hour;
long tm_mday;
const char *v16;
char *v17;
char *v18;
long v20;
unsigned int v21;
bool v22;
bool... | int main(int argc, char **argv) {
int c;
_Bool date_set = 0;
_Bool ok = 1;
char const *flex_date = ((void *)0);
;
set_program_name(argv[0]);
setlocale(6, "");
bindtextdomain("coreutils", "/usr/local/share/locale");
textdomain("coreutils");
atexit(close_stdout);
change_times = 0;
no_create =... | coreutils | ida | 71 |
void print_with_separator(char param_1)
{
undefined8 uVar1;
long lVar2;
char local_29;
ulong local_28;
ulong local_20;
local_20 = 0;
for (local_28 = 0; local_28 < cwd_n_used; local_28 = local_28 + 1) {
uVar1 = *(undefined8 *)(sorted_file + local_28 * 8);
if (line_length == 0) {
lVar2 = 0;
... | static void print_with_separator(char sep) {
size_t filesno;
size_t pos = 0;
for (filesno = 0; filesno < cwd_n_used; filesno++) {
struct fileinfo const *f = sorted_file[filesno];
size_t len = line_length ? length_of_file_name_and_frills(f) : 0;
if (filesno != 0) {
char separator;
if (!l... | coreutils | ghidra | 3 |
void fail_exit(int a1) {
long v1;
long v2;
char *v3;
const char *v4;
long v5;
long v6;
char *v7;
const char *v8;
char *locale;
char *v10;
const char *s;
const char *v12;
if (spw_locked) {
if (!(unsigned int)spw_unlock()) {
v1 = spw_dbname();
v2 = Prog;
v3 = gettext("%s: ... | _Bool
*changed);
static void fail_exit(int code) {
if (spw_locked) {
if (spw_unlock() == 0) {
... | shadow | ida | 8 |
long long millerrabin2(unsigned long long a0[2], unsigned int a1, void *a2,
void *a3, unsigned long a4, unsigned long long a5[2]) {
unsigned int v0;
char v1;
unsigned long long v2;
unsigned int v3;
unsigned long v4;
unsigned long v5;
unsigned long long v7;
*(&v3) = powm2(&v1, a2,... | _Bool
millerrabin2 (const uintmax_t *np, uintmax_t ni, const uintmax_t *bp,
const uintmax_t *qp, unsigned int k, const uintmax_t *one)
{
uintmax_t y1, y0, nm1_1, nm1_0, r1m;
y0 = powm2(&r1m, bp, qp, np, ni, one);
y1 = r1m;
if (y0 == one[0] && y1 == one[1])
return 1;
__asm__("subq %5,%q1\... | coreutils | angr_sailr | 5 |
const char *parse_collsym(long a1, _DWORD *a2) {
int i;
const char *v4;
int v5;
v4 = (const char *)(a1 + 1);
for (i = 0; v4[i] && (v4[i] != 46 || v4[i + 1] != 93); ++i)
;
if (v4[i]) {
v5 = collsym(v4, i);
if (a2)
*a2 = v5;
return &v4[i + 2];
} else {
if (a2)
*a2 = -1;
... | static unsigned char *parse_collsym(p, vp)
unsigned char *p;
int *vp;
{
register int pc;
int val;
p++;
for (pc = 0; p[pc]; pc++)
if (p[pc] == '.' && p[pc + 1] == ']')
break;
if (p[pc] == 0) {
if (vp)
*vp = -1;
return (p + pc);
}
val = collsym(p, pc);
if (vp)
*vp = val;
re... | bash | ida | 5 |
const char *sshkey_curve_nid_to_name(int a1) {
if (a1 == 716)
return "nistp521";
if (a1 > 716)
return 0LL;
if (a1 == 415)
return "nistp256";
if (a1 == 715)
return "nistp384";
else
return 0LL;
} | const char *sshkey_curve_nid_to_name(int nid) {
switch (nid) {
case 415:
return "nistp256";
case 715:
return "nistp384";
case 716:
return "nistp521";
default:
return ((void *)0);
}
} | openssh-portable | ida | 16 |
void print_rx_sc(unsigned long long a0, unsigned long long a1,
unsigned long long a2, unsigned long a3, unsigned short *a4,
unsigned long long a5) {
char v0;
unsigned int v1;
unsigned short *v2;
char v3;
char v4;
char v5;
char v6;
char v7;
char v8;
char v9;
unsign... | static void print_rx_sc(const char *prefix, __be64 sci, __u8 active,
struct rtattr *rxsc_stats, struct rtattr *sa) {
struct rtattr *sa_attr[MACSEC_SA_ATTR_MAX + 1];
struct rtattr *a;
int rem;
print_string(PRINT_FP, ((void *)0), "%s", prefix);
print_0xhex(PRINT_ANY, "sci", "RXSC: %016l... | iproute2-6.0.0 | angr_dream | 31 |
int name_cmp(char *name, char *cmp)
{
uint uVar1;
uint uVar2;
uint local_28;
int local_24;
uVar1 = ext2fs_dirent_name_len(*(undefined8 *)(name + 0x10));
uVar2 = ext2fs_dirent_name_len(*(undefined8 *)(cmp + 0x10));
local_28 = uVar1;
if (uVar2 < uVar1) {
local_28 = uVar2;
}
local_24 = memcmp((vo... | static int name_cmp(const void *a, const void *b) {
const struct hash_entry *he_a = (const struct hash_entry *)a;
const struct hash_entry *he_b = (const struct hash_entry *)b;
unsigned int he_a_len, he_b_len, min_len;
int ret;
he_a_len = ext2fs_dirent_name_len(he_a->dir);
he_b_len = ext2fs_dirent_name_len(... | e2fsprogs-1.46.5 | ghidra | 0 |
int glue_prefix_and_suffix(char *a0, unsigned long a1, unsigned long a2) {
unsigned int v0;
unsigned int v1;
char *v2;
unsigned int v4;
if (a0 && *(a0))
v4 = strlen(a0);
if (!a0 || !*(a0))
v4 = 0;
v0 = v4;
v1 = strlen(a1 + a2);
v2 = sh_xmalloc(v1 + v0 + 1, "tilde.c", 0x145);
if (v0)
str... | static char *glue_prefix_and_suffix(char *prefix, const char *suffix,
int suffind) {
char *ret;
int plen, slen;
plen = (prefix && *prefix) ? strlen(prefix) : 0;
slen = strlen(suffix + suffind);
ret = (char *)sh_xmalloc((plen + slen + 1), "tilde.c", 325);
if (plen)
st... | bash | angr_dream | 16 |
long strvec_resize(long a1, int a2) {
return sh_xrealloc(a1, 8LL * a2, "stringvec.c", 56LL);
} | char **strvec_resize(array, nsize)
char **array;
int nsize;
{
return ((char **)sh_xrealloc((array), (nsize * sizeof(char *)), "stringvec.c",
56));
} | bash | ida | 0 |
void print_af_spec(unsigned long a0, unsigned short *a1) {
unsigned long v0;
char v1;
unsigned short *v2;
char v3;
char v4;
char v5;
char v6;
unsigned long long *v8;
unsigned long long v9;
v0 = a0;
v2 = parse_rtattr_one(0xa, a1 + 2, *(a1)-4);
if (v2) {
parse_rtattr_flags(&v3, 0x9, v2 + 2, *... | static void print_af_spec(FILE *fp, struct rtattr *af_spec_attr) {
struct rtattr *inet6_attr;
struct rtattr *tb[(__IFLA_INET6_MAX - 1) + 1];
inet6_attr = (parse_rtattr_one(
10,
((void *)(((char *)(af_spec_attr)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0)))),
((int... | iproute2-6.0.0 | angr_phoenix | 37 |
long long it_init_setopts(struct_0 *a0, unsigned long long a1,
unsigned long long a2, unsigned long long a3,
unsigned long long a4, unsigned long long a5) {
char v0;
struct_1 *v1;
v1 = strlist_create(0x0);
v1->field_0 = get_minus_o_opts(0x0, a1, a2, a3, a4, a... | static int it_init_setopts(itp)
ITEMLIST *itp;
{
STRINGLIST *sl;
sl = strlist_create(0);
sl->list = get_minus_o_opts();
sl->list_len = strvec_len(sl->list);
itp->slist = sl;
itp->flags |= 0x020;
return 0;
} | bash | angr_dream | 0 |
int tm_diff(unsigned long a0, unsigned int a1, unsigned long a2,
unsigned long a3, unsigned long a4, unsigned int a5[8]) {
return ydhms_diff(a0, a1, a2, a3, a4, a5[5], a5[7], a5[2], a5[1], a5[0]);
} | static long_int tm_diff(long_int year, long_int yday, int hour, int min,
int sec, struct tm const *tp) {
return ydhms_diff(year, yday, hour, min, sec, tp->tm_year, tp->tm_yday,
tp->tm_hour, tp->tm_min, tp->tm_sec);
} | gnutls | angr_dream | 0 |
long long restore_handler(unsigned long a0, struct_0 *a1, unsigned int *a2) {
unsigned long v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned long v4;
char v5;
char v6;
char v7;
char v8;
void *v10;
v0 = a0;
v4 = a1 + 2;
v2 = a1->field_0 - 28;
v3 = *(a2);
parse_rtattr(&v5, 0x... | static int restore_handler(struct rtnl_ctrl_data *ctrl, struct nlmsghdr *n,
void *arg) {
struct rtmsg *r =
((void *)(((char *)n) +
((int)(((sizeof(struct nlmsghdr)) + 4U - 1) & ~(4U - 1)))));
struct rtattr *tb[(__RTA_MAX - 1) + 1];
int len = n->nlmsg_len -
... | iproute2-6.0.0 | angr_phoenix | 14 |
long vfmprintf(FILE *a1, const char *a2, void *a3) {
int v4;
void *ptr[2];
ptr[1] = (void *)__readfsqword(0x28u);
ptr[0] = 0LL;
v4 = vasnmprintf((char **)ptr, 0x7FFFFFFFuLL, 0LL, a2, a3);
if (v4 >= 0) {
if (fputs((const char *)ptr[0], a1) == -1)
v4 = -1;
free(ptr[0]);
return (unsigned int... | int vfmprintf(FILE *stream, const char *fmt, va_list ap) {
char *str = ((void *)0);
int ret;
if ((ret = vasnmprintf(&str, 0x7fffffff, ((void *)0), fmt, ap)) < 0) {
free(str);
return -1;
}
if (fputs(str, stream) == (-1))
ret = -1;
free(str);
return ret;
} | openssh-portable | ida | 0 |
void *findstring(long a1, const void *a2, size_t a3) {
long key;
key = a1;
return bsearch(&key, a2, a3, 8uLL, (__compar_fn_t)pstrcmp);
} | const char *const *findstring(const char *s, const char *const *array,
size_t nmemb) {
return bsearch(&s, array, nmemb, sizeof(const char *), pstrcmp);
} | dash-0.5.11+git20210903+057cd650a4ed | ida | 0 |
char *internal_malloc(ulong param_1, undefined8 param_2, undefined4 param_3)
{
long lVar1;
int iVar2;
uint uVar3;
char *pcVar4;
undefined8 uVar5;
char *pcVar6;
char *pcVar7;
long lVar8;
ulong uVar9;
long in_FS_OFFSET;
ulong local_40;
char local_34;
char cStack51;
char cStack50;
char cStac... | static void *internal_malloc(n, file, line, flags)
size_t n;
const char *file;
int line, flags;
{
register union mhead *p;
register int nunits;
register char *m, *z;
unsigned int nbytes;
mguard_t mg;
if (pagesz == 0)
if (pagealign() < 0)
return ((void *)((void *)0));
if ((((n) + sizeof(union m... | bash | ghidra | 41 |
void print_parenthesised(FILE *param_1, code **param_2)
{
bool bVar1;
bVar1 = false;
if (param_2 != (code **)0x0) {
if (((*param_2 == pred_or) || (*param_2 == pred_and)) &&
(param_2[0x22] == (code *)0x0)) {
print_parenthesised(param_1, param_2[0x23]);
} else {
if ((param_2[0x22] != (... | static void print_parenthesised(FILE *fp, struct predicate *node) {
int parens = 0;
if (node) {
if (((((node)->pred_func) == (pred_or)) ||
(((node)->pred_func) == (pred_and))) &&
node->pred_left == ((void *)0)) {
print_parenthesised(fp, node->pred_right);
} else {
if (node->pr... | findutils | ghidra | 9 |
int optloc_eq(struct_0 *a0, struct_0 *a1) {
return (a0->field_0 == a1->field_0
? 0
: (a0->field_0 == 1 ? !strcmp(a0->field_8, a1->field_8) : 1));
} | static int optloc_eq(struct option_locus *a, struct option_locus *b) {
if (a->source != b->source)
return 0;
if (a->source == OPTS_COMMAND_LINE)
return 1;
return strcmp(a->name, b->name) == 0;
} | tar | angr_sailr | 8 |
long long xdp_dump(void *a0, unsigned short *a1, unsigned int a2,
unsigned long long a3, unsigned long a4,
unsigned long long a5) {
char v0;
char v1;
char v2;
parse_rtattr_flags(&v1, 0x8, a1 + 2, *(a1)-4, 0x8000);
if (!*(&v2))
return 0;
v0 = rta_getattr_u8(*(&v2));... | void xdp_dump(FILE *fp, struct rtattr *xdp, _Bool link, _Bool details) {
struct rtattr *tb[(__IFLA_XDP_MAX - 1) + 1];
__u8 mode;
(parse_rtattr_flags(
(tb), ((__IFLA_XDP_MAX - 1)),
((void *)(((char *)(xdp)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0)))),
((int)((xdp... | iproute2-6.0.0 | angr_sailr | 8 |
void get_point(char *a0, unsigned long long *a1) {
struct_0 *v0;
void *v1;
void *v2;
char *v3;
unsigned long v4;
char *v5;
void *v6;
char v7;
char v8;
unsigned long long v13;
unsigned long long v14;
unsigned long long v16;
unsigned long long *v17;
unsigned long long v18;
v1 = 0;
v3 = ca... | static void get_point(char const *point, const struct stat *statp) {
struct stat device_stats;
struct mount_entry *me;
struct mount_entry const *best_match = ((void *)0);
char *resolved = canonicalize_file_name(point);
if (resolved && resolved[0] == '/') {
size_t resolved_len = strlen(resolved);
size... | coreutils | angr_dream | 11 |
int set_default_locale() {
const char *v0;
size_t v1;
char *v2;
int result;
default_locale = setlocale(6, &locale);
if (default_locale) {
v0 = default_locale;
v1 = strlen(default_locale);
v2 = (char *)sh_xmalloc(v1 + 1, "locale.c", 84LL);
default_locale = strcpy(v2, v0);
}
bindtextdomai... | void set_default_locale() {
default_locale = setlocale(6, "");
if (default_locale)
default_locale =
(char *)strcpy(sh_xmalloc((1 + strlen(default_locale)), "locale.c", 84),
(default_locale));
bindtextdomain("bash", "/usr/local/share/locale");
textdomain("bash");
locale_mb... | bash | ida | 0 |
int size_to_quota_blocks(unsigned int a0[49], unsigned long a1) {
unsigned long v0;
v0 = (0 CONCAT a1 + (a0[10] << (a0[48] & 31)) - 1) /
m(a0[10] << (a0[48] & 31));
return v0 << (a0[48] & 63);
} | static blk64_t size_to_quota_blocks(ext2_filsys fs, size_t size) {
blk64_t clusters;
clusters = (((size) + (fs->blocksize << fs->cluster_ratio_bits) - 1) /
(fs->blocksize << fs->cluster_ratio_bits));
return ((clusters) << (fs)->cluster_ratio_bits);
} | e2fsprogs-1.46.5 | angr_dream | 0 |
undefined8 output_deps_bin(long *param_1, long param_2)
{
int iVar1;
undefined8 uVar2;
size_t sVar3;
char *__s;
long in_FS_OFFSET;
ulong local_80;
ulong local_78;
ulong local_70;
long local_68;
long local_60;
long local_58;
long local_50;
char *local_48;
void *local_40;
void *local_38;
... | static int output_deps_bin(struct depmod *depmod, FILE *out) {
struct index_node *idx;
size_t i;
if (out == stdout)
return 0;
idx = index_create();
if (idx == ((void *)0))
return -12;
for (i = 0; i < depmod->modules.count; i++) {
const struct mod **deps, *mod = depmod->modules.array[i];
c... | kmod | ghidra | 15 |
long long ttnoecho() {
unsigned long v0;
unsigned long v1;
unsigned long v2;
unsigned long v3;
unsigned long v4;
unsigned long v5;
unsigned long v6;
unsigned int v7;
unsigned long long v9;
if (!ttsaved) {
v9 = 4294967295;
} else {
v0 = ttin;
v1 = g_400748;
v2 = g_400750;
v3 = ... | int ttnoecho() {
struct termios tt;
if (ttsaved == 0)
return -1;
tt = ttin;
return (ttfd_noecho(0, &tt));
} | bash | angr_dream | 5 |
long long ipstats_stat_desc_pack_xstats(unsigned int *a0, struct_0 *a1) {
return ipstats_stat_desc_enable_bit(a0, a1->field_20, 0x0);
} | void ipstats_stat_desc_pack_xstats(struct ipstats_stat_dump_filters *filters,
const struct ipstats_stat_desc *desc) {
struct ipstats_stat_desc_xstats *xdesc;
xdesc = ({
const typeof(((struct ipstats_stat_desc_xstats *)0)->desc) *__mptr = (desc);
(struct ipstats_stat_desc_... | iproute2-6.0.0 | angr_dream | 10 |
void load_hostkeys_file(unsigned long a0, unsigned long long a1,
unsigned int a2, void *a3, unsigned long a4) {
unsigned long long v0;
void *v1;
unsigned int v2;
unsigned long v3;
void *v4;
unsigned long v5;
char v6;
unsigned long long *v9;
unsigned long long v10;
v3 = a1;
... | void load_hostkeys_file(struct hostkeys *hostkeys, const char *host,
const char *path, FILE *f, u_int note) {
int r;
struct load_callback_ctx ctx;
ctx.host = host;
ctx.num_loaded = 0;
ctx.hostkeys = hostkeys;
if ((r = hostkeys_foreach_file(path, f, record_hostkey, &ctx, host,
... | openssh-portable | angr_phoenix | 10 |
long long channel_post_port_listener(void *a0, struct_0 *a1) {
unsigned long v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned long long v4;
struct_1 *v5;
char v6;
if ((a1->field_30 & 16)) {
v0 = a1->field_98;
sshlog("channels.c", "channel_post_port_listener", 0x6fd, 0x0, 0x5, 0x0... | static void channel_post_port_listener(struct ssh *ssh, Channel *c) {
Channel *nc;
struct sockaddr_storage addr;
int newsock, nextstate;
socklen_t addrlen;
char *rtype;
if ((c->io_ready & 0x10) == 0)
return;
sshlog("channels.c", __func__, 1789, 0, SYSLOG_LEVEL_DEBUG1, ((void *)0),
"Connecti... | openssh-portable | angr_phoenix | 12 |
long process_load_resident(long a1) {
const char *v1;
long v2;
long v3;
long v4;
long v5;
long v6;
const char *v7;
long v8;
long v9;
const char *v10;
const char *v11;
const char *v12;
long v13;
const char *v14;
long v15;
size_t v16;
unsigned int v18;
unsigned int cstring;
void *ptr... | static struct sshbuf *process_load_resident(struct sshbuf *req) {
int r;
char *provider, *pin, *device;
struct sshbuf *kbuf, *resp;
struct sshsk_resident_key **srks = ((void *)0);
size_t nsrks = 0, i;
u_int flags;
if ((kbuf = sshbuf_new()) == ((void *)0))
sshfatal("ssh-sk-helper.c", __func__, 224, 0,... | openssh-portable | ida | 10 |
void closeout_volume_number() {
void *v0;
unsigned long long v2;
unsigned long long v4;
v0 = fopen(volno_file_option, "w");
if (!v0) {
v2 = open_error(volno_file_option);
return;
}
fprintf(v0, "%d\n", global_volno);
if (ferror_unlocked(v0))
write_error(volno_file_option);
if (fclose(v0)) ... | void closeout_volume_number(void) {
FILE *file = fopen(volno_file_option, "w");
if (file) {
fprintf(file, "%d\n", global_volno);
if (ferror_unlocked(file))
write_error(volno_file_option);
if (fclose(file) != 0)
close_error(volno_file_option);
} else
open_error(volno_file_option);
} | tar | angr_sailr | 3 |
void enqueue_package(long param_1)
{
ensure_package_clientdata(param_1);
if (*(char *)(*(long *)(param_1 + 0x138) + 8) == '\0') {
*(undefined *)(*(long *)(param_1 + 0x138) + 8) = 1;
pkg_queue_push(queue, param_1);
}
return;
} | void enqueue_package(struct pkginfo *pkg) {
ensure_package_clientdata(pkg);
if (pkg->clientdata->enqueued)
return;
pkg->clientdata->enqueued = 1;
pkg_queue_push(&queue, pkg);
} | dpkg | ghidra | 6 |
void gz_compress(void *a0, unsigned long long a1) {
char v0;
unsigned int v1;
char v2;
char v3;
unsigned long long v4;
unsigned long long v5;
unsigned long long *v7;
unsigned long long v11;
do {
v4 = v4;
} while (&v4 != &v3);
v5 = v7[5];
while (true) {
v1 = fread(&v2, 0x1, 0x4000, a0);
... | void gz_compress(in, out) FILE *in;
gzFile out;
{
char buf[16384];
int len;
int err;
for (;;) {
len = (int)fread(buf, 1, sizeof(buf), in);
if (ferror(in)) {
perror("fread");
exit(1);
}
if (len == 0)
break;
if (gzwrite(out, buf, (unsigned)len) != len)
error(gzerror(o... | zlib | angr_dream | 31 |
long ssh_agent_sign(unsigned int a1, unsigned int *a2, _QWORD *a3, _QWORD *a4,
long a5, unsigned long a6, const char *a7) {
char v12;
unsigned int u8;
unsigned int v14;
long v15;
long v16;
long v17;
unsigned long v18;
v18 = __readfsqword(0x28u);
v15 = 0LL;
v12 = 0;
v16 = 0LL;
... | int ssh_agent_sign(int sock, const struct sshkey *key, u_char **sigp,
size_t *lenp, const u_char *data, size_t datalen,
const char *alg, u_int compat) {
struct sshbuf *msg;
u_char *sig = ((void *)0), type = 0;
size_t len = 0;
u_int flags = 0;
int r = -1;
*sigp = ((void... | openssh-portable | ida | 15 |
long long buffer_uptodate(struct_0 *a0) { return (a0->field_18 >> 1) & 1; } | int buffer_uptodate(struct buffer_head *bh) { return bh->b_uptodate; } | e2fsprogs-1.46.5 | angr_phoenix | 0 |
void setup_ignore_patterns(struct_0 *a0) {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned long long *v3;
char *v4;
char *v5;
char v6;
unsigned long long *v9;
unsigned long long v10;
v4 = get_string_value(a0->field_0);
if (!v4 && a0->field_18 || !a0->field_18 && v4 ||
strcmp(v4,... | void setup_ignore_patterns(ivp) struct ignorevar *ivp;
{
int numitems, maxitems, ptr;
char *colon_bit, *this_ignoreval;
struct ign *p;
this_ignoreval = get_string_value(ivp->varname);
if ((this_ignoreval && ivp->last_ignoreval &&
((this_ignoreval)[0] == (ivp->last_ignoreval)[0] &&
strcmp(this... | bash | angr_dream | 14 |
int match_principals_command(struct_1 *a0, struct_0 *a1,
unsigned long long *a2) {
char v0;
char v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
unsigned int v5;
unsigned int v6;
unsigned int v7;
unsigned int v8;
void *v9;
void *v10;
void *v11;
void *v12;
... | static int match_principals_command(struct passwd *user_pw,
const struct sshkey *key,
struct sshauthopt **authoptsp) {
struct passwd *runas_pw = ((void *)0);
const struct sshkey_cert *cert = key->cert;
FILE *f = ((void *)0);
int r, ok, foun... | openssh-portable | angr_dream | 7 |
int start_header(struct_0 *a0) {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
void *v4;
void *v5;
void *v6;
struct_1 *v7;
void *v8;
void *v9;
unsigned long v10;
unsigned int v12;
char v13;
char v14;
char v15;
v4 = 0;
v5 = 0;
v7 = write_header_name(a0);
if (!... | union block *start_header(struct tar_stat_info *st) {
union block *header;
char const *uname = ((void *)0);
char const *gname = ((void *)0);
header = write_header_name(st);
if (!header)
return ((void *)0);
owner_map_translate(st->stat.st_uid, &st->stat.st_uid, &uname);
group_map_translate(st->stat.s... | tar | angr_dream | 1,578 |
undefined4 e2fsck_get_num_dirinfo(long param_1)
{
undefined4 uVar1;
if (*(long *)(param_1 + 0x230) == 0) {
uVar1 = 0;
} else {
uVar1 = **(undefined4 **)(param_1 + 0x230);
}
return uVar1;
} | int e2fsck_get_num_dirinfo(e2fsck_t ctx) {
return ctx->dir_info ? ctx->dir_info->count : 0;
} | e2fsprogs-1.46.5 | ghidra | 3 |
unsigned long tcinit(long a1) {
int *v1;
unsigned int v2;
int v4;
speed_t speed;
speed_t v6;
int v7;
int fd;
int v9;
struct termios *termios_p;
short v11;
short v12;
unsigned long v13;
v13 = __readfsqword(0x28u);
termios_p = (struct termios *)(a1 + 36);
fd = *(_DWORD *)(a1 + 20);
v1 = _... | static void tcinit(struct console *con) {
int serial, flags;
struct termios *tio = &con->tio;
int fd = con->fd;
serial = (*__errno_location()) = 0;
if (tcgetattr(fd, tio) < 0) {
con->flags |= 0x0002;
return;
}
if (ioctl(fd, 0x5415, (char *)&serial) == 0) {
speed_t ispeed, ospeed;
struct... | sysvinit | ida | 7 |
void oldgnu_store_sparse_info(struct_1 *a0, unsigned long long *a1,
unsigned long long a2, unsigned long a3) {
unsigned long v0;
unsigned long long v1;
unsigned long long *v2;
unsigned long long v4;
v2 = a1;
v1 = a2;
v0 = a3;
while (true) {
v4 = a0->field_18->field_130... | static void oldgnu_store_sparse_info(struct tar_sparse_file *file,
size_t *pindex, struct sparse *sp,
size_t sparse_size) {
for (; *pindex < file->stat_info->sparse_map_avail && sparse_size > 0;
sparse_size--, sp++, ++*pindex) {
off_... | tar | angr_dream | 7 |
uint process_file(long param_1, long param_2)
{
char *__s1;
char cVar1;
int iVar2;
uint uVar3;
uint uVar4;
undefined8 uVar5;
undefined8 uVar6;
undefined8 uVar7;
int *piVar8;
long in_FS_OFFSET;
uint local_54;
uint uStack80;
uint local_4c;
undefined local_48;
undefined auStack71[9];
undef... | static _Bool
process_file(FTS *fts, FTSENT *ent) {
char const *file_full_name = ent->fts_path;
char const *file = ent->fts_accpath;
const struct stat *file_stats = ent->fts_statp;
struct change_status ch = {
0,
};
ch.status = CH_NO_STAT;
switch (ent->fts_info) {
case 6:
return 1;
case 10:... | coreutils | ghidra | 25 |
long long crypto_sign_ed25519_ref_shortsc25519_from16bytes(unsigned int *a0,
char *a1) {
unsigned int v0;
for (v0 = 0; v0 <= 15; v0 = __addvsi3(v0, 0x1, v0)) {
a0[v0] = a1[v0];
}
return v0;
} | void crypto_sign_ed25519_ref_shortsc25519_from16bytes(
crypto_sign_ed25519_ref_shortsc25519 *r, const unsigned char x[16]) {
int i;
for (i = 0; i < 16; i++)
r->v[i] = x[i];
} | openssh-portable | angr_sailr | 3 |
long pkcs11_fetch_x509_pubkey(long a1, long a2, _QWORD *a3, _QWORD *a4,
void **a5) {
long v6;
long v7;
int i;
int j;
int v13;
long v14;
long v15;
long v16;
long v17;
long v18;
void *ptr;
long v20;
long v21;
long v22;
long v23;
long pubkey;
long s[10];
s... | static int pkcs11_fetch_x509_pubkey(struct pkcs11_provider *p, CK_ULONG slotidx,
CK_OBJECT_HANDLE *obj, struct sshkey **keyp,
char **labelp) {
CK_ATTRIBUTE cert_attr[3];
CK_SESSION_HANDLE session;
CK_FUNCTION_LIST *f = ((void *)0);
CK_RV rv... | openssh-portable | ida | 0 |
char *make_link_name(const char *a1, const char *a2) {
size_t v3;
char *v4;
long n;
char *dest;
if (!a2)
return 0LL;
if (*a2 == 47)
return (char *)xstrdup(a2);
n = dir_len(a1);
if (!n)
return (char *)xstrdup(a2);
v3 = strlen(a2);
dest = (char *)xmalloc(n + v3 + 2);
if (a1[n - 1] != 47... | static char *make_link_name(char const *name, char const *linkname) {
if (!linkname)
return ((void *)0);
if ((((linkname)[0]) == '/'))
return xstrdup(linkname);
size_t prefix_len = dir_len(name);
if (prefix_len == 0)
return xstrdup(linkname);
char *p = xmalloc(prefix_len + 1 + strlen(linkname) ... | coreutils | ida | 0 |
void print_af_spec(undefined8 param_1, ushort *param_2)
{
byte bVar1;
ushort *puVar2;
undefined8 in_R9;
long in_FS_OFFSET;
undefined local_a8[64];
long local_68;
char local_58[72];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
puVar2 = (ushort *)parse_rtattr_one(10, param_2 + 2, *param... | static void print_af_spec(FILE *fp, struct rtattr *af_spec_attr) {
struct rtattr *inet6_attr;
struct rtattr *tb[(__IFLA_INET6_MAX - 1) + 1];
inet6_attr = (parse_rtattr_one(
10,
((void *)(((char *)(af_spec_attr)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0)))),
((int... | iproute2-6.0.0 | ghidra | 46 |
long long sshbuf_put_u32(unsigned long long a0, unsigned long a1,
unsigned long a2, unsigned long long a3) {
unsigned int v0;
unsigned long long v1;
void *v3;
v0 = sshbuf_reserve(a0, 0x4, &v1, a3);
if (v0 < 0) {
v3 = v0;
} else {
*(v1) = a1 >> 24;
*((v1 + 1)) = a1 >> 16... | int sshbuf_put_u32(struct sshbuf *buf, u_int32_t val) {
u_char *p;
int r;
if ((r = sshbuf_reserve(buf, 4, &p)) < 0)
return r;
do {
const u_int32_t __v = (val);
((u_char *)(p))[0] = (__v >> 24) & 0xff;
((u_char *)(p))[1] = (__v >> 16) & 0xff;
((u_char *)(p))[2] = (__v >> 8) & 0xff;
((u_c... | openssh-portable | angr_phoenix | 8 |
void print_schema(struct_0 *a0) {
unsigned int v0;
unsigned int v1;
char v2;
char v3;
unsigned long long *v5;
unsigned long long v6;
v0 = 0;
print_uint(0x4, "schema", "schema %u", rta_getattr_u32(a0->field_20));
if (a0->field_8)
print_uint(0x4, "namespace", " [namespace %u]",
rta_g... | static void print_schema(struct rtattr *attrs[]) {
__u8 data[(255 * 4)];
int len, i = 0;
print_uint(PRINT_ANY, "schema", "schema %u",
rta_getattr_u32(attrs[IOAM6_ATTR_SC_ID]));
if (attrs[IOAM6_ATTR_NS_ID])
print_uint(PRINT_ANY, "namespace", " [namespace %u]",
rta_getattr_u16(at... | iproute2-6.0.0 | angr_dream | 0 |
void rl_deactivate_mark() {
char v0;
unsigned long long v2;
mark_active = 0;
v2 = *(&v0);
return;
} | void rl_deactivate_mark(void) { mark_active = 0; } | bash | angr_sailr | 0 |
void ck_fwrite(void *param_1, size_t param_2, FILE *param_3)
{
size_t sVar1;
undefined8 uVar2;
sVar1 = fwrite_unlocked(param_1, 1, param_2, param_3);
if (param_2 != sVar1) {
uVar2 = gettext("write failed");
perror_fatal(uVar2);
}
return;
} | static void ck_fwrite(char const *buf, size_t size, FILE *f) {
if (fwrite_unlocked(buf, sizeof(char), size, f) != size)
perror_fatal(gettext("write failed"));
} | diffutils | ghidra | 5 |
void emit_ancillary_info(char *a0) {
unsigned long long v0;
unsigned long long v1[2];
char *v2;
unsigned long long v3;
unsigned long long v4;
unsigned long long v5;
unsigned long long v6;
unsigned long long v7;
unsigned long long v8;
unsigned long long v9;
unsigned long long v10;
unsigned long l... | static inline void emit_ancillary_info(char const *program) {
struct infomap {
char const *program;
char const *node;
} const infomap[] = {
{"[", "test invocation"}, {"coreutils", "Multi-call invocation"},
{"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"},
{"sha384sum... | coreutils | angr_phoenix | 7 |
int get_mtime(char *a0, unsigned long long a1[2]) {
char v0;
char v1;
v0 = !stat(a0, &v1);
if (v0) {
a1[0] = get_stat_mtime(&v1);
a1[1] = &v1;
}
return v0;
} | static _Bool
get_mtime(char const *filename, struct timespec *mtime) {
struct stat finfo;
_Bool ok = (stat(filename, &finfo) == 0);
if (ok)
*mtime = get_stat_mtime(&finfo);
return ok;
} | coreutils | angr_dream | 0 |
long el_wline(long param_1)
{
return param_1 + 0x50;
} | const LineInfoW *el_wline(EditLine *el) {
return (const LineInfoW *)(void *)&el->el_line;
} | libedit | ghidra | 0 |
int memchr_kwset(unsigned long long a0, unsigned long a1, struct_0 *a2) {
char *v0;
unsigned int v1;
unsigned long v2;
unsigned long v3;
unsigned int v5;
v0 = a0;
if (a2->field_98c < 0) {
for (v2 = &v0[a1]; v0 < v2; v0 += 1) {
v5 = (&a2->field_0)[U(*(v0)) + 46];
if (v5) {
v5 = v0;... | static char const *memchr_kwset(char const *s, idx_t n, kwset_t kwset) {
char const *slim = s + n;
if (kwset->gc1help < 0) {
for (; s < slim; s++)
if (kwset->next[U(*s)])
return s;
} else {
int small_heuristic = 2;
idx_t small_bytes = small_heuristic * sizeof(unsigned long int);
whil... | grep | angr_dream | 17 |
int shr(unsigned long a0, unsigned long a1) {
unsigned long long v0;
unsigned int v2;
unsigned int v3;
v0 = 1;
if (!(v0) >> 1 == -1) {
if ((a1 & 63))
v3 = a0 >> (a1 & 63);
else
v3 = a0 >> (a1 & 63);
v2 = v3;
} else {
v2 = ((a0 >> 63) + a0 >> 63 CONCAT(a0 >> 63) + a0) / m(v0 << (... | static long_int shr(long_int a, int b) {
long_int one = 1;
return (-one >> 1 == -1 ? a >> b : (a + (a < 0)) / (one << b) - (a < 0));
} | gnutls | angr_dream | 8 |
long long null_array_assign(unsigned long a0, unsigned long a1,
unsigned long a2, unsigned long a3) {
unsigned long v0;
unsigned long v1;
unsigned long v2;
v2 = a1;
v1 = a2;
v0 = a3;
return a0;
} | static SHELL_VAR *null_array_assign(self, value, ind, key)
SHELL_VAR *self;
char *value;
arrayind_t ind;
char *key;
{
return (self);
} | bash | angr_sailr | 0 |
void dump_cfg_strarray(unsigned long a0, unsigned long a1,
unsigned long long *a2) {
unsigned int v0;
unsigned long long v2;
v0 = 0;
while (true) {
v2 = v0;
if (v0 >= a1)
break;
printf("%s %s\n", lookup_opcode_name(a0), a2[v0]);
v0 += 1;
}
return;
} | static void dump_cfg_strarray(ServerOpCodes code, u_int count, char **vals) {
u_int i;
for (i = 0; i < count; i++)
printf("%s %s\n", lookup_opcode_name(code), vals[i]);
} | openssh-portable | angr_sailr | 8 |
undefined8 ignore_depends(long param_1)
{
undefined8 *local_10;
local_10 = ignoredependss;
while (true) {
if (local_10 == (undefined8 *)0x0) {
return 0;
}
if (param_1 == local_10[1])
break;
local_10 = (undefined8 *)*local_10;
}
return 1;
} | _Bool
ignore_depends(struct pkginfo *pkg)
{
struct pkg_list *id;
for (id = ignoredependss; id; id = id->next)
if (id->pkg == pkg)
return 1;
return 0;
} | dpkg | ghidra | 5 |
void gl_sortedlist_nx_add(void)
{
halt_baddata();
} | gl_sortedlist_nx_add(gl_list_t list, gl_listelement_compar_fn compar,
const void *elt) {
return ((const struct gl_list_impl_base *)list)
->vtable->sortedlist_nx_add(list, compar, elt);
} | gnutls | ghidra | 0 |
int lookup_opcode_name(unsigned long a0) {
unsigned int v0;
unsigned int v2;
v0 = 0;
while (true) {
if (!keywords[2 * v0]) {
v2 = &g_40bfd5;
break;
} else if (a0 != *((4249352 + 16 * v0))) {
v0 += 1;
} else {
v2 = keywords[2 * v0];
break;
}
}
return v2;
} | static const char *lookup_opcode_name(ServerOpCodes code) {
u_int i;
for (i = 0; keywords[i].name != ((void *)0); i++)
if (keywords[i].opcode == code)
return (keywords[i].name);
return "UNKNOWN";
} | openssh-portable | angr_phoenix | 10 |
long long assertverprovides(unsigned long long *a0) {
unsigned int v0;
unsigned long long v1;
void *v2;
v0 = 0;
v1 = "1.17.11";
v2 = 0;
return assert_version_support(a0, &v0, gettext("versioned Provides"));
} | int assertverprovides(const char *const *argv) {
struct dpkg_version version = {0, "1.17.11", ((void *)0)};
return assert_version_support(argv, &version, gettext("versioned Provides"));
} | dpkg | angr_dream | 0 |
int histtime(struct_0 *a0, char *a1) {
unsigned long v0;
void *v1;
void *v3;
v0 = history_get_time(a0);
if (!v0)
v3 = 0;
else
v3 = localtime(&v0);
v1 = v3;
if (v0 && v1) {
strftime(×tr.8363, 0x80, a1, v1);
goto LABEL_4007b5;
}
if (a0->field_8 && a0->field_8->field_0) {
snpr... | static char *histtime(hlist, histtimefmt)
HIST_ENTRY *hlist;
const char *histtimefmt;
{
static char timestr[128];
time_t t;
struct tm *tm;
t = history_get_time(hlist);
tm = t ? localtime(&t) : 0;
if (t && tm)
strftime(timestr, sizeof(timestr), histtimefmt, tm);
else if (hlist->timestamp && hlist->tim... | bash | angr_phoenix | 27 |
int dumpdir_ok(char *a0) {
char v0;
unsigned int v1;
unsigned int v2;
char v3[2];
unsigned int v5;
v1 = 0;
v2 = 0;
for (*(&v3) = a0; v3[0]; *(&v3) = &v3[v5]) {
if (v2 && v2 != v3[0]) {
v0 = v3[0];
if (*(&error_hook))
*(5243072)();
error(0x0, 0x0,
gettext("Malfo... | static _Bool
dumpdir_ok(char *dumpdir) {
char *p;
int has_tempdir = 0;
int expect = 0;
for (p = dumpdir; *p; p += strlen(p) + 1) {
if (expect && *p != expect) {
unsigned char uc = *p;
do {
if (error_hook)
error_hook();
error(0, 0, gettext("Malformed dumpdir: expected ... | tar | angr_sailr | 40 |
void sshkey_private_to_blob2(void *a0, unsigned long long a1, char *a2,
unsigned long long a3, unsigned long long a4,
unsigned long a5) {
unsigned long v0;
unsigned int v1;
unsigned long long v2;
unsigned int v3;
unsigned int v4;
char v5;
void *v6;... | static int sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob,
const char *passphrase, const char *comment,
const char *ciphername, int rounds) {
u_char *cp, *key = ((void *)0), *pubkeyblob = ((void *)0);
u_char salt[16];
char *b64... | openssh-portable | angr_phoenix | 70 |
undefined8 acl_entries(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = __ext2int_and_check(param_1, 0x712c);
if (lVar1 == 0) {
uVar2 = 0xffffffff;
} else {
uVar2 = *(undefined8 *)(lVar1 + 0x30);
}
return uVar2;
} | int acl_entries(acl_t acl) {
acl_obj *acl_obj_p = ((acl_obj *)__ext2int_and_check(acl, (0x712C)));
if (!acl_obj_p)
return -1;
return acl_obj_p->i.a_used;
} | acl-2.3.1 | ghidra | 5 |
void mark_buffer_uptodate(long param_1, byte param_2)
{
*(byte *)(param_1 + 0x18) =
*(byte *)(param_1 + 0x18) & 0xfd | (param_2 & 1) * '\x02';
return;
} | void mark_buffer_uptodate(struct buffer_head *bh, int val) {
bh->b_uptodate = val;
} | e2fsprogs-1.46.5 | ghidra | 0 |
undefined4 add_host_to_hostfile(char *param_1, undefined8 param_2, long param_3,
undefined4 param_4)
{
undefined4 uVar1;
FILE *__stream;
if (param_3 == 0) {
uVar1 = 1;
} else {
hostfile_create_user_ssh_dir(param_1, 0);
__stream = fopen(param_1, "a");
if (__strea... | int add_host_to_hostfile(const char *filename, const char *host,
const struct sshkey *key, int store_hash) {
FILE *f;
int success;
if (key == ((void *)0))
return 1;
hostfile_create_user_ssh_dir(filename, 0);
f = fopen(filename, "a");
if (!f)
return 0;
success = write_host... | openssh-portable | ghidra | 7 |
void set_lang(unsigned long long a0, char *a1, unsigned long long a2,
unsigned long long a3, unsigned long long a4,
unsigned long long a5) {
unsigned long v0;
void *v2;
unsigned long long v3;
v0 = a0;
if (lang)
sh_xfree(lang, "locale.c", 0x135);
if (a1) {
lang = strcpy(s... | int set_lang(var, value)
char *var, *value;
{
do {
if (lang)
sh_xfree((lang), "locale.c", 309);
} while (0);
if (value)
lang = (char *)strcpy(sh_xmalloc((1 + strlen(value)), "locale.c", 311),
(value));
else {
lang = (char *)sh_xmalloc((1), "locale.c", 314);
lang[0... | bash | angr_dream | 10 |
void bitmap_zero(unsigned long long a0[3]) {
unsigned long long v1[3];
memset(a0[0], 0x0, a0[1] * 4);
v1 = a0;
a0[2] = 0;
return;
} | void bitmap_zero(struct bitmap *b) {
memset(b->d, 0, b->len * (sizeof(u_int)));
b->top = 0;
} | openssh-portable | angr_sailr | 0 |
int sparse_scan_file(void *a0) {
unsigned int v1;
v1 = sparse_scan_file_wholesparse(a0);
if (v1) {
v1 = 1;
} else {
if (hole_detection == 2 || hole_detection <= 2 && !hole_detection)
v1 = sparse_scan_file_seek(a0);
if (hole_detection <= 2 || hole_detection == 2) {
if (v1 && (!hole_detec... | static _Bool
sparse_scan_file(struct tar_sparse_file *file) {
if (sparse_scan_file_wholesparse(file))
return 1;
switch (hole_detection) {
case HOLE_DETECTION_DEFAULT:
case HOLE_DETECTION_SEEK:
if (sparse_scan_file_seek(file))
return 1;
__attribute__((__fallthrough__));
case HOLE_DETECTI... | tar | angr_dream | 150 |
int available_space_after(unsigned long a0) {
return 16752697132039570248 - a0;
} | size_t available_space_after(union block *pointer) {
return record_end->buffer - pointer->buffer;
} | tar | angr_sailr | 0 |
void set_hhmmss(unsigned long long a0[13], unsigned long a1, unsigned long a2,
unsigned long a3, unsigned long a4) {
char v0;
unsigned long long v2[13];
unsigned long long v3;
a0[9] = a1;
a0[10] = a2;
a0[11] = a3;
v2 = a0;
a0[12] = a4;
v3 = *(&v0);
return;
} | static void set_hhmmss(parser_control *pc, intmax_t hour, intmax_t minutes,
time_t sec, int nsec) {
pc->hour = hour;
pc->minutes = minutes;
pc->seconds.tv_sec = sec;
pc->seconds.tv_nsec = nsec;
} | gnutls | angr_phoenix | 0 |
int follow_fstatat(int param_1, char *param_2, stat *param_3, int param_4)
{
long lVar1;
int iVar2;
long in_FS_OFFSET;
lVar1 = *(long *)(in_FS_OFFSET + 0x28);
iVar2 = fstatat(param_1, param_2, param_3, param_4);
if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
__stack_chk_fail();
}
return iVar2;
} | static int follow_fstatat(int dirfd, char const *filename, struct stat *st,
int flags) {
int result = fstatat(dirfd, filename, st, flags);
if (0 && result == 0 && !(flags & 0x100) &&
((((st->st_mode)) & 0170000) == (0020000))) {
static dev_t stdin_rdev;
static signed char st... | coreutils | ghidra | 69 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.