input stringlengths 18 318k | output stringlengths 26 172k | repo_name stringclasses 23
values | decompiler stringclasses 5
values | ged int64 0 1.77k |
|---|---|---|---|---|
long long reportbroken_retexitstatus(unsigned long a0) {
unsigned long long v1;
if (reports) {
fputs(gettext("Errors were encountered while processing:\n"), stderr);
for (; reports; reports = *(reports)) {
fprintf(stderr, " %s\n", *((reports + 8)));
free(*((reports + 8)));
}
}
if (abort... | int reportbroken_retexitstatus(int ret) {
if (reports) {
fputs(gettext("Errors were encountered while processing:\n"), stderr);
while (reports) {
fprintf(stderr, " %s\n", reports->what);
free(reports->what);
reports = reports->next;
}
}
if (abort_processing) {
fputs(
gett... | dpkg | angr_phoenix | 11 |
undefined8 recover_mode(long param_1, undefined4 *param_2)
{
undefined uVar1;
int iVar2;
undefined8 uVar3;
long in_FS_OFFSET;
long local_40;
long local_38;
ulong local_30;
undefined4 local_28[6];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_38 = param_1;
for (local_30 = 0; l... | static _Bool
recover_mode(char const *arg, struct termios *mode) {
tcflag_t flag[4];
char const *s = arg;
size_t i;
for (i = 0; i < 4; i++) {
char *p;
if (strtoul_tcflag_t(s, 16, &p, flag + i, ':') != 0)
return 0;
s = p + 1;
}
mode->c_iflag = flag[0];
mode->c_oflag = flag[1];
mode->c_... | coreutils | ghidra | 26 |
int should_dereference(struct_0 *a0, unsigned long a1) {
unsigned int v1;
unsigned int v2;
if (a0->field_4 == 4) {
LABEL_403ebe:
v1 = 1;
} else {
if (a0->field_4 == 3 && !(!a1))
goto LABEL_403ebe;
v1 = 0;
}
v2 = v1 & 1;
return v2;
} | static inline _Bool
should_dereference(const struct cp_options *x, _Bool command_line_arg) {
return x->dereference == DEREF_ALWAYS ||
(x->dereference == DEREF_COMMAND_LINE_ARGUMENTS && command_line_arg);
} | coreutils | angr_phoenix | 16 |
undefined8 xfrm_policy_get_or_delete(int param_1, char **param_2, int param_3,
undefined8 param_4)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
long in_FS_OFFSET;
char **local_a18;
int local_a10;
int local_a0c[2];
char local_a01;
undefined4 local_a00;
int local_... | static int xfrm_policy_get_or_delete(int argc, char **argv, int delete,
struct nlmsghdr **answer) {
struct rtnl_handle rth;
struct {
struct nlmsghdr n;
struct xfrm_userpolicy_id xpid;
char buf[2048];
} req = {
.n.nlmsg_len =
((sizeof(req.xpid)) +
... | iproute2-6.0.0 | ghidra | 51 |
int parse_link_kind(unsigned short *a0, unsigned long a1) {
unsigned int v0;
char v1;
unsigned int v3;
unsigned int v4;
if (!a1)
v3 = 1;
else
v3 = 4;
v0 = v3;
parse_rtattr_flags(&v1, 0x5, a0 + 2, *(a0)-4, 0x8000);
if (!*(&(&v1)[8 * v0]))
v4 = &g_408ca2;
else
v4 = *(&(&v1)[8 * v0]) +... | static char *parse_link_kind(struct rtattr *tb, _Bool slave) {
struct rtattr *linkinfo[(__IFLA_INFO_MAX - 1) + 1];
int attr = slave ? IFLA_INFO_SLAVE_KIND : IFLA_INFO_KIND;
(parse_rtattr_flags(
(linkinfo), ((__IFLA_INFO_MAX - 1)),
((void *)(((char *)(tb)) +
((((sizeof(struct rtattr)) ... | iproute2-6.0.0 | angr_phoenix | 16 |
long long client_session2_setup(unsigned long long a0, unsigned long a1,
unsigned long a2, unsigned long a3,
unsigned long long a4, unsigned long long a5,
unsigned int v19, unsigned long long a6,
... | void client_session2_setup(struct ssh *ssh, int id, int want_tty,
int want_subsystem, const char *term,
struct termios *tiop, int in_fd, struct sshbuf *cmd,
char **env) {
size_t i, j, len;
int matched, r;
char *name, *val;
Channel ... | openssh-portable | angr_dream | 16 |
int parameter_brace_expand_indir(char *a0, unsigned long a1, unsigned long a2,
unsigned long long a3, unsigned int *a4,
unsigned int *a5) {
unsigned int v0;
unsigned int v1;
struct_1 *v2;
char v3[2];
struct_0 *v4;
unsigned int v6;
unsigned ... | static WORD_DESC *parameter_brace_expand_indir(name, var_is_special, quoted,
pflags, quoted_dollar_atp,
contains_dollar_at)
char *name;
int var_is_special, quoted, pflags;
int *quoted_dollar_atp, *contains_dollar_at;
{
char ... | bash | angr_sailr | 105 |
long long wcslcat(unsigned long long a0, unsigned short *a1,
unsigned long long a2) {
unsigned int *v0;
unsigned int *v1;
unsigned long v2;
unsigned long long v3;
unsigned long long v5;
unsigned int *v6;
unsigned long long v7;
v0 = a0;
v1 = &a1;
v2 = a2;
while (true) {
if (!... | size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) {
wchar_t *d = dst;
const wchar_t *s = src;
size_t n = siz;
size_t dlen;
while (*d != '\0' && n-- != 0)
d++;
dlen = d - dst;
n = siz - dlen;
if (n == 0)
return (dlen + wcslen(s));
while (*s != '\0') {
if (n != 1) {
*d++ =... | libbsd-0.11.7 | angr_phoenix | 10 |
long delete_all(unsigned int a1, int a2) {
unsigned int v3;
v3 = -1;
if (!(unsigned int)ssh_remove_all_identities(a1, 2LL))
v3 = 0;
ssh_remove_all_identities(a1, 1LL);
if (v3) {
fprintf(stderr, "Failed to remove all identities.\n");
} else if (!a2) {
fprintf(stderr, "All identities removed.\n")... | static int delete_all(int agent_fd, int qflag) {
int ret = -1;
if (ssh_remove_all_identities(agent_fd, 2) == 0)
ret = 0;
ssh_remove_all_identities(agent_fd, 1);
if (ret != 0)
fprintf(stderr, "Failed to remove all identities.\n");
else if (!qflag)
fprintf(stderr, "All identities removed.\n");
... | openssh-portable | ida | 0 |
void open_files() {
unsigned long long v1;
unsigned long long 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 long v11;
unsigned long long v1... | static void open_files(void) {
if (pw_lock() == 0) {
fprintf(stderr, gettext("%s: cannot lock %s; try again later.\n"), Prog,
pw_dbname());
fail_exit(1);
}
pw_locked = 1;
if (pw_open(0100 | 02) == 0) {
fprintf(stderr, gettext("%s: cannot open %s\n"), Prog, pw_dbname());
fail_exit(1);... | shadow | angr_phoenix | 28 |
undefined8 cv_search(long param_1, int param_2)
{
wchar_t wVar1;
long lVar2;
char cVar3;
int iVar4;
undefined *puVar5;
long lVar6;
undefined8 uVar7;
long in_FS_OFFSET;
wchar_t local_1018[2];
undefined local_1010[4096];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_1018[0] =... | cv_search(EditLine *el, int dir) {
wchar_t ch;
wchar_t tmpbuf[((size_t)1024)];
ssize_t tmplen;
tmpbuf[0] = '.';
tmpbuf[1] = '*';
tmplen = 2;
el->el_search.patdir = dir;
tmplen = c_gets(el, &tmpbuf[2], dir == 24 ? L"\n/" : L"\n?");
if (tmplen == -1)
return 4;
tmplen += 2;
ch = tmpbuf[tmple... | libedit | ghidra | 30 |
long long is_used_fs_type(char *a0) {
unsigned long long v0[7];
unsigned long v1;
unsigned long long v3;
if (!strcmp("afs", a0)) {
v3 = 1;
return v3;
}
v1 = get_file_system_list(0x0);
if (!v1) {
v3 = 1;
return v3;
}
for (v0[0] = v1; v0; v0[0] = v0[6]) {
if (!strcmp(a0, v0[3])) {
... | _Bool
is_used_fs_type(const char *name)
{
if (0 == strcmp("afs", name)) {
return 1;
} else {
const struct mount_entry *entries = get_file_system_list(0);
if (entries) {
const struct mount_entry *entry;
for (entry = entries; entry; entry = entry->me_next) {
if (0 == strcmp(name, ent... | findutils | angr_sailr | 0 |
void emit_mandatory_arg_note() {
unsigned long long v1;
v1 = fputs_unlocked(gettext("\nMandatory arguments to long options are "
"mandatory for short options too.\n"),
stdout);
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 | angr_sailr | 0 |
long long strvec_mcreate(unsigned long a0) {
return sh_malloc(a0 * 8, "stringvec.c", 0x30);
} | char **strvec_mcreate(n)
int n;
{
return ((char **)sh_malloc(((n) * sizeof(char *)), "stringvec.c", 48));
} | bash | angr_dream | 0 |
void close_files(void)
{
int iVar1;
undefined8 uVar2;
char *pcVar3;
undefined8 uVar4;
char *local_d8;
char *local_d0;
char *local_c8;
char *local_c0;
char *local_b8;
char *local_b0;
char *local_a8;
char *local_a0;
char *local_98;
char *local_90;
char *local_88;
char *local_80;
iVar1 ... | static void close_files(void) {
if (pw_close() == 0) {
fprintf(stderr, gettext("%s: failure while writing changes to %s\n"), Prog,
pw_dbname());
do {
char *old_locale = setlocale(6, ((void *)0));
char *saved_locale = ((void *)0);
if (((void *)0) != old_locale) {
saved_loc... | shadow | ghidra | 85 |
long string_to_rlimtype(char *a1) {
_BOOL4 v3;
long v4;
v4 = 0LL;
v3 = 0;
while (a1 && *a1 && (*a1 == 32 || *a1 == 9))
++a1;
if (a1 && (*a1 == 45 || *a1 == 43))
v3 = *a1++ == 45;
while (a1 && *a1 >= 48 && *a1 <= 57)
v4 = 10 * v4 + *a1++ - 48;
if (v3)
return -v4;
else
return v4;
} | rlim_t string_to_rlimtype(s)
char *s;
{
rlim_t ret;
int neg;
ret = 0;
neg = 0;
while (s && *s && (((*s) == ' ') || ((*s) == '\t')))
s++;
if (s && (*s == '-' || *s == '+')) {
neg = *s == '-';
s++;
}
for (; s && *s && ((*s) >= '0' && (*s) <= '9'); s++)
ret = (ret * 10) + ((*s) - '0');
r... | bash | ida | 7 |
int skip_to_histexp(long param_1, int param_2, char *param_3, uint param_4)
{
char cVar1;
bool bVar2;
bool bVar3;
undefined4 uVar4;
int iVar5;
size_t sVar6;
long lVar7;
long in_FS_OFFSET;
int local_70;
int local_64;
int local_60;
int local_58;
ulong local_40;
ulong local_38;
ulong local_3... | int skip_to_histexp(string, start, delims, flags)
char *string;
int start;
char *delims;
int flags;
{
int i, pass_next, backq, dquote, c, oldjmp;
int histexp_comsub, histexp_backq, old_dquote;
size_t slen;
mbstate_t state;
memset(&state, '\0', sizeof(mbstate_t));
slen = strlen(string + start) + start;
ol... | bash | ghidra | 48 |
void restore_sigmask() {
unsigned long long v1;
v1 = sigprocmask(0x2, &top_level_mask, NULL);
return;
} | void restore_sigmask() {
sigprocmask(2, &top_level_mask, (sigset_t *)((void *)0));
} | bash | angr_sailr | 0 |
long long el_wget(struct_0 *a0, unsigned long a1, unsigned long a2,
unsigned long long a3, unsigned long a4, unsigned long a5) {
unsigned int v0;
unsigned int v1;
unsigned long long v2;
unsigned long long v3;
unsigned long long *v4;
unsigned long long v5;
unsigned long long v6;
unsigne... | int el_wget(EditLine *el, int op, ...) {
va_list ap;
int rv;
if (el == ((void *)0))
return -1;
__builtin_va_start(ap, op);
switch (op) {
case 0:
case 12: {
el_pfunc_t *p = __builtin_va_arg(ap, el_pfunc_t *);
rv = prompt_get(el, p, 0, op);
break;
}
case 21:
case 22: {
el_pfunc_... | libedit | angr_dream | 96 |
void completion_matches(undefined8 param_1, undefined8 param_2)
{
rl_completion_matches(param_1, param_2);
return;
} | char **completion_matches(const char *s, rl_compentry_func_t *f) {
return rl_completion_matches(s, f);
} | bash | ghidra | 0 |
long long test_ssl3_unknown_ciphersuites(unsigned long long a0) {
unsigned int v0;
unsigned int v1;
unsigned long long v3;
sprintf(
&prio_str,
"NONE:+CIPHER-ALL:+ARCFOUR-128:+3DES-CBC:+GOST28147-TC26Z-CNT:+COMP-NULL:"
"+VERS-SSL3.0:+MAC-ALL:+MD5:+SHA1:+GOST28147-TC26Z-IMIT:+RSA:+DHE-RSA:+"
... | test_code_t test_ssl3_unknown_ciphersuites(gnutls_session_t session) {
int ret;
sprintf(prio_str,
"NONE:"
"+CIPHER-ALL:+ARCFOUR-128:+3DES-CBC"
":+GOST28147-TC26Z-CNT"
":"
"+COMP-NULL"
":+VERS-SSL3.0:"
"+MAC-ALL:+MD5:+SHA1"
":+GOST28147-... | gnutls | angr_dream | 5 |
long long platform_post_fork_child() { return oom_adjust_restore(); } | void platform_post_fork_child(void) { oom_adjust_restore(); } | openssh-portable | angr_sailr | 0 |
int make_directory(char *a0, unsigned long a1) {
char *v0;
struct_0 *v1;
v0 = strlen(a0);
v1 = xmalloc(0x60);
v1->field_0 = 0;
v1->field_30 = 0;
v1->field_28 = v1->field_30;
v1->field_40 = 0;
v1->field_3c = 0;
if (v0 > 1 && *((a0 + v0 + 1)) == 47)
v0 += 1;
v1->field_58 = xmalloc(v0 + 1);
me... | static struct directory *make_directory(const char *name, char *caname) {
size_t namelen = strlen(name);
struct directory *directory = xmalloc(sizeof(*directory));
directory->next = ((void *)0);
directory->dump = directory->idump = ((void *)0);
directory->orig = ((void *)0);
directory->flags = 0;
if (name... | tar | angr_dream | 0 |
int history_set_pos(unsigned long a0) {
unsigned int v1;
if (a0 < *(got.history_length) && a0 >= 0) {
*(got.history_offset) = a0;
v1 = 1;
}
if (a0 < 0 || a0 >= *(got.history_length))
v1 = 0;
return v1;
} | int history_set_pos(int pos) {
if (pos >= history_length || pos < 0)
return 0;
history_offset = pos;
return 1;
} | libedit | angr_dream | 18 |
void check_order(unsigned long long a0[3], unsigned long long a1[3],
unsigned long a2) {
unsigned int v0;
unsigned long long v2;
unsigned long long v3;
unsigned long long v4;
unsigned long long v7;
v2 = check_input_order;
if (check_input_order != 2) {
if (check_input_order != 1)
... | static void check_order(struct linebuffer const *prev,
struct linebuffer const *current, int whatfile) {
if (check_input_order != CHECK_ORDER_DISABLED &&
((check_input_order == CHECK_ORDER_ENABLED) || seen_unpairable)) {
if (!issued_disorder_warning[whatfile - 1]) {
int order;... | coreutils | angr_dream | 14 |
long rm_option_init(long a1) {
long result;
*(_BYTE *)a1 = 0;
*(_DWORD *)(a1 + 4) = 4;
*(_BYTE *)(a1 + 8) = 0;
*(_BYTE *)(a1 + 10) = 0;
*(_BYTE *)(a1 + 9) = 0;
*(_QWORD *)(a1 + 16) = 0LL;
*(_BYTE *)(a1 + 24) = 0;
*(_BYTE *)(a1 + 25) = isatty(0) != 0;
*(_BYTE *)(a1 + 26) = 0;
result = a1;
*(_BYT... | static void rm_option_init(struct rm_options *x) {
x->ignore_missing_files = 0;
x->interactive = RMI_SOMETIMES;
x->one_file_system = 0;
x->remove_empty_directories = 0;
x->recursive = 0;
x->root_dev_ino = ((void *)0);
x->preserve_all_root = 0;
x->stdin_tty = isatty(0);
x->verbose = 0;
x->require_re... | coreutils | ida | 0 |
void src_to_dest_free(struct_0 *a0) {
unsigned long long v1;
free(a0->field_10);
v1 = free(a0);
return;
} | static void src_to_dest_free(void *x) {
struct Src_to_dest *a = x;
free(a->name);
free(x);
} | coreutils | angr_phoenix | 0 |
void close_pipes(unsigned long a0, unsigned long a1) {
unsigned long long v1;
unsigned long long v2;
if (a0 >= 0)
v1 = close(a0);
if (a1 >= 0)
v2 = close(a1);
return;
} | static void close_pipes(in, out) int in, out;
{
if (in >= 0)
close(in);
if (out >= 0)
close(out);
} | bash | angr_sailr | 5 |
long find_next_block(void)
{
long lVar1;
lVar1 = current_block;
if (current_block == record_end) {
if (hit_eof == '\0') {
flush_archive();
lVar1 = current_block;
if (current_block == record_end) {
hit_eof = '\x01';
lVar1 = 0;
}
} else {
lVar1 = 0;
}
}
... | union block *find_next_block(void) {
if (current_block == record_end) {
if (hit_eof)
return 0;
flush_archive();
if (current_block == record_end) {
hit_eof = 1;
return 0;
}
}
return current_block;
} | tar | ghidra | 10 |
_QWORD *list_reverse(_QWORD *a1) {
_QWORD *v1;
_QWORD *v2;
v1 = 0LL;
while (a1) {
v2 = (_QWORD *)*a1;
*a1 = v1;
v1 = a1;
a1 = v2;
}
return v1;
} | GENERIC_LIST *list_reverse(list)
GENERIC_LIST *list;
{
register GENERIC_LIST *next, *prev;
for (prev = (GENERIC_LIST *)((void *)0); list;) {
next = list->next;
list->next = prev;
prev = list;
list = next;
}
return (prev);
} | bash | ida | 0 |
void keymacro_delete(struct_1 *a0, unsigned int *a1) {
void *v1;
unsigned long long v2;
void *v3;
if (!*(a1)) {
fprintf(*(&a0->padding_0[24]),
"keymacro_delete: Null extended-key not allowed.\n");
v2 = 4294967295;
} else if (!a0->field_448) {
v1 = 0;
} else {
node__delete(a0, &a... | keymacro_delete(EditLine *el, const wchar_t *key) {
if (key[0] == '\0') {
(void)fprintf(el->el_errfile,
"keymacro_delete: Null extended-key not allowed.\n");
return -1;
}
if (el->el_keymacro.map == ((void *)0))
return 0;
(void)node__delete(el, &el->el_keymacro.map, key);
return... | libedit | angr_dream | 7 |
void clear_istobes(void)
{
undefined8 uVar1;
long lVar2;
uVar1 = pkg_hash_iter_new();
while (true) {
lVar2 = pkg_hash_iter_next_pkg(uVar1);
if (lVar2 == 0)
break;
ensure_package_clientdata(lVar2);
**(undefined4 **)(lVar2 + 0x138) = 0;
*(undefined4 *)(*(long *)(lVar2 + 0x138) + 0xc) =... | void clear_istobes(void) {
struct pkg_hash_iter *iter;
struct pkginfo *pkg;
iter = pkg_hash_iter_new();
while ((pkg = pkg_hash_iter_next_pkg(iter)) != ((void *)0)) {
ensure_package_clientdata(pkg);
pkg->clientdata->istobe = PKG_ISTOBE_NORMAL;
pkg->clientdata->replacingfilesandsaid = 0;
}
pkg_ha... | dpkg | ghidra | 5 |
void print_long_format(struct_0 *a0) {
char v0;
int tmp_14;
int tmp_22;
int tmp_16;
char v1;
unsigned int v2;
unsigned int v3;
unsigned int v4;
void *v5;
char *v6;
unsigned long long v7;
unsigned long v8;
unsigned long v9;
unsigned long long v10;
unsigned long long v11;
unsigned long lon... | static void print_long_format(const struct fileinfo *f) {
char modebuf[12];
char buf
[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) +
1 +
((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) +
1 + sizeof(modebuf) - 1 + 1 +
((((((sizeof(uintm... | coreutils | angr_phoenix | 65 |
long xfrm_algo_parse(long a1, long a2, long a3, const char *a4, _BYTE *a5,
int a6) {
char v6;
char v12;
int v13;
int v14;
int i;
int v16;
int v17;
const char *v18;
char v19[3];
unsigned long v20;
v20 = __readfsqword(0x28u);
v16 = strlen(a4);
strlcpy(a1, a3, 64LL);
if (v... | static int xfrm_algo_parse(struct xfrm_algo *alg, enum xfrm_attr_type_t type,
char *name, char *key, char *buf, int max) {
int len;
int slen = strlen(key);
strlcpy(alg->alg_name, name, sizeof(alg->alg_name));
if (slen > 2 && strncmp(key, "0x", 2) == 0) {
char *p = key + 2;
... | iproute2-6.0.0 | ida | 3 |
long long test_vko_gost_12(unsigned long long a0) {
unsigned int v0;
unsigned int v1;
unsigned long long v3;
if (!tls_ext_ok) {
v3 = 3;
return v3;
}
sprintf(&prio_str,
"NONE:+CIPHER-ALL:+ARCFOUR-128:+3DES-CBC:+GOST28147-TC26Z-CNT:+COMP-"
"NULL:%s:+MAC-ALL:+MD5:+SHA1:+GOST28147-T... | test_code_t test_vko_gost_12(gnutls_session_t session) {
int ret;
if (tls_ext_ok == 0)
return TEST_IGNORE;
sprintf(prio_str,
"NONE:"
"+CIPHER-ALL:+ARCFOUR-128:+3DES-CBC"
":+GOST28147-TC26Z-CNT"
":"
"+COMP-NULL"
":%s:"
"+MAC-ALL:+MD5:+SHA1... | gnutls | angr_sailr | 6 |
void _rl_put_indicator(unsigned long long a0[2]) {
unsigned long long v1;
v1 = fwrite(a0[1], a0[0], 0x1, rl_outstream);
return;
} | void _rl_put_indicator(const struct bin_str *ind) {
fwrite(ind->string, ind->len, 1, rl_outstream);
} | bash | angr_sailr | 0 |
long long gl_linked_nx_add_first(unsigned long long a0[9], unsigned long a1) {
void *v0;
void *v2;
v0 = malloc(0x18);
if (!v0) {
v2 = 0;
return v2;
}
*(&v0[16]) = a1;
*(&v0[8]) = &a0[5];
*(v0) = a0[5];
*((*(v0) + 8)) = v0;
a0[5] = v0;
a0[8] = a0[8] + 1;
v2 = v0;
return v2;
} | static gl_list_node_t gl_linked_nx_add_first(gl_list_t list, const void *elt) {
gl_list_node_t node =
(struct gl_list_node_impl *)malloc(sizeof(struct gl_list_node_impl));
if (node == ((void *)0))
return ((void *)0);
node->value = elt;
node->prev = &list->root;
node->next = list->root.next;
node... | gnutls | angr_sailr | 0 |
long rl_deprep_terminal() { return el_set(e, 16LL, 0LL); } | void rl_deprep_terminal(void) { el_set(e, 16, 0); } | libedit | ida | 0 |
void bash_complete_variable_internal(unsigned long a0) {
unsigned long long v1;
v1 = bash_specific_completion(a0, variable_completion_function);
return;
} | static int bash_complete_variable_internal(what_to_do)
int what_to_do;
{
return bash_specific_completion(what_to_do, variable_completion_function);
} | bash | angr_phoenix | 0 |
void emit_ancillary_info(char *param_1)
{
FILE *__stream;
int iVar1;
char *pcVar2;
char *pcVar3;
long in_FS_OFFSET;
char *local_b8;
char **local_b0;
char *local_98;
char *local_90;
char *local_88;
char *local_80;
char *local_78;
char *local_70;
char *local_68;
char *local_60;
char *loca... | 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 | ghidra | 33 |
void append_repeated_char(struct_0 *a0, unsigned long a1, unsigned long a2) {
struct_2 *v0;
struct_1 *v2;
v0 = xmalloc(0x20);
v0->field_8 = 0;
v0->field_0 = 4;
v0->field_10 = a1;
v0->field_18 = a2;
if (!a0->field_8)
__assert_fail();
a0->field_8->field_8 = v0;
v2 = a0;
a0->field_8 = &v0->field... | static void append_repeated_char(struct Spec_list *list, unsigned char the_char,
count repeat_count) {
struct List_element *new = xmalloc(sizeof *new);
new->next = ((void *)0);
new->type = RE_REPEATED_CHAR;
new->u.repeated_char.the_repeated_char = the_char;
new->u.repeated_cha... | coreutils | angr_phoenix | 0 |
undefined8 rl_clear_display(void)
{
_rl_clear_screen(1);
rl_forced_update_display();
_rl_display_fixed = 1;
return 0;
} | int rl_clear_display(int count, int key) {
_rl_clear_screen(1);
rl_forced_update_display();
rl_display_fixed = 1;
return 0;
} | bash | ghidra | 0 |
void rl_cleanup_after_signal(void)
{
return;
} | void rl_cleanup_after_signal(void) {} | libedit | ghidra | 0 |
int _rl_vi_backup_point(void)
{
size_t sVar1;
int local_c;
local_c = rl_point;
if (0 < rl_point) {
sVar1 = __ctype_get_mb_cur_max();
if ((sVar1 == 1) || (rl_byte_oriented != 0)) {
rl_point = rl_point + -1;
} else {
local_c = rl_point;
rl_point = _rl_backward_char_internal(1);
... | static inline int _rl_vi_backup_point(void) {
int point;
point = rl_point;
if (rl_point > 0)
{
if ((__ctype_get_mb_cur_max()) == 1 || rl_byte_oriented)
rl_point--;
else {
point = rl_point;
rl_point = _rl_backward_char_internal(1);
if (rl_point < 0)
rl_point = 0;
}
... | bash | ghidra | 8 |
int check_rename(struct_0 *a0, struct_0 *a1) {
unsigned int v1;
file_stat(a0);
if (a0->field_8 == 2) {
v1 = 0;
} else {
file_stat(a1);
check_writable_dir(a0);
check_writable_dir(a1);
if (a0->field_8 == 1 && a1->field_8 == 1 &&
(a0->field_10 != a1->field_10 || a0->field_18 != a1->fie... | static _Bool
check_rename(struct file *src, struct file *dst) {
file_stat(src);
if (src->stat_state == FILE_STAT_NOFILE)
return 0;
file_stat(dst);
check_writable_dir(src);
check_writable_dir(dst);
if (src->stat_state == FILE_STAT_VALID &&
dst->stat_state == FILE_STAT_VALID &&
!(src->stat... | dpkg | angr_dream | 5 |
int session_env_req(unsigned long long a0, struct_0 *a1) {
unsigned long long v0;
unsigned long v1;
unsigned long long v2;
unsigned long long v3;
unsigned int v4;
unsigned int v5;
char v6;
char v7;
unsigned int v9;
v5 = sshpkt_get_cstring(a0, &v6, 0x0, &v6);
if (v5) {
LABEL_4051bb:
sshpkt_f... | static int session_env_req(struct ssh *ssh, Session *s) {
char *name, *val;
u_int i;
int r;
if ((r = sshpkt_get_cstring(ssh, &name, ((void *)0))) != 0 ||
(r = sshpkt_get_cstring(ssh, &val, ((void *)0))) != 0 ||
(r = sshpkt_get_end(ssh)) != 0)
sshpkt_fatal(ssh, r, "%s: parse packet", __func__);
... | openssh-portable | angr_sailr | 5 |
int sshsk_ed25519_assemble(unsigned long long a0[3], unsigned long long *a1) {
unsigned long long v0;
unsigned long v1;
unsigned int v2;
void *v3;
v3 = 0;
*(a1) = 0;
if (a0[2] == 32) {
v3 = sshkey_new(0xc);
if (v3) {
*(&v3[48]) = malloc(0x20);
if (v3[48]) {
memcpy(v3[48], a0[1... | static int sshsk_ed25519_assemble(struct sk_enroll_response *resp,
struct sshkey **keyp) {
struct sshkey *key = ((void *)0);
int r;
*keyp = ((void *)0);
if (resp->public_key_len != 32U) {
sshlog("ssh-sk.c", __func__, 266, 1, SYSLOG_LEVEL_ERROR, ((void *)0),
"inv... | openssh-portable | angr_sailr | 0 |
unsigned long get_msg_extended(unsigned int *a1, long a2, int a3) {
long v3;
unsigned int *v4;
int *v5;
char *v6;
long v7;
unsigned int v8;
long v9;
unsigned int *v10;
long v11;
int *v12;
char *v13;
unsigned int v16;
unsigned int u32;
long v18;
unsigned long v19;
v19 = __readfsqword(0x2... | static void get_msg_extended(struct sftp_conn *conn, struct sshbuf *m,
int initial) {
u_int msg_len;
u_char *p;
int r;
sshbuf_reset(m);
if ((r = sshbuf_reserve(m, 4, &p)) != 0)
sshfatal("sftp-client.c", __func__, 197, 1, SYSLOG_LEVEL_FATAL, ssh_err(r),
"reserve")... | openssh-portable | ida | 20 |
undefined8 bareudp_parse_opt(undefined8 param_1, int param_2,
undefined8 *param_3, undefined8 param_4)
{
bool bVar1;
char cVar2;
int iVar3;
undefined8 uVar4;
long in_FS_OFFSET;
undefined8 *local_40;
int local_34;
undefined2 local_1e;
undefined2 local_1c;
undefined2 loca... | static int bareudp_parse_opt(struct link_util *lu, int argc, char **argv,
struct nlmsghdr *n) {
_Bool multiproto = 0;
__u16 srcportmin = 0;
__be16 ethertype = 0;
__be16 dstport = 0;
__u64 attrs = 0;
while (argc > 0) {
if (matches(*argv, "dstport") == 0) {
do {
... | iproute2-6.0.0 | ghidra | 23 |
_QWORD *bitmap_new() {
_QWORD *ptr;
ptr = calloc(1uLL, 0x18uLL);
if (!ptr)
return 0LL;
*ptr = calloc(1uLL, 4uLL);
if (*ptr) {
ptr[1] = 1LL;
ptr[2] = 0LL;
return ptr;
} else {
free(ptr);
return 0LL;
}
} | struct bitmap *bitmap_new(void) {
struct bitmap *ret;
if ((ret = calloc(1, sizeof(*ret))) == ((void *)0))
return ((void *)0);
if ((ret->d = calloc(1, (sizeof(u_int)))) == ((void *)0)) {
free(ret);
return ((void *)0);
}
ret->len = 1;
ret->top = 0;
return ret;
} | openssh-portable | ida | 0 |
long process_enroll(long a1) {
const char *v1;
long v2;
long v3;
long v4;
long v5;
long v6;
const char *v7;
long v8;
const char *v9;
long v10;
size_t v11;
unsigned char v13;
unsigned int v14;
unsigned int u32;
void *ptr;
void *v17;
char *s;
void *v19;
void *v20;
long v21;
long ... | static struct sshbuf *process_enroll(struct sshbuf *req) {
int r;
u_int type;
char *provider, *application, *pin, *device, *userid;
uint8_t flags;
struct sshbuf *challenge, *attest, *kbuf, *resp;
struct sshkey *key;
if ((attest = sshbuf_new()) == ((void *)0) ||
(kbuf = sshbuf_new()) == ((void *)0))... | openssh-portable | ida | 0 |
void channel_request_start(void *a0, unsigned long a1, unsigned long long a2,
unsigned long a3) {
unsigned long v0;
unsigned int v1;
unsigned int v2[4];
unsigned long v3;
unsigned long long v4;
unsigned long v5;
char v6;
unsigned long long v8;
unsigned long long v10;
*(&v... | void channel_request_start(struct ssh *ssh, int id, char *service,
int wantconfirm) {
Channel *c = channel_lookup(ssh, id);
int r;
if (c == ((void *)0)) {
sshlog("channels.c", __func__, 987, 1, SYSLOG_LEVEL_INFO, ((void *)0),
"%d: unknown channel id", id);
return;
... | openssh-portable | angr_dream | 13 |
undefined *history_arg_extract(int param_1, int param_2, undefined8 param_3)
{
long lVar1;
size_t sVar2;
int iVar3;
int iVar4;
int local_40;
int local_3c;
int local_30;
int local_2c;
undefined *local_28;
lVar1 = history_tokenize(param_3);
if (lVar1 == 0) {
local_28 = (undefined *)0x0;
} el... | char *history_arg_extract(int first, int last, const char *string) {
register int i, len;
char *result;
int size, offset;
char **list;
if ((list = history_tokenize(string)) == ((void *)0))
return ((char *)((void *)0));
for (len = 0; list[len]; len++)
;
if (last < 0)
last = len + last - 1;
... | bash | ghidra | 7 |
int gz_skip(struct_0 *a0, unsigned long a1) {
unsigned long v0;
struct_0 *v1;
unsigned int v2;
unsigned int v4;
v1 = a0;
v0 = a1;
while (true) {
if (v0) {
if (a0->field_0) {
if (v0 < a0->field_0)
v4 = v0;
else
v4 = a0->field_0;
v2 = v4;
a0->fi... | static int gz_skip(state, len)
gz_statep state;
off64_t len;
{
unsigned n;
while (len)
if (state->x.have) {
n = (sizeof(int) == sizeof(off64_t) && (state->x.have) > 0x7fffffff) ||
(off64_t)state->x.have > len
? (unsigned)len
: state->x.have;
state->x.h... | zlib | angr_dream | 23 |
long long keymacro_clear(unsigned long long a0[128], char *a1,
unsigned int *a2) {
unsigned long long v1;
v1 = *(a2);
if (*(a2) <= 0x100) {
v1 = a1[*(a2)];
if (a1[*(a2)] == 25) {
if (*((*(a2) + a0[126])) == 25 || a1 != a0[127]) {
v1 = a0[126];
if (a1 == a0[1... | keymacro_clear(EditLine *el, el_action_t *map, const wchar_t *in) {
if (*in > 256)
return;
if ((map[(unsigned char)*in] == 25) &&
((map == el->el_map.key && el->el_map.alt[(unsigned char)*in] != 25) ||
(map == el->el_map.alt && el->el_map.key[(unsigned char)*in] != 25)))
(void)keymacro_delete(e... | libedit | angr_dream | 54 |
void usage(unsigned long a0) {
unsigned long v0;
unsigned long v2;
v0 = v2;
if (a0) {
fprintf(stderr, gettext("Try '%s --help' for more information.\n"));
} else {
printf(gettext("Usage: %s [OPTION]... [FILE]\n"));
printf(gettext(
"Print the current time, the length of time the system has... | void usage(int status) {
if (status != 0)
do {
fprintf(stderr, gettext("Try '%s --help' for more information.\n"),
program_name);
} while (0);
else {
printf(gettext("Usage: %s [OPTION]... [FILE]\n"), program_name);
printf(gettext(
"Print the current time, the length of ti... | coreutils | angr_sailr | 2 |
undefined8 set_signal_handler(int param_1, code *param_2)
{
int iVar1;
long in_FS_OFFSET;
sigaction local_148;
sigaction local_a8;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_148.sa_flags = 0;
if (param_1 == 0x11) {
local_148.sa_flags = 0x10000000;
}
if (param_1 == 0x1c) {
... | SigHandler *set_signal_handler(sig, handler)
int sig;
SigHandler *handler;
{
struct sigaction act, oact;
act.__sigaction_handler.sa_handler = handler;
act.sa_flags = 0;
if (sig == 17)
act.sa_flags |= 0x10000000;
if (sig == 28)
act.sa_flags |= 0x10000000;
if (sig == 15 && handler == sigterm_sigha... | bash | ghidra | 8 |
long long output_symbols_bin(struct_0 *a0, void *a1, unsigned long a2,
unsigned long long a3, unsigned long long a4) {
unsigned int v0;
unsigned int v1;
char v2;
unsigned long long v3;
void *v4;
unsigned long long v5;
unsigned long v6;
char v7;
unsigned long v8;
unsigned... | static int output_symbols_bin(struct depmod *depmod, FILE *out) {
struct index_node *idx;
char alias[1024];
__attribute__((cleanup(scratchbuf_release))) struct scratchbuf salias = {
.bytes = alias,
.size = sizeof(alias) + ({
_Static_assert((!__builtin_types_compatible_p(
... | kmod | angr_sailr | 10 |
int suffix_power(unsigned long a0) {
unsigned int v1;
switch (a0) {
case 69:
v1 = 6;
break;
case 71:
v1 = 3;
break;
case 75:
v1 = 1;
break;
case 77:
v1 = 2;
break;
case 80:
v1 = 5;
break;
case 84:
v1 = 4;
break;
case 89:
v1 = 8;
break;
case 90... | static inline int suffix_power(const char suf) {
switch (suf) {
case 'K':
return 1;
case 'M':
return 2;
case 'G':
return 3;
case 'T':
return 4;
case 'P':
return 5;
case 'E':
return 6;
case 'Z':
return 7;
case 'Y':
return 8;
default:
return 0;
}
} | coreutils | angr_phoenix | 19 |
long long ipvlan_print_help(void *a0, unsigned long a1, unsigned long a2,
void *a3) {
unsigned long v0;
unsigned int v1;
v1 = a1;
v0 = a2;
return print_explain(a0, a3);
} | static void ipvlan_print_help(struct link_util *lu, int argc, char **argv,
FILE *f) {
print_explain(lu, f);
} | iproute2-6.0.0 | angr_phoenix | 0 |
void decode_preserve_arg(unsigned long long a0, struct_0 *a1,
unsigned long a2) {
unsigned long long v0;
unsigned int v1;
char *v2;
char *v3;
void *v4;
char *v6;
unsigned long long v7;
unsigned long long v8;
v4 = xstrdup(a0);
v2 = v4;
while (true) {
v3 = strchr(v2, 0x... | static void decode_preserve_arg(char const *arg, struct cp_options *x,
_Bool on_off) {
enum File_attribute {
PRESERVE_MODE,
PRESERVE_TIMESTAMPS,
PRESERVE_OWNERSHIP,
PRESERVE_LINK,
PRESERVE_CONTEXT,
PRESERVE_XATTR,
PRESERVE_ALL
};
static enum File_attribu... | coreutils | angr_phoenix | 18 |
int change_file_owner(unsigned long long a0, struct_0 *a1, unsigned long a2,
unsigned long a3, unsigned long a4, unsigned long a5,
unsigned long v16) {
struct_2 *v0;
char v1;
char v2;
char v3;
char v4;
unsigned int v5;
unsigned int v6;
void *v7;
char *v8;
... | static _Bool
change_file_owner(FTS *fts, FTSENT *ent, uid_t uid, gid_t gid,
uid_t required_uid, gid_t required_gid,
struct Chown_option const *chopt) {
char const *file_full_name = ent->fts_path;
char const *file = ent->fts_accpath;
struct stat const *file_stats;
struct stat... | coreutils | angr_dream | 355 |
void ext4_fc_flush_extents(unsigned long long a0, unsigned long a1) {
struct_0 *v0;
unsigned long long v2;
unsigned long long v3;
unsigned long long v4;
v0 = a0 + 944;
v2 = v0->field_28;
if (a1 != v0->field_28) {
v3 = v0->field_28;
if (v0->field_28) {
e2fsck_rewrite_extent_tree(a0, v0, v0);... | static void ext4_fc_flush_extents(e2fsck_t ctx, ino_t ino) {
struct extent_list *extent_list = &ctx->fc_replay_state.fc_extent_list;
if (extent_list->ino == ino || extent_list->ino == 0)
return;
e2fsck_rewrite_extent_tree(ctx, extent_list);
ext2fs_free_mem(&extent_list->extents);
memset(extent_list, 0, s... | e2fsprogs-1.46.5 | angr_dream | 9 |
int indirection_level_string() {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned int v3;
char *v4;
char v5;
unsigned int v7;
unsigned int v8;
void *v9;
char *v10;
v4 = get_string_value("PS4");
if (!indirection_string) {
indirection_stringsiz = 100;
indirection_string = sh_xm... | char *indirection_level_string() {
register int i, j;
char *ps4;
char ps4_firstc[16 + 1];
int ps4_firstc_len, ps4_len, ineed, old;
ps4 = get_string_value("PS4");
if (indirection_string == 0)
indirection_string =
sh_xmalloc((indirection_stringsiz = 100), "print_cmd.c", 457);
indirection_string... | bash | angr_dream | 49 |
int setmax_one(unsigned long a0, unsigned long a1) {
unsigned int v0;
unsigned int v1;
char v2;
unsigned short v3;
unsigned int v5;
*(&v1) = a0 * 32;
if (*(&v1) + 32 <= g_401630) {
v0 = fseeko(fail, *(&v1), 0x0);
if (v0)
__assert_fail();
v5 = fread(&v2, 0x20, 0x1, fail);
if (v5 != 1... | static _Bool setmax_one(uid_t uid, short max) {
off_t offset;
struct faillog fl;
offset = (off_t)uid * sizeof(fl);
if (offset + sizeof(fl) <= statbuf.st_size) {
int err = fseeko(fail, offset, 0);
((void)sizeof((0 == err) ? 1 : 0), __extension__({
if (0 == err)
;
else
_... | shadow | angr_dream | 43 |
long long gl_sockets_startup(unsigned long a0) {
unsigned int v0;
v0 = a0;
return 0;
} | int gl_sockets_startup(int version __attribute__((__unused__))) { return 0; } | gnutls | angr_phoenix | 0 |
void set_binary_mode(void)
{
halt_baddata();
} | inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } | diffutils | ghidra | 0 |
void dump_dir0(struct_0 *a0, char *a1) {
char v0;
char v1;
unsigned long v2;
unsigned int v3;
void *v4;
void *v5;
unsigned long v6;
char *v7;
void *v8;
unsigned long long v9;
void *v10;
unsigned long v11;
unsigned long v12;
unsigned long v13;
unsigned long v14;
char v15;
unsigned long ... | static void dump_dir0(struct tar_stat_info *st, char const *directory) {
_Bool top_level = !st->parent;
const char *tag_file_name;
union block *blk = ((void *)0);
off_t block_ordinal = current_block_ordinal();
st->stat.st_size = 0;
blk = start_header(st);
if (!blk)
return;
info_attach_exclist(st... | tar | angr_dream | 77 |
int atdir_set(void *a0, unsigned int a1) {
unsigned long long v0;
unsigned long long v1;
v1 = a0;
*(&v0) = a1;
if (!(atdir_eq(v1, v0) ^ 1))
return dfd;
if (dfd >= 0)
close(dfd);
if (!v0) {
v1 = ".";
v0 = 1;
}
memcpy(&dfname, v1, v0);
*(v0 + &dfname) = 0;
dfd = open_safer(&dfname, ... | static int atdir_set(char const *dir, ptrdiff_t dirlen) {
enum { try_opening_directories = 1 };
if (try_opening_directories && !atdir_eq(dir, dirlen)) {
if (0 <= dfd)
close(dfd);
if (dirlen == 0)
dir = &dot, dirlen = 1;
memcpy(dfname, dir, dirlen);
dfname[dirlen] = '\0';
dfd = open... | gzip-1.12 | angr_sailr | 10 |
long long rl_reset_terminal(unsigned long a0) {
unsigned long v0;
v0 = a0;
if (h && !(!e))
goto LABEL_404798;
rl_initialize();
LABEL_404798:
el_reset(e);
return 0;
} | int rl_reset_terminal(const char *p __attribute__((__unused__))) {
if (h == ((void *)0) || e == ((void *)0))
rl_initialize();
el_reset(e);
return 0;
} | libedit | angr_phoenix | 0 |
int parse_number(char *a0) {
void *v0;
unsigned long v1;
v0 = 0;
*(__errno_location()) = 0;
if (!strncmp(a0, "0x", 0x2)) {
v1 = strtol(a0 + 2, &v0, 0x10);
} else {
if (!strncmp(a0, "0", 0x1) &&
strspn(a0, "012345678") == strlen(*(got.optarg))) {
v1 = strtol(a0 + 1, &v0, 0x8);
go... | static long parse_number(const char *arg) {
char *endptr = ((void *)0);
(*__errno_location()) = 0;
long result;
if (strncmp(arg, "0x", 2) == 0)
result = strtol(arg + 2, &endptr, 16);
else if (strncmp(arg, "0", 1) == 0 &&
strspn(arg, "012345678") == strlen(optarg))
result = strtol(arg + 1,... | gnutls | angr_phoenix | 9 |
void sh_neednumarg(unsigned long a0) {
unsigned long v0;
unsigned long long v2;
v0 = a0;
gettext("%s: numeric argument required");
v2 = builtin_error();
return;
} | void sh_neednumarg(s) char *s;
{
builtin_error(gettext("%s: numeric argument required"), s);
} | bash | angr_phoenix | 0 |
int internal_getopt(long **param_1, char *param_2)
{
char cVar1;
long **pplVar2;
int iVar3;
int iVar4;
char *pcVar5;
bool bVar6;
char *local_38;
bVar6 = *param_2 == '+';
local_38 = param_2;
if (bVar6) {
local_38 = param_2 + 1;
}
if (param_1 == (long **)0x0) {
list_optarg = 0;
list_... | int internal_getopt(list, opts)
WORD_LIST *list;
char *opts;
{
register int c;
register char *cp;
int plus;
static char errstr[3] = {'-', '\0', '\0'};
plus = *opts == '+';
if (plus)
opts++;
if (list == 0) {
list_optarg = (char *)((void *)0);
list_optflags = 0;
loptend = (WORD_LIST *)((vo... | bash | ghidra | 7 |
long do_add(int a1, _QWORD *a2) {
int v3[262];
unsigned long v4;
v4 = __readfsqword(0x28u);
memset(v3, 0, 1044);
v3[0] = 20;
LOWORD(v3[1]) = genl_family;
HIWORD(v3[1]) = 1;
LOWORD(v3[4]) = 257;
ila_parse_opt(a1, a2, (long)v3, 1);
if ((int)rtnl_talk(&genl_rth, v3, 0LL) >= 0)
return 0LL;
else
... | static int do_add(int argc, char **argv) {
struct {
struct nlmsghdr n;
struct genlmsghdr g;
char buf[(((0) + 4U - 1) & ~(4U - 1)) + (1024)];
} req = {
.n =
{
.nlmsg_type = (genl_family),
.nlmsg_flags = (0x01),
.nlmsg_len =
(((((... | iproute2-6.0.0 | ida | 0 |
void pred_quit() {
cleanup();
exit(HIDWORD(state[4]));
} | _Bool
pred_quit (const char *pathname, struct stat *stat_buf, struct predicate *pred_ptr)
{
(void)pathname;
(void)stat_buf;
(void)pred_ptr;
cleanup();
exit(state.exit_status);
} | findutils | ida | 0 |
uint find_encryption_policy(long param_1, uint param_2)
{
long *plVar1;
ulong uVar2;
uint *puVar3;
ulong local_30;
ulong local_28;
plVar1 = *(long **)(param_1 + 0x250);
if (plVar1 != (long *)0x0) {
local_30 = 0;
uVar2 = plVar1[1];
while (local_28 = uVar2, local_30 < local_28) {
uVar2 =... | __u32 find_encryption_policy(e2fsck_t ctx, ext2_ino_t ino) {
const struct encrypted_file_info *info = ctx->encrypted_files;
size_t l, r;
if (info == ((void *)0))
return ((__u32)-1);
l = 0;
r = info->file_ranges_count;
while (l < r) {
size_t m = l + (r - l) / 2;
const struct encrypted_file_range... | e2fsprogs-1.46.5 | ghidra | 6 |
long long get_backup_sb(struct_0 *a0, struct_1 *a1, unsigned long long a2,
struct_3 *a3) {
unsigned int v0;
void *v1;
void *v2;
unsigned long long v3;
unsigned long long v4;
void *v5;
unsigned long long v7;
unsigned long long v10;
v1 = 0;
v2 = 0;
v4 = 8193;
if (a1 && a1-... | blk64_t get_backup_sb(e2fsck_t ctx, ext2_filsys fs, const char *name,
io_manager manager) {
struct ext2_super_block *sb;
io_channel io = ((void *)0);
void *buf = ((void *)0);
int blocksize;
blk64_t superblock, ret_sb = 8193;
if (fs && fs->super) {
ret_sb = (fs->super->s_blocks_per... | e2fsprogs-1.46.5 | angr_dream | 38 |
unsigned long print_rxsc_list(unsigned short *a1) {
unsigned short *v1;
unsigned short *v2;
char v3;
long v4;
int v6;
unsigned short *i;
char v8[8];
long v9;
long v10;
unsigned short *v11;
unsigned short *v12;
unsigned long v13;
v13 = __readfsqword(0x28u);
v6 = *a1 - 4;
open_json_array(2L... | static void print_rxsc_list(struct rtattr *sc) {
int rem = ((int)((sc)->rta_len) -
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0)));
struct rtattr *c;
open_json_array(PRINT_JSON, "rx_sc");
for (c = ((void *)(((char *)(sc)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U... | iproute2-6.0.0 | ida | 0 |
long long pax_decode_header(struct_0 *a0, unsigned int a1,
unsigned long long a2, unsigned long long a3,
unsigned long long a4, unsigned long long a5) {
int tmp_15;
int tmp_30;
char v0;
unsigned long long v1;
char *v2;
void *v3;
unsigned long v4;
c... | static _Bool
pax_decode_header(struct tar_sparse_file *file) {
if (file->stat_info->sparse_major > 0) {
uintmax_t u;
char nbuf[((((((sizeof(uintmax_t) * 8) -
(!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) *
146 +
484) /
4... | tar | angr_dream | 134 |
wint_t *do_svis(wint_t *a1, wint_t a2, short a3, unsigned char a4,
const wchar_t *a5) {
wchar_t *v5;
wint_t *v9;
int i;
int v11;
long v12;
long v13;
v9 = a1;
v5 = wcschr(a5, a2);
v11 = v5 != 0LL;
if (v5)
goto LABEL_14;
if ((a3 & 0x4000) != 0) {
if (((*_ctype_b_loc())[a2] &... | static wchar_t *do_svis(wchar_t *dst, wint_t c, int flags, wint_t nextc,
const wchar_t *extra) {
int iswextra, i, shft;
uint64_t bmsk, wmsk;
iswextra = wcschr(extra, c) != ((void *)0);
if (!iswextra &&
((((flags) & 0x4000)
? ((*__ctype_b_loc())[(int)((c))] & (unsigned ... | libedit | ida | 11 |
int skip_tag_name(unsigned long long *a0, char *a1) {
char *v0;
unsigned int v1;
unsigned int v3;
*(&v1) = strlen(a1);
v0 = *(a0);
while (true) {
if (*(v0) != 32 && *(v0) != 9 && *(v0) != 10 && *(v0) != 13)
break;
v0 += 1;
}
if (*(v0) == 35) {
while (true) {
if (*(v0) == 10)
... | static int skip_tag_name(const char **text_p, const char *token) {
size_t len = strlen(token);
const char *text = *text_p;
do {
while (*(text) == ' ' || *(text) == '\t' || *(text) == '\n' ||
*(text) == '\r')
(text)++;
if (*(text) == '#') {
while (*(text) != '\n' && *(text) != '\0')... | acl-2.3.1 | angr_phoenix | 21 |
int baud_to_speed(unsigned long a0) {
unsigned int v1;
switch (a0) {
case 230400:
v1 = 4099;
return v1;
case 115200:
v1 = 4098;
return v1;
case 57600:
v1 = 4097;
return v1;
case 38400:
v1 = 15;
return v1;
case 19200:
v1 = 14;
return v1;
case 9600:
v1 = 13;
... | static speed_t baud_to_speed(int baud) {
switch (baud) {
case 0:
return 0000000;
case 50:
return 0000001;
case 75:
return 0000002;
case 110:
return 0000003;
case 134:
return 0000004;
case 150:
return 0000005;
case 200:
return 0000006;
case 300:
return 0000007;
case 60... | openssh-portable | angr_sailr | 0 |
int uInt64_isZero(char *a0) {
unsigned int v0;
unsigned int v2;
for (v0 = 0; v0 <= 7; v0 += 1) {
if (a0[v0]) {
v2 = 0;
return v2;
}
}
v2 = 1;
return v2;
} | static Bool uInt64_isZero(UInt64 *n) {
Int32 i;
for (i = 0; i < 8; i++)
if (n->b[i] != 0)
return 0;
return 1;
} | bzip2 | angr_sailr | 0 |
long path_in_hostfiles(const char *a1, long a2, unsigned int a3) {
unsigned int i;
for (i = 0; i < a3; ++i) {
if (!strcmp(a1, *(const char **)(8LL * i + a2)))
return 1LL;
}
return 0LL;
} | static int path_in_hostfiles(const char *path, char **hostfiles,
u_int num_hostfiles) {
u_int i;
for (i = 0; i < num_hostfiles; i++) {
if (strcmp(path, hostfiles[i]) == 0)
return 1;
}
return 0;
} | openssh-portable | ida | 0 |
char *make_absolute(const char *a1, long a2) {
size_t v2;
char *v3;
if (a2 && *a1 != 47)
return (char *)sh_makepath(a2, a1, 0LL);
v2 = strlen(a1);
v3 = (char *)sh_xmalloc(v2 + 1, "general.c", 846LL);
return strcpy(v3, a1);
} | char *make_absolute(string, dot_path) const char *string, *dot_path;
{
char *result;
if (dot_path == 0 || ((string)[0] == '/'))
result = (char *)strcpy(sh_xmalloc((1 + strlen(string)), "general.c", 846),
(string));
else
result = sh_makepath(dot_path, string, 0);
return (re... | bash | ida | 5 |
long long pred_atime(unsigned long a0, unsigned long long a1, void *a2) {
unsigned long v0;
v0 = a0;
return pred_timewindow(get_stat_atime(a1), a2, a2, 0x15180);
} | _Bool
pred_atime (const char *pathname, struct stat *stat_buf, struct predicate *pred_ptr)
{
(void)&pathname;
return pred_timewindow(get_stat_atime(stat_buf), pred_ptr, 86400);
} | findutils | angr_sailr | 0 |
int client_request_forwarded_streamlocal(unsigned long long a0,
unsigned long a1, unsigned long a2) {
unsigned long long v0;
unsigned int v1;
unsigned long v2;
unsigned int v3;
char v4;
unsigned long v5;
unsigned long long v6;
unsigned long long v7;
v2 = a1;
... | static Channel *client_request_forwarded_streamlocal(struct ssh *ssh,
const char *request_type,
int rchan) {
Channel *c = ((void *)0);
char *listen_path;
int r;
if ((r = sshpkt_get_cstring(ssh, &listen_pat... | openssh-portable | angr_sailr | 5 |
void read_igmp(unsigned long long a0) {
unsigned long long v0;
void *v1;
void *v2;
char *v3;
void *v4;
char v5;
char v6;
char v7;
char v8;
unsigned short v9;
unsigned short v10;
unsigned short v11;
char v12;
char v13;
char v14;
unsigned long long v16;
unsigned long long *v17;
unsigne... | static void read_igmp(struct ma_info **result_p) {
struct ma_info m = {
.addr.family = 2,
.addr.bitlen = 32,
.addr.bytelen = 4,
};
char buf[256];
FILE *fp = fopen("/proc/net/igmp", "r");
if (!fp)
return;
if (!fgets(buf, sizeof(buf), fp)) {
fclose(fp);
return;
}
while (fge... | iproute2-6.0.0 | angr_dream | 17 |
long long group_map_translate(unsigned long a0, unsigned int *a1,
unsigned long long *a2) {
unsigned int v0;
unsigned long long v1[3];
unsigned long v2;
void *v4;
v0 = 1;
if (group_map) {
v2 = a0;
v1[0] = hash_lookup(group_map, &v2, &v2);
if (v1) {
*(a1) = v1... | int group_map_translate(gid_t gid, gid_t *new_gid, char const **new_name) {
int rc = 1;
if (group_map) {
struct mapentry ent, *res;
ent.orig_id = gid;
res = hash_lookup(group_map, &ent);
if (res) {
*new_gid = res->new_id;
*new_name = res->new_name;
return 0;
}
}
if (grou... | tar | angr_dream | 18 |
void usage(unsigned long a0) {
fprintf(stderr,
"Usage: %s {-e VAR[=VAL] | [-t SECONDS] "
"{0|1|2|3|4|5|6|S|s|Q|q|A|a|B|b|C|c|U|u}}\n",
a0);
exit(0x1);
} | static void usage(char *s) {
fprintf(stderr,
"Usage: %s {-e VAR[=VAL] | [-t SECONDS] "
"{0|1|2|3|4|5|6|S|s|Q|q|A|a|B|b|C|c|U|u}}\n",
s);
exit(1);
} | sysvinit | angr_dream | 0 |
long long make_ancestor(unsigned long long a0, char *a1, struct_0 *a2) {
unsigned int v0;
unsigned int v1;
unsigned long long v4;
if (a2->field_18 && defaultcon(a2->field_18, a1, 0x4000, a1) < 0 &&
(ignorable_ctx_err(*(__errno_location())) ^ 1)) {
v4 = quotearg_style(0x4, a0);
error(0x0, *(__errn... | static int make_ancestor(char const *dir, char const *component,
void *options) {
struct mkdir_options const *o = options;
if (o->set_security_context &&
defaultcon(o->set_security_context, component, 0040000) < 0 &&
!ignorable_ctx_err((*__errno_location())))
error(0, (*__e... | coreutils | angr_phoenix | 0 |
void rl_maybe_restore_sighandler(int param_1, sigaction *param_2)
{
long in_FS_OFFSET;
sigaction local_a8;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
sigemptyset(&local_a8.sa_mask);
local_a8.sa_flags = 0;
if (param_2->__sigaction_handler != 1) {
sigaction(param_1, param_2, &local_a8);... | static void rl_maybe_restore_sighandler(int sig, sighandler_cxt *handler) {
sighandler_cxt dummy;
sigemptyset(&dummy.sa_mask);
dummy.sa_flags = 0;
if (handler->__sigaction_handler.sa_handler != ((__sighandler_t)1))
sigaction(sig, handler, &dummy);
} | bash | ghidra | 13 |
int lwtunnel_parse_geneve_opts(unsigned long a0, unsigned long long a1,
unsigned long long a2) {
unsigned long v0;
unsigned int v1;
unsigned int v2;
unsigned int v4;
v0 = a0;
*(&v2) = strsep(&v0, ",");
while (true) {
if (*(&v2)) {
v1 = lwtunnel_parse_geneve_opt(*(... | static int lwtunnel_parse_geneve_opts(char *str, size_t len,
struct rtattr *rta) {
char *token;
int err;
token = strsep(&str, ",");
while (token) {
err = lwtunnel_parse_geneve_opt(token, len, rta);
if (err)
return err;
token = strsep(&str, ",");
}
r... | iproute2-6.0.0 | angr_sailr | 5 |
void compressedStreamEOF(void)
{
if (noisy != '\0') {
fprintf(stderr,
"\n%s: Compressed file ends unexpectedly;\n\tperhaps it is "
"corrupted? *Possible* reason follows.\n",
progName);
perror(progName);
showFileNames();
cadvise();
}
cleanUpAndFail(2);
} | static void compressedStreamEOF(void) {
if (noisy) {
fprintf(stderr,
"\n%s: Compressed file ends unexpectedly;\n\t"
"perhaps it is corrupted? *Possible* reason follows.\n",
progName);
perror(progName);
showFileNames();
cadvise();
}
cleanUpAndFail(2);
} | bzip2 | ghidra | 0 |
int _rl_forward_char_internal(unsigned long a0) {
unsigned int v0;
v0 = _rl_find_next_mbchar(rl_line_buffer, rl_point, a0, 0x1);
if (v0 >= rl_end && !rl_editing_mode && _rl_keymap == 5243032)
v0 = _rl_find_prev_mbchar(rl_line_buffer, rl_end, 0x1, rl_end);
if (rl_end < 0)
rl_end = 0;
if (v0 > rl_end)
... | int _rl_forward_char_internal(int count) {
int point;
point = _rl_find_next_mbchar(rl_line_buffer, rl_point, count, 0x01);
if (point >= rl_end &&
(rl_editing_mode == 0 && _rl_keymap == vi_movement_keymap))
point = _rl_find_prev_mbchar(rl_line_buffer, rl_end, 0x01);
if (rl_end < 0)
rl_end = 0;
... | bash | angr_sailr | 2 |
int main(int param_1, undefined8 *param_2)
{
long lVar1;
int iVar2;
undefined8 uVar3;
int *piVar4;
char *pcVar5;
undefined8 *local_58;
int local_4c[3];
char local_3f;
char local_3e;
char local_3d;
int local_3c;
int local_38;
int local_34;
char *local_30;
long *local_28;
char *local_20;
... | int main(int argc, char **argv) {
int optc;
_Bool ignore_environment = 0;
_Bool opt_nul_terminate_output = 0;
char const *newdir = ((void *)0);
;
set_program_name(argv[0]);
setlocale(6, "");
bindtextdomain("coreutils", "/usr/local/share/locale");
textdomain("coreutils");
initialize_exit_failure(... | coreutils | ghidra | 39 |
long key_sig_algorithm(long a1, _DWORD *a2) {
long v2;
long v3;
long v5;
char *stringp;
long v7;
const char *v8;
void *v9;
char *v10;
void *ptr;
unsigned long v12;
v12 = __readfsqword(0x28u);
v7 = 0LL;
if (a1 && *(_QWORD *)(*(_QWORD *)(a1 + 8) + 64LL) && (!*a2 || *a2 == 4) &&
(*a2 != 4 ... | static char *key_sig_algorithm(struct ssh *ssh, const struct sshkey *key) {
char *allowed, *oallowed, *cp, *tmp, *alg = ((void *)0);
const char *server_sig_algs;
if (ssh == ((void *)0) || ssh->kex->server_sig_algs == ((void *)0) ||
(key->type != KEY_RSA && key->type != KEY_RSA_CERT) ||
(key->type == ... | openssh-portable | ida | 4 |
bool _rl_isearch_cleanup(undefined8 param_1, int param_2)
{
if (-1 < param_2) {
_rl_isearch_fini(param_1);
}
_rl_scxt_dispose(param_1, 0);
_rl_iscxt = 0;
rl_readline_state = rl_readline_state & 0xffffffffffffff7f;
return param_2 != 0;
} | int _rl_isearch_cleanup(_rl_search_cxt *cxt, int r) {
if (r >= 0)
_rl_isearch_fini(cxt);
_rl_scxt_dispose(cxt, 0);
_rl_iscxt = 0;
(rl_readline_state &= ~(0x0000080));
return (r != 0);
} | bash | ghidra | 0 |
int do_print_resource_record(unsigned long a0, char *a1, unsigned long long a2,
unsigned long a3) {
unsigned long v0;
unsigned int v1;
char v2;
void *v3;
char v4;
unsigned long long v5;
unsigned long v6;
unsigned long long v7;
unsigned long v8;
char v9;
unsigned int v1... | static int do_print_resource_record(struct passwd *pw, char *fname, char *hname,
int print_generic) {
struct sshkey *public;
char *comment = ((void *)0);
struct stat st;
int r;
if (fname == ((void *)0))
sshfatal("ssh-keygen.c", __func__, 1490, 1, SYSLOG_LEVEL_FATAL, ((... | openssh-portable | angr_sailr | 0 |
uint tty_update_flag(long param_1, uint param_2, int param_3, int param_4)
{
return param_2 & ~*(uint *)(((long)param_3 * 5 + (long)param_4 + 0xd) * 0x10 +
param_1 + 0xc) |
*(uint *)(((long)param_3 * 5 + (long)param_4 + 0xd) * 0x10 + param_1 +
8);
} | static tcflag_t tty_update_flag(EditLine *el, tcflag_t f, int mode, int kind) {
f &= ~el->el_tty.t_t[mode][kind].t_clrmask;
f |= el->el_tty.t_t[mode][kind].t_setmask;
return f;
} | libedit | ghidra | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.