input stringlengths 18 318k | output stringlengths 26 172k | repo_name stringclasses 23
values | decompiler stringclasses 5
values | ged int64 0 1.77k |
|---|---|---|---|---|
void usage(unsigned long a0) {
unsigned long v0;
unsigned long v1;
unsigned long v2;
unsigned long v4;
unsigned long v5;
unsigned long v6;
v2 = v4;
v1 = v5;
v0 = v6;
if (a0) {
fprintf(stderr, gettext("Try '%s --help' for more information.\n"));
} else {
printf(gettext("Usage: %s [OPTION] ... | 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] NAME...\n")
,
program_name);
fputs_unlocked(
gettext("Output... | coreutils | angr_dream | 2 |
long off_from_header(_BYTE *a1, size_t a2) {
return from_header(a1, a2, (long)"off_t", 0LL, 0x7FFFFFFFFFFFFFFFuLL, 0, 0);
} | off_t off_from_header(const char *p, size_t s) {
return from_header(
p, s, "off_t", 0,
((off_t)(!(!((off_t)0 < (off_t)-1))
? (off_t)-1
: ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + 1))),
0, 0);
} | tar | ida | 13 |
void print_deferred_heredocs(char a0[2]) {
unsigned long long v1;
unsigned long long v2;
if (a0 && a0[0] && (a0[1] || a0[0] != 59))
cprintf("%s");
v1 = deferred_heredocs;
if (deferred_heredocs) {
print_heredoc_bodies(deferred_heredocs);
if (a0 && a0[0] && (a0[1] || a0[0] != 59))
cprintf(" "... | static void print_deferred_heredocs(cstring) const char *cstring;
{
if (cstring && cstring[0] && (cstring[0] != ';' || cstring[1]))
cprintf("%s", cstring);
if (deferred_heredocs) {
print_heredoc_bodies(deferred_heredocs);
if (cstring && cstring[0] && (cstring[0] != ';' || cstring[1]))
cprintf(" "... | bash | angr_dream | 0 |
void xfrm_xfrma_print(struct_0 *a0, unsigned long a1, void *a2, char *a3,
unsigned long long a4) {
unsigned int v0;
int tmp_11;
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned long v4;
unsigned long v5;
unsigned short *v6;
unsigned short *v7;
unsigned short *v8;
u... | void xfrm_xfrma_print(struct rtattr *tb[], __u16 family, FILE *fp,
const char *prefix, _Bool nokeys) {
if (tb[XFRMA_MARK]) {
struct rtattr *rta = tb[XFRMA_MARK];
struct xfrm_mark *m =
((void *)(((char *)(rta)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) ... | iproute2-6.0.0 | angr_sailr | 14 |
long dowait(int a1, long a2) {
unsigned int v4;
int v5;
if (a2 && *(_BYTE *)(a2 + 30))
a1 = 0;
if (!a1 && !gotsigchld)
return 1LL;
LOBYTE(v4) = 1;
do {
v5 = waitone(a1, a2);
v4 = (v5 != 0) & (unsigned char)v4;
a1 &= ~4u;
if (!v5 || a2 && *(_BYTE *)(a2 + 30))
a1 = 0;
} while ... | static int dowait(int block, struct job *jp) {
int gotchld = *(volatile int *)&gotsigchld;
int rpid;
int pid;
if (jp && jp->state != 0)
block = 0;
if (block == 0 && !gotchld)
return 1;
rpid = 1;
do {
pid = waitone(block, jp);
rpid &= !!pid;
block &= ~4;
if (!pid || (jp && jp->... | dash-0.5.11+git20210903+057cd650a4ed | ida | 0 |
void Rq_encode(unsigned long long a0, unsigned short *a1) {
unsigned int v0;
char v1;
char v2;
char v3;
unsigned long long v5;
unsigned long long *v6;
unsigned long long v7;
for (v0 = 0; v0 <= 760; v0 = __addvsi3(v0, 0x1, a1[v0] + 2295)) {
v5 = a1[v0] + 2295;
*(&(&v1)[2 * v0]) = a1[v0] + 2295;
... | static void Rq_encode(unsigned char *s, const Fq *r) {
crypto_uint16 R[761], M[761];
int i;
for (i = 0; i < 761; ++i)
R[i] = r[i] + ((4591 - 1) / 2);
for (i = 0; i < 761; ++i)
M[i] = 4591;
Encode(s, R, M, 761);
} | openssh-portable | angr_dream | 0 |
void catch_signals(void)
{
_exit(10);
} | static void catch_signals(__attribute__((unused)) int sig) { _exit(10); } | shadow | ghidra | 0 |
long long sys_spawn_shell() {
char v0;
unsigned int v1;
unsigned long long v2;
v2 = getenv("SHELL");
if (!v2)
v2 = "/bin/sh";
v1 = xfork();
if (!v1) {
priv_set_restore_linkdir();
execlp(v2, "-sh");
exec_fatal(v2);
}
while (true) {
if (waitpid(v1, &v0, 0x0) != -1)
break;
... | void sys_spawn_shell(void) {
pid_t child;
const char *shell = getenv("SHELL");
if (!shell)
shell = "/bin/sh";
child = xfork();
if (child == 0) {
priv_set_restore_linkdir();
execlp(shell, "-sh", "-i", ((void *)0));
exec_fatal(shell);
} else {
int wait_status;
while (waitpid(child, &wa... | tar | angr_dream | 12 |
_DWORD *find_parser(char *a1) {
char *s2;
int i;
s2 = a1;
if (!strncmp("-newer", a1, 6uLL) && strlen(a1) == 8)
return found_parser((long)a1, parse_entry_newerXY);
if (*a1 == 45)
s2 = a1 + 1;
for (i = 0; (&off_6EE8)[4 * i]; ++i) {
if (!strcmp((&off_6EE8)[4 * i], s2))
return found_parser((l... | const struct parser_table *find_parser(const char *search_name) {
int i;
const char *original_arg = search_name;
if (0 == strncmp("-newer", search_name, 6) && (8 == strlen(search_name))) {
return found_parser(original_arg, &parse_entry_newerXY);
}
if (*search_name == '-')
search_name++;
for (i = ... | findutils | ida | 0 |
long kex_default_pk_alg(void)
{
void *__ptr;
if (pkalgs_19152 == 0) {
__ptr = (void *)sshkey_alg_list(0, 0, 1, 0x2c);
pkalgs_19152 = match_filter_allowlist(
"ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh."
"com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nis... | const char *kex_default_pk_alg(void) {
static char *pkalgs;
if (pkalgs == ((void *)0)) {
char *all_key;
all_key = sshkey_alg_list(0, 0, 1, ',');
pkalgs =
match_filter_allowlist("ssh-ed25519-cert-v01@openssh.com,"
"ecdsa-sha2-nistp256-cert-v01@openssh.com,"
... | openssh-portable | ghidra | 0 |
void idname_free(struct_0 *a0) {
unsigned long long v1;
if (a0) {
free(a0->field_8);
v1 = free(a0);
}
return;
} | static void idname_free(struct idname *idname) {
if (idname == ((void *)0))
return;
free(idname->name);
free(idname);
} | openssh-portable | angr_dream | 6 |
int feputs(char *a1, FILE *a2) {
while (*a1) {
if (strchr("\t\r\n", (unsigned char)*a1) || *a1 > 31 ||
(unsigned char)*a1 > 0x9Fu)
fputc((unsigned char)*a1, a2);
else
fprintf(a2, "^%c", (*a1 & 0x1Fu) + 64);
++a1;
}
return fflush(a2);
} | static void feputs(const char *line, FILE *fp) {
unsigned char *p;
for (p = (unsigned char *)line; *p; p++) {
if (strchr("\t\r\n", *p) || (*p >= 32 && *p <= 127) || (*p >= 160)) {
fputc(*p, fp);
} else {
fprintf(fp, "^%c", (*p & 0x1f) + 'A' - 1);
}
}
fflush(fp);
} | sysvinit | ida | 8 |
long history_def_insert(long a1, _QWORD *a2, const wchar_t *a3) {
long v3;
_QWORD *ptr;
ptr = malloc(0x28uLL);
if (ptr) {
ptr[1] = wcsdup(a3);
if (ptr[1]) {
ptr[2] = 0LL;
*(_DWORD *)ptr = ++*(_DWORD *)(a1 + 56);
ptr[3] = *(_QWORD *)(a1 + 24);
ptr[4] = a1;
*(_QWORD *)(*(_QW... | static int history_def_insert(history_t *h, HistEventW *ev,
const wchar_t *str) {
hentry_t *c;
c = malloc(sizeof(*c));
if (c == ((void *)0))
goto oomem;
if ((c->ev.str = wcsdup(str)) == ((void *)0)) {
free(c);
goto oomem;
}
c->data = ((void *)0);
c->ev.num = ++h-... | libedit | ida | 0 |
int BZ2_bzWriteOpen(unsigned int *a0, void *a1, unsigned long a2,
unsigned long a3, unsigned long a4) {
unsigned int v0;
unsigned int v1;
void *v2;
unsigned int v4;
v0 = a4;
v2 = 0;
if (a0)
*(a0) = 0;
if (v2)
*(&v2[5096]) = 0;
if (a1 && a2 > 0 && a2 <= 9 && v0 >= 0 && v0 <... | BZFILE *BZ2_bzWriteOpen(int *bzerror, FILE *f, int blockSize100k, int verbosity,
int workFactor) {
Int32 ret;
bzFile *bzf = ((void *)0);
{
if (bzerror != ((void *)0))
*bzerror = 0;
if (bzf != ((void *)0))
bzf->lastErr = 0;
};
if (f == ((void *)0) || (blockSize100k... | bzip2 | angr_sailr | 9 |
int ge(unsigned long a0, unsigned long a1) {
unsigned int v0;
v0 = a0;
v0 -= a1;
v0 >>= 31;
v0 ^= 1;
return v0;
} | static crypto_uint32 ge(crypto_uint32 a, crypto_uint32 b) {
unsigned int x = a;
x -= (unsigned int)b;
x >>= 31;
x ^= 1;
return x;
} | openssh-portable | angr_dream | 0 |
long long gl_linked_node_nx_set_value(unsigned long a0, struct_0 *a1,
unsigned long a2) {
char v0;
unsigned long v1;
v1 = a0;
a1->field_10 = *(&v0);
return 0;
} | static int gl_linked_node_nx_set_value(gl_list_t list
__attribute__((__unused__)),
gl_list_node_t node, const void *elt) {
node->value = elt;
return 0;
} | gnutls | angr_sailr | 0 |
void shorten_name(char *a0) {
unsigned int v0;
int tmp_25;
unsigned int v1;
unsigned int v2;
struct_0 *v3;
char *v4;
unsigned long long v6;
unsigned long long v7;
unsigned long long v8;
unsigned long long v9;
v3 = 0;
v0 = 3;
v1 = strlen(a0);
if (decompress) {
if (v1 <= 1)
gzip_err... | static void shorten_name(name) char *name;
{
int len;
char *trunc = ((void *)0);
int plen;
int min_part = 3;
char *p;
len = strlen(name);
if (decompress) {
if (len <= 1)
gzip_error("name too short");
name[len - 1] = '\0';
return;
}
p = get_suffix(name);
if (!p)
gzip_error("can... | gzip-1.12 | angr_dream | 13 |
int ch_enlargebufs(unsigned long long a0[125], unsigned long a1) {
unsigned long v0;
unsigned long v1;
unsigned long v2;
unsigned long v3;
unsigned long v4;
unsigned int v6;
v1 = (a0[13] - a0[10] >> 2) + 2;
if (a1 > v1) {
for (v0 = v1 * 2; a1 > v0 - v1; v0 *= 2)
;
}
v2 = realloc(a0[10], v... | ch_enlargebufs(EditLine *el, size_t addlen) {
size_t sz, newsz;
wchar_t *newbuffer, *oldbuf, *oldkbuf;
sz = (size_t)(el->el_line.limit - el->el_line.buffer + 2);
newsz = sz * 2;
if (addlen > sz) {
while (newsz - sz < addlen)
newsz *= 2;
}
newbuffer = realloc(el->el_line.buffer, newsz * sizeof... | libedit | angr_dream | 16 |
void connect_to(void *a0, unsigned long a1, unsigned long a2, unsigned int a3,
unsigned long a4) {
unsigned int v0;
struct_0 *v1;
char v2;
char v3;
char v4;
char v5;
void *v8;
struct_0 *v9;
memset(&v2, 0x0, 0x20);
v0 = connect_to_helper(a0, a1, a2, 0x1, a3, a4, &v2, 0x0, 0x0);
if ... | static Channel *connect_to(struct ssh *ssh, const char *host, int port,
char *ctype, char *rname) {
struct channel_connect cctx;
Channel *c;
int sock;
memset(&cctx, 0, sizeof(cctx));
sock = connect_to_helper(ssh, host, port, SOCK_STREAM, ctype, rname, &cctx,
... | openssh-portable | angr_phoenix | 5 |
long long crypto_kem_sntrup761_enc(char *a0, char *a1, unsigned int a2) {
Encap(a0, a1, a2);
return 0;
} | int crypto_kem_sntrup761_enc(unsigned char *c, unsigned char *k,
const unsigned char *pk) {
Encap(c, k, pk);
return 0;
} | openssh-portable | angr_sailr | 0 |
void emit_ancillary_info(char *a0) {
unsigned 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 long v... | 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 |
unsigned long update_gecos(long a1, long a2) {
FILE *v2;
char *v3;
long v4;
long v5;
char *v6;
long v7;
long v8;
char *v9;
long v10;
long v11;
char *v12;
long v13;
long v14;
long v15;
long v16;
long v17;
long v18;
char *v19;
long v20;
long v21;
char *v22;
const char *v23;
l... | static void update_gecos(const char *user, char *gecos) {
const struct passwd *pw;
struct passwd pwent;
if (setuid(0) != 0) {
fputs(gettext("Cannot change ID to root.\n"), stderr);
do {
char *old_locale = setlocale(6, ((void *)0));
char *saved_locale = ((void *)0);
if (((void *)0) != ol... | shadow | ida | 21 |
void rtrim(char *param_1)
{
ushort **ppuVar1;
size_t local_10;
local_10 = strlen(param_1);
if (local_10 != 0) {
while (local_10 = local_10 - 1, local_10 != 0) {
ppuVar1 = __ctype_b_loc();
if (((*ppuVar1)[param_1[local_10]] & 0x2000) != 0) {
param_1[local_10] = '\0';
}
}
}
... | void rtrim(char *s) {
size_t i;
if ((i = strlen(s)) == 0)
return;
for (i--; i > 0; i--) {
if (((*__ctype_b_loc())[(int)(((int)s[i]))] & (unsigned short int)_ISspace))
s[i] = '\0';
}
} | openssh-portable | ghidra | 14 |
long long local_is_dir(char *a0) {
char v0;
char v1;
void *v3;
if (stat(a0, &v0) == -1)
v3 = 0;
else
v3 = (*(&v1) & 0xf000) == 0x4000;
return v3;
} | int local_is_dir(const char *path) {
struct stat sb;
if (stat(path, &sb) == -1)
return (0);
return (((((sb.st_mode)) & 0170000) == (0040000)));
} | openssh-portable | angr_phoenix | 5 |
void initialize_itemlist(uint *param_1)
{
(**(code **)(param_1 + 2))(param_1);
*param_1 = *param_1 | 4;
*param_1 = *param_1 & 0xfffffffd;
return;
} | void initialize_itemlist(itp) ITEMLIST *itp;
{
(*itp->list_getter)(itp);
itp->flags |= 0x004;
itp->flags &= ~0x002;
} | bash | ghidra | 0 |
void locale_setblanks() {
unsigned int v0;
int tmp_80;
unsigned long long v2;
unsigned long long v3;
v0 = 0;
while (true) {
v2 = sh_syntabsiz;
if (v0 >= sh_syntabsiz)
break;
*(&v2) = *((*(__ctype_b_loc()) + v0 * 2));
*(&v2) = v2 & 1;
if (v2) {
*(&(&sh_syntaxtab)[4 * v0]) = *... | static void locale_setblanks() {
int x;
for (x = 0; x < sh_syntabsiz; x++) {
if (((*__ctype_b_loc())[(int)(((unsigned char)x))] &
(unsigned short int)_ISblank))
sh_syntaxtab[x] |= 0x0002 | 0x2000;
else if (((x) ? ((char *)mbschr(("()<>;&| \t\n"), (x)) !=
(char *)((void *... | bash | angr_sailr | 13 |
void user_cancel(unsigned long a0) {
char v0;
unsigned long long v1;
unsigned long v2;
unsigned long v3;
void *v4;
char v5;
unsigned long long *v7;
unsigned long long v8;
v1 = getdef_str("USERDEL_CMD");
if (v1) {
v2 = v1;
v3 = a0;
v4 = 0;
run_command(v1, &v2, 0x0, &v0);
}
v8 = *... | static void user_cancel(const char *user) {
const char *cmd;
const char *argv[3];
int status;
cmd = getdef_str("USERDEL_CMD");
if (((void *)0) == cmd) {
return;
}
argv[0] = cmd;
argv[1] = user;
argv[2] = (char *)0;
(void)run_command(cmd, argv, ((void *)0), &status);
} | shadow | angr_phoenix | 6 |
long long do_redirections(void *a0, unsigned long a1) {
unsigned int v0;
void *v1;
unsigned long long *v2;
void *v4;
if ((a1 & 2)) {
if (redirection_undo_list) {
dispose_redirects(redirection_undo_list);
redirection_undo_list = 0;
}
if (exec_redirection_undo_list)
dispose_exec_r... | int do_redirections(list, flags)
REDIRECT *list;
int flags;
{
int error;
REDIRECT *temp;
char *fn;
if (flags & 0x02) {
if (redirection_undo_list) {
dispose_redirects(redirection_undo_list);
redirection_undo_list = (REDIRECT *)((void *)0);
}
if (exec_redirection_undo_list)
dispose_... | bash | angr_dream | 13 |
void initlog(unsigned long a0, char *a1, unsigned long a2, unsigned long a3,
unsigned long a4, unsigned long a5) {
unsigned int v0;
unsigned int v1;
unsigned long v2;
unsigned long v3;
char v4;
char v5;
char v6;
unsigned long long v7;
char v8;
unsigned long v9;
unsigned long v10;
un... | void initlog(int loglevel, char *s, ...) {
va_list va_alist;
char buf[256];
sigset_t nmask, omask;
__builtin_va_start(va_alist, s);
vsnprintf(buf, sizeof(buf), s, va_alist);
__builtin_va_end(va_alist);
if (loglevel & 2) {
sigfillset(&nmask);
sigprocmask(0, &nmask, &omask);
openlog("init", ... | sysvinit | angr_dream | 21 |
int apply_suffix(unsigned long long *a0, unsigned long a1) {
unsigned int v0;
unsigned int v2;
unsigned long long v3;
int v4;
if (a1 == 115) {
LABEL_400384:
v0 = 1;
goto LABEL_4003af;
} else {
if (a1 > 115) {
LABEL_4003a8:
v2 = 0;
goto LABEL_4003cd;
}
if (a1 == 109) {
... | static _Bool
apply_suffix(double *x, char suffix_char) {
int multiplier;
switch (suffix_char) {
case 0:
case 's':
multiplier = 1;
break;
case 'm':
multiplier = 60;
break;
case 'h':
multiplier = 60 * 60;
break;
case 'd':
multiplier = 60 * 60 * 24;
break;
default:
ret... | coreutils | angr_phoenix | 40 |
void append_to_list(struct_0 *a0, unsigned long a1, unsigned long a2) {
unsigned long v0;
unsigned long v1;
unsigned int v2;
unsigned long v3;
struct_0 *v5;
v1 = a1;
v0 = a2;
*(&v2) = xsum(a0->field_8, 0x1);
if (*(&v2) == -1)
error(0x1, 0x0, "too many arguments for %s");
v3 = reallocarray(a0->f... | static void append_to_list(struct gnutls_cli_list *list, const char *name,
const char *arg) {
const char **tmp;
size_t new_count = xsum(list->count, 1);
if (((new_count) == (18446744073709551615UL)))
error(1, 0, "too many arguments for %s", name);
tmp = reallocarray(list->args, ... | gnutls | angr_dream | 0 |
void clear_pass() {
unsigned long long v1;
unsigned long long v2;
unsigned long long v3;
v1 = pass;
if (pass) {
v2 = strlen(pass);
v3 = freezero(pass, v2, v2);
pass = 0;
return;
}
return;
} | static void clear_pass(void) {
if (pass) {
freezero(pass, strlen(pass));
pass = ((void *)0);
}
} | openssh-portable | angr_sailr | 3 |
void change_attributes(unsigned long long a0, unsigned long a1,
unsigned long long a2) {
char v0;
unsigned long long v2;
unsigned long long v4;
unsigned long long v5;
unsigned long long v6;
v0 = 0;
if (owner_id != -1 || group_id != -1) {
v2 = lchownat(a1, a2, owner_id, group_id... | static _Bool
change_attributes(char const *name, int dirfd, char const *relname) {
_Bool ok = 0;
if (!(owner_id == (uid_t)-1 && group_id == (gid_t)-1) &&
lchownat(dirfd, relname, owner_id, group_id) != 0)
error(0, (*__errno_location()), gettext("cannot change ownership of %s"),
quotearg_style(... | coreutils | angr_dream | 18 |
undefined8 check_host_key(char *param_1, undefined8 param_2, undefined8 param_3,
short param_4, undefined8 param_5, int param_6,
int param_7, undefined8 *param_8, uint param_9,
long param_10, uint param_11, long param_12)
{
undefined8 uVar... | static int check_host_key(char *hostname, const struct ssh_conn_info *cinfo,
struct sockaddr *hostaddr, u_short port,
struct sshkey *host_key, int readonly,
int clobber_port, char **user_hostfiles,
u_int num_user_hos... | openssh-portable | ghidra | 99 |
dirent *readdir_ignoring_dot_and_dotdot(DIR *param_1)
{
char cVar1;
dirent *pdVar2;
do {
pdVar2 = readdir(param_1);
if (pdVar2 == (dirent *)0x0) {
return (dirent *)0x0;
}
cVar1 = dot_or_dotdot(pdVar2->d_name);
} while (cVar1 == '\x01');
return pdVar2;
} | static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) {
while (1) {
struct dirent const *dp = readdir(dirp);
if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name))
return dp;
}
} | coreutils | ghidra | 2 |
long long monotime() {
char v0;
monotime_ts(&v0);
return *(&v0);
} | time_t monotime(void) {
struct timespec ts;
monotime_ts(&ts);
return ts.tv_sec;
} | openssh-portable | angr_phoenix | 0 |
long long print_ascii(unsigned long a0, unsigned long a1, unsigned long a2,
unsigned long a3, unsigned long a4, unsigned long a5) {
unsigned long v0;
int tmp_47;
char v1;
unsigned int v2;
unsigned int v3;
char *v4;
unsigned long v5;
unsigned long long v6;
char v7;
unsigned int ... | static void
print_ascii(size_t fields, size_t blank, void const *block,
__attribute__((__unused__)) char const *unused_fmt_string,
int width, int pad) {
unsigned char const *p = block;
uintmax_t i;
int pad_remaining = pad;
for (i = fields; blank < i; i--) {
int next_pad = pad * (i - ... | coreutils | angr_dream | 14 |
long long norm_face(void *a0, unsigned long a1) { return memset(a0, 0x30, a1); } | static void norm_face(char *face, int n) { memset(face, '0', n); } | bash | angr_dream | 0 |
undefined4 rta_getattr_u32(long param_1)
{
return *(undefined4 *)(param_1 + 4);
} | static inline __u32 rta_getattr_u32(const struct rtattr *rta) {
return *(__u32 *)((
void *)(((char *)(rta)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0))));
} | iproute2-6.0.0 | ghidra | 0 |
void usage() {
fprintf(stderr,
"Usage: ip route { list | flush } SELECTOR\n ip route save "
"SELECTOR\n ip route restore\n ip route showdump\n "
"ip route get [ ROUTE_GET_FLAGS ] ADDRESS\n "
" [ from ADDRESS iif STRING ]\n ... | static void usage(void) {
fprintf(
stderr,
"Usage: ip route { list | flush } SELECTOR\n"
" ip route save SELECTOR\n"
" ip route restore\n"
" ip route showdump\n"
" ip route get [ ROUTE_GET_FLAGS ] ADDRESS\n"
" [ from ADDRESS ... | iproute2-6.0.0 | angr_phoenix | 0 |
undefined8 tty__getcharindex(undefined4 param_1)
{
undefined8 uVar1;
switch (param_1) {
case 0:
uVar1 = 0;
break;
case 1:
uVar1 = 1;
break;
case 2:
uVar1 = 2;
break;
case 3:
uVar1 = 3;
break;
case 4:
uVar1 = 4;
break;
case 5:
uVar1 = 0xb;
break;
case 6... | static int tty__getcharindex(int i) {
switch (i) {
case 0:
return 0;
case 1:
return 1;
case 2:
return 2;
case 3:
return 3;
case 4:
return 4;
case 5:
return 11;
case 6:
return 16;
case 10:
return 8;
case 11:
return 9;
case 12:
return 14;
case 13:
... | libedit | ghidra | 35 |
void pad_down(int param_1)
{
int local_c;
local_c = param_1;
if (use_form_feed == '\0') {
for (; local_c != 0; local_c = local_c + -1) {
putchar_unlocked(10);
}
} else {
putchar_unlocked(0xc);
}
return;
} | static void pad_down(unsigned int lines) {
if (use_form_feed)
putchar_unlocked('\f');
else
for (unsigned int i = lines; i; --i)
putchar_unlocked('\n');
} | coreutils | ghidra | 6 |
int have_traps() { return trapcnt; } | static inline int have_traps(void) { return trapcnt; } | dash-0.5.11+git20210903+057cd650a4ed | angr_sailr | 0 |
int pkcs11_key_included(unsigned long long *a0, unsigned int *a1,
unsigned long long a2) {
unsigned int v0;
unsigned int v2;
v0 = 0;
while (true) {
if (v0 < *(a1)) {
v2 = sshkey_equal(a2, *((*(a0) + v0 * 8)), *((*(a0) + v0 * 8)));
if (v2) {
v2 = 1;
break;... | static int pkcs11_key_included(struct sshkey ***keysp, int *nkeys,
struct sshkey *key) {
int i;
for (i = 0; i < *nkeys; i++)
if (sshkey_equal(key, (*keysp)[i]))
return (1);
return (0);
} | openssh-portable | angr_dream | 10 |
long sh_memalign(long a1, long a2, char *a3, unsigned int a4) {
return internal_memalign(a1, a2, a3, a4);
} | void *sh_memalign(alignment, size, file, line)
size_t alignment;
size_t size;
const char *file;
int line;
{
return internal_memalign(alignment, size, file, line, 0x01);
} | bash | ida | 0 |
int skip_to_page(unsigned long a0) {
unsigned int v0;
unsigned int v1;
unsigned long long v2;
struct_0 *v3;
unsigned int v5;
for (v2 = 1; v2 < a0; v2 += 1) {
for (v1 = 1; v1 < lines_per_body; v1 += 1) {
v0 = 1;
for (v3 = column_vector; v0 <= columns; v3 = &v3[3].padding_0[4]) {
if (... | static _Bool
skip_to_page(uintmax_t page) {
for (uintmax_t n = 1; n < page; ++n) {
COLUMN *p;
int j;
for (int i = 1; i < lines_per_body; ++i) {
for (j = 1, p = column_vector; j <= columns; ++j, ++p)
if (p->status == OPEN)
skip_read(p, j);
}
last_line = 1;
for (j = 1, ... | coreutils | angr_dream | 0 |
void fail_exit(unsigned long a0) {
void *v0;
void *v1;
void *v2;
void *v3;
void *v4;
void *v5;
void *v6;
void *v7;
char *v8;
char *v9;
char *v10;
char *v11;
char *v12;
char *v13;
char *v14;
char *v15;
unsigned long v16;
unsigned long v17;
unsigned long v19;
unsigned long v20;
u... | static void fail_exit(int code) {
if (home_added) {
if (rmdir(prefix_user_home) != 0) {
fprintf(stderr, gettext("%s: %s was created, but could not be removed\n"),
Prog, prefix_user_home);
do {
char *old_locale = setlocale(6, ((void *)0));
char *saved_locale = ((void *)0);... | shadow | angr_phoenix | 36 |
void chacha_keysetup(uint *param_1, uint *param_2, int param_3)
{
uint *local_28;
undefined1 *local_10;
param_1[4] = *param_2;
param_1[5] = param_2[1];
param_1[6] = param_2[2];
param_1[7] = param_2[3];
if (param_3 == 0x100) {
local_28 = param_2 + 4;
local_10 = sigma;
} else {
local_10 = ta... | static void chacha_keysetup(chacha_ctx *x, const u8 *k, u32 kbits) {
const char *constants;
x->input[4] = (((u32)((k + 0)[0])) | ((u32)((k + 0)[1]) << 8) |
((u32)((k + 0)[2]) << 16) | ((u32)((k + 0)[3]) << 24));
x->input[5] = (((u32)((k + 4)[0])) | ((u32)((k + 4)[1]) << 8) |
((u... | libbsd-0.11.7 | ghidra | 0 |
char *last_device_for_mount(char *param_1)
{
int iVar1;
char *__ptr;
char **local_28;
char **local_20;
local_20 = (char **)0x0;
for (local_28 = mount_list; local_28 != (char **)0x0;
local_28 = (char **)local_28[6]) {
iVar1 = strcmp(local_28[1], param_1);
if (iVar1 == 0) {
local_20 = l... | static char *last_device_for_mount(char const *mount) {
struct mount_entry const *me;
struct mount_entry const *le = ((void *)0);
for (me = mount_list; me; me = me->me_next) {
if ((strcmp(me->me_mountdir, mount) == 0))
le = me;
}
if (le) {
char *devname = le->me_devname;
char *canon_dev = ... | coreutils | ghidra | 8 |
void print_forceinfo(struct_0 *a0) {
void *v0;
unsigned int v1;
unsigned long long v3;
v0 = m_strdup(gettext(a0->field_10));
*(&v1) = strtok(v0, "\n");
print_forceinfo_line(a0->field_c, a0->field_0, *(&v1));
while (true) {
*(&v1) = strtok(NULL, "\n");
if (!*(&v1))
break;
print_forceinfo... | static void print_forceinfo(const struct forceinfo *fi) {
char *desc, *line;
desc = m_strdup(gettext(fi->desc));
line = strtok(desc, "\n");
print_forceinfo_line(fi->type, fi->name, line);
while ((line = strtok(((void *)0), "\n")))
print_forceinfo_line(FORCETYPE_DISABLED, "", line);
free(desc);
} | dpkg | angr_phoenix | 5 |
int find_matching_open(char *a0, unsigned long a1, unsigned long a2) {
unsigned int v0;
unsigned int v1;
unsigned int v2;
unsigned int v4;
char *v5;
switch (a2) {
case 125:
v0 = 123;
break;
case 41:
v0 = 40;
break;
case 93:
v0 = 91;
break;
default:
v4 = -1;
return v4... | static int find_matching_open(char *string, int from, int closer) {
register int i;
int opener, level, delimiter;
switch (closer) {
case ']':
opener = '[';
break;
case '}':
opener = '{';
break;
case ')':
opener = '(';
break;
default:
return (-1);
}
level = 1;
delimiter ... | bash | angr_sailr | 10 |
long add_certificate_file(long a1, const char *a2, int a3) {
long result;
int v4;
unsigned int v5;
int i;
if (*(int *)(a1 + 2808) > 99)
sshfatal("readconf.c", "add_certificate_file", 459LL, 0LL, 1LL, 0LL,
"Too many certificate files specified (max %d)", 100LL);
for (i = 0; i < *(_DWORD *)(... | void add_certificate_file(Options *options, const char *path,
int userprovided) {
int i;
if (options->num_certificate_files >= 100)
sshfatal("readconf.c", __func__, 459, 0, SYSLOG_LEVEL_FATAL, ((void *)0),
"Too many certificate files specified (max %d)", 100);
for (i =... | openssh-portable | ida | 0 |
unsigned long get_point(const char *a1, _QWORD *a2) {
const char *v2;
int *v3;
long i;
long j;
long v7;
size_t v8;
char *s;
size_t v10;
size_t n;
char *ptr;
struct stat v13;
unsigned long v14;
v14 = __readfsqword(0x28u);
v7 = 0LL;
s = canonicalize_file_name(a1);
if (s && *s == 47) {
... | 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 | ida | 7 |
int rta_getattr_u8(struct_0 *a0) { return a0->field_4; } | static inline __u8 rta_getattr_u8(const struct rtattr *rta) {
return *(__u8 *)((
void *)(((char *)(rta)) +
((((sizeof(struct rtattr)) + 4U - 1) & ~(4U - 1)) + (0))));
} | iproute2-6.0.0 | angr_phoenix | 0 |
long long get_memory_size() { return sysconf(0x55) * sysconf(0x1e); } | unsigned long long get_memory_size(void) {
return (unsigned long long)sysconf(_SC_PHYS_PAGES) *
(unsigned long long)sysconf(_SC_PAGESIZE);
} | e2fsprogs-1.46.5 | angr_sailr | 0 |
long long _rl_any_typein() { return push_index != pop_index; } | int _rl_any_typein(void) { return (push_index != pop_index); } | bash | angr_dream | 0 |
void __jiffies_to_tv(unsigned long long a0[2], unsigned long a1) {
unsigned long v0;
char v1;
unsigned long long v3[2];
unsigned long long v4;
v0 = a1 * 10000;
a0[0] = v0 * 4835703278458516699 >> 64 >> 18;
v3 = a0;
a0[1] = v0 - a0[0] * 1000000;
v4 = *(&v1);
return;
} | static inline void __jiffies_to_tv(struct timeval *tv, unsigned long jiffies) {
unsigned long long tvusec;
tvusec = 10000ULL * jiffies;
tv->tv_sec = tvusec / 1000000;
tv->tv_usec = tvusec - 1000000 * tv->tv_sec;
} | iproute2-6.0.0 | angr_phoenix | 0 |
long last_history_entry() {
long v1;
using_history();
v1 = previous_history();
using_history();
return v1;
} | static HIST_ENTRY *last_history_entry() {
HIST_ENTRY *he;
using_history();
he = previous_history();
using_history();
return he;
} | bash | ida | 0 |
void display_loginmsg() {
unsigned long long v0;
unsigned int v1;
unsigned long long v4;
if (sshbuf_len(loginmsg)) {
v1 = sshbuf_put_u8(loginmsg, 0x0);
if (v1) {
v0 = "sshbuf_put_u8";
sshfatal("session.c", "display_loginmsg", 0xff, 0x1, 0x1, ssh_err(v1));
}
printf("%s", sshbuf_ptr(l... | static void display_loginmsg(void) {
int r;
if (sshbuf_len(loginmsg) == 0)
return;
if ((r = sshbuf_put_u8(loginmsg, 0)) != 0)
sshfatal("session.c", __func__, 255, 1, SYSLOG_LEVEL_FATAL, ssh_err(r),
"sshbuf_put_u8");
printf("%s", (char *)sshbuf_ptr(loginmsg));
sshbuf_reset(loginmsg);
} | openssh-portable | angr_phoenix | 6 |
long rl_forced_update_display(long a1, long a2, long a3) {
return el_set(e, 20LL, a3);
} | void rl_forced_update_display(void) { el_set(e, 20); } | libedit | ida | 0 |
undefined8 iproute_restore(void)
{
int iVar1;
undefined8 uVar2;
long lVar3;
long in_FS_OFFSET;
int local_1c;
int local_18;
int local_14;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
iVar1 = route_dump_check_magic();
if (iVar1 == 0) {
lVar3 = ftell(stdin);
local_18 = (int)lVa... | static int iproute_restore(void) {
int pos, prio;
if (route_dump_check_magic())
return -1;
pos = ftell(stdin);
if (pos == -1) {
perror("Failed to restore: ftell");
return -1;
}
for (prio = 0; prio < 3; prio++) {
int err;
err = rtnl_from_file(stdin, &restore_handler, &prio);
if (e... | iproute2-6.0.0 | ghidra | 19 |
undefined8 ea_refcount_intr_next(ulong *param_1, undefined8 *param_2)
{
ulong uVar1;
ulong uVar2;
while (true) {
if (*param_1 <= param_1[2]) {
return 0;
}
uVar1 = param_1[3];
if (*(long *)(uVar1 + param_1[2] * 0x10 + 8) != 0)
break;
param_1[2] = param_1[2] + 1;
}
if (param_2 ... | ea_key_t ea_refcount_intr_next(ext2_refcount_t refcount, ea_value_t *ret) {
struct ea_refcount_el *list;
while (1) {
if (refcount->cursor >= refcount->count)
return 0;
list = refcount->list;
if (list[refcount->cursor].ea_value) {
if (ret)
*ret = list[refcount->cursor].ea_value;
... | e2fsprogs-1.46.5 | ghidra | 5 |
void do_chown(unsigned long a0, unsigned long a1, unsigned long a2,
unsigned long a3) {
unsigned long v0;
unsigned int v1;
v0 = a1;
v1 = fchown(a0, a2, a3);
return;
} | static void do_chown(int fd, char const *name, uid_t uid, gid_t gid) {
(__extension__({
__typeof__(fchown(fd, uid, gid)) __x = (fchown(fd, uid, gid));
(void)__x;
}));
} | gzip-1.12 | angr_sailr | 0 |
int vlist_realloc(unsigned long a0, unsigned long a1) {
unsigned long v0;
unsigned int v2;
v0 = a0;
if (!v0) {
v0 = vlist_alloc(a1);
v2 = v0;
return v2;
}
if (a1 > v0->field_8) {
v0->field_8 = a1;
v0->field_0 =
sh_xrealloc(v0->field_0, (v0->field_8 + 1) * 8, "variables.c", 0x105... | static VARLIST *vlist_realloc(vlist, n)
VARLIST *vlist;
int n;
{
if (vlist == 0)
return (vlist = vlist_alloc(n));
if (n > vlist->list_size) {
vlist->list_size = n;
vlist->list = (SHELL_VAR **)sh_xrealloc(
(vlist->list), ((vlist->list_size + 1) * sizeof(SHELL_VAR *)),
"variables.c", 4190)... | bash | angr_sailr | 0 |
void do_add(unsigned long a0, unsigned int a1) {
unsigned int v0;
unsigned int v1;
unsigned short v2;
unsigned short v3;
char v4;
char v5;
unsigned long long v7;
void *v8;
unsigned long v9;
unsigned long long v10;
void *v11;
v0 = a0;
v7 = 130;
for (v8 = &v1; v7; v8 += v9 * 8) {
v7 -= 1;... | 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 | angr_phoenix | 18 |
void pkg_array_list_item(undefined8 param_1, long param_2, long param_3)
{
int iVar1;
undefined4 uVar2;
undefined4 uVar3;
undefined4 uVar4;
undefined8 uVar5;
undefined8 uVar6;
undefined8 uVar7;
long in_FS_OFFSET;
undefined8 uVar8;
int local_54;
long local_50;
undefined8 local_48;
long local_4... | static void pkg_array_list_item(struct pkg_array *array, struct pkginfo *pkg,
void *pkg_data) {
struct list_format *fmt = pkg_data;
int l;
const char *pdesc;
list_format_init(fmt, array);
list_format_print_header(fmt);
pdesc = pkg_synopsis(pkg, &l);
l = ((l) < (fmt->dw) ?... | dpkg | ghidra | 8 |
int sshkey_dump_ec_point(long a1, long a2) {
long v3;
long v4;
long v5;
v4 = 0LL;
if (!a2)
return fputs("point=(NULL)\n", stderr);
v5 = BN_new();
if (v5 && (v4 = BN_new()) != 0) {
v3 = EC_GROUP_method_of(a1);
if ((unsigned int)EC_METHOD_get_field_type(v3) == 406) {
if ((unsigned int)EC_... | void sshkey_dump_ec_point(const EC_GROUP *group, const EC_POINT *point) {
BIGNUM *x = ((void *)0), *y = ((void *)0);
if (point == ((void *)0)) {
fputs("point=(NULL)\n", stderr);
return;
}
if ((x = BN_new()) == ((void *)0) || (y = BN_new()) == ((void *)0)) {
fprintf(stderr, "%s: BN_new failed\n", __... | openssh-portable | ida | 0 |
long long test_ext_master_secret(unsigned long long a0) {
unsigned int v0;
unsigned int v1;
unsigned long long v3;
if (!tls_ext_ok) {
v3 = 3;
} else {
sprintf(
&prio_str,
"NONE:+CIPHER-ALL:+ARCFOUR-128:+3DES-CBC:+GOST28147-TC26Z-CNT:+COMP-"
"NULL:%s:+MAC-ALL:+MD5:+SHA1:+GOST28... | test_code_t test_ext_master_secret(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... | gnutls | angr_phoenix | 11 |
void dh_new_group16() {
unsigned long long v1;
v1 = dh_new_group_asc(gen.17691, group16.17692);
return;
} | DH *dh_new_group16(void) {
static char *gen = "2", *group16 = "FFFFFFFF"
"FFFFFFFF"
"C90FDAA2"
"2168C234"
"C4C6628B"
"80DC1CD1"
... | openssh-portable | angr_phoenix | 0 |
long int32_mod_uint14(int a1, unsigned short a2) {
unsigned short v3;
int v4;
unsigned long v5;
v5 = __readfsqword(0x28u);
int32_divmod_uint14(&v4, &v3, a1, a2);
return v3;
} | static crypto_uint16 int32_mod_uint14(crypto_int32 x, crypto_uint16 m) {
crypto_int32 q;
crypto_uint16 r;
int32_divmod_uint14(&q, &r, x, m);
return r;
} | openssh-portable | ida | 0 |
char *showdate() {
char *result;
result = ctime(&lastdate);
result[16] = 0;
return result;
} | char *showdate() {
char *s = ctime(&lastdate);
s[16] = 0;
return s;
} | sysvinit | ida | 0 |
void main_sigchld_handler(void)
{
int *piVar1;
long in_FS_OFFSET;
int local_1c;
int local_18;
__pid_t local_14;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
piVar1 = __errno_location();
local_18 = *piVar1;
do {
do {
local_14 = waitpid(-1, &local_1c, 1);
} while (0 < loca... | static void main_sigchld_handler(int sig) {
int save_errno = (*__errno_location());
pid_t pid;
int status;
while ((pid = waitpid(-1, &status, 1)) > 0 ||
(pid == -1 && (*__errno_location()) == 4))
;
(*__errno_location()) = save_errno;
} | openssh-portable | ghidra | 12 |
long long cleanup_exit(unsigned long a0) { sftp_server_cleanup_exit(a0); } | void cleanup_exit(int i) { sftp_server_cleanup_exit(i); } | openssh-portable | angr_sailr | 0 |
int rl_make_bare_keymap() {
void *v0;
void *v2;
v0 = xmalloc(0x1010);
for (v2 = 0; v2 <= 0x100; v2 = v2 + 1) {
*(v0 + 0x10 * v2) = 0;
*((8 + v0 + 0x10 * v2)) = 0;
}
return v0;
} | Keymap rl_make_bare_keymap(void) {
register int i;
Keymap keymap;
keymap = (Keymap)xmalloc(257 * sizeof(KEYMAP_ENTRY));
for (i = 0; i < 257; i++) {
keymap[i].type = 0;
keymap[i].function = (rl_command_func_t *)((void *)0);
}
return (keymap);
} | bash | angr_phoenix | 0 |
undefined4 execute_arith_for_command(uint *param_1)
{
undefined4 uVar1;
long in_FS_OFFSET;
int local_28;
undefined4 local_24;
undefined4 local_20;
uint local_1c;
long local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_24 = 0;
loop_level = loop_level + 1;
local_20 = line_... | static int execute_arith_for_command(arith_for_command)
ARITH_FOR_COM *arith_for_command;
{
intmax_t expresult;
int expok, body_status, arith_lineno, save_lineno;
body_status = 0;
loop_level++;
save_lineno = line_number;
if (arith_for_command->flags & 0x08)
arith_for_command->action->flags |= 0x08;
... | bash | ghidra | 32 |
short Fq_recip(short param_1)
{
short local_e;
int local_c;
local_c = 1;
local_e = param_1;
while (local_c < 0x11ed) {
__mulvsi3((int)param_1, (int)local_e);
local_e = Fq_freeze();
local_c = __addvsi3();
}
return local_e;
} | static Fq Fq_recip(Fq a1) {
int i = 1;
Fq ai = a1;
while (i < 4591 - 2) {
ai = Fq_freeze(a1 * (crypto_int32)ai);
i += 1;
}
return ai;
} | openssh-portable | ghidra | 0 |
long long sh_seedrand() {
char v0;
char v1;
char v2;
if (!seeded.7563) {
gettimeofday(&v1, NULL);
srandom(&v0 ^ (getpid() * 0x10000) ^ *(&v1) ^ *(&v2));
seeded.7563 = 1;
}
return 0;
} | static void sh_seedrand() {
int d;
static int seeded = 0;
if (seeded == 0) {
struct timeval tv;
gettimeofday(&tv, ((void *)0));
srandom(tv.tv_sec ^ tv.tv_usec ^ (getpid() << 16) ^ (uintptr_t)&d);
seeded = 1;
}
} | bash | angr_phoenix | 5 |
int quote_breaks(unsigned long long a0) {
unsigned int v0;
int tmp_11;
int tmp_4;
char *v1;
char *v3;
char *v4;
char *v5;
char *v7;
char v8[3];
char v9[3];
v0 = 3;
v3 = a0;
while (true) {
if (!v3)
break;
if (!*(v3))
break;
if (*(v3) == 39) {
v0 += 3;
} else {... | static char *quote_breaks(char *s) {
register char *p, *r;
char *ret;
int len = 3;
for (p = s; p && *p; p++, len++) {
if (*p == '\'')
len += 3;
else if ((((*p) == ' ') || ((*p) == '\t')) || *p == '\n')
len += 2;
}
r = ret = (char *)xmalloc(len);
*r++ = '\'';
for (p = s; p && *p;) {... | bash | angr_phoenix | 10 |
long long xattrs_acls_set(unsigned long long a0[11], unsigned long long a1,
unsigned long a2) {
unsigned long long v1;
v1 = acls_option;
if (acls_option > 0 && a2 != 50) {
v1 = xattrs__acls_set(a0, a1, 0x8000, a0[7], a0[8], 0x0);
if (a2 == 53 || a2 == 68)
v1 = xattrs__acls... | void xattrs_acls_set(struct tar_stat_info const *st, char const *file_name,
char typeflag) {
if (acls_option > 0 && typeflag != '2') {
xattrs__acls_set(st, file_name, (0x8000), st->acls_a_ptr, st->acls_a_len,
0);
if (typeflag == '5' || typeflag == 'D')
xattrs__... | tar | angr_dream | 7 |
long long _ssh__compat_glob(char *a0, unsigned long a1, unsigned long a2,
struct_0 *a3) {
unsigned int v0;
int tmp_21;
int tmp_11;
int tmp_15;
unsigned int v1;
char *v2;
unsigned short *v3;
unsigned long v4;
void *v5;
void *v6;
void *v7;
char v8;
unsigned long long ... | int _ssh__compat_glob(const char *pattern, int flags,
int (*errfunc)(const char *, int),
_ssh_compat_glob_t *pglob)
{
const u_char *patnext;
int c;
Char *bufnext, *bufend, patbuf[4096];
struct glob_lim limit = {0, 0, 0};
patnext = (u_char *)pattern;
if (!(flags ... | openssh-portable | angr_phoenix | 23 |
void prepare_terminal_settings(int param_1, uint *param_2)
{
undefined *puVar1;
undefined8 in_stack_00000010;
uint uStack0000000000000014;
byte bStack000000000000001d;
undefined8 in_stack_00000018;
_rl_echoing_p = uStack0000000000000014 & 8;
__rl_echoctl = uStack0000000000000014 & 0x200;
param_2[3] = ... | static void prepare_terminal_settings(int meta_flag, struct termios oldtio,
struct termios *tiop) {
int sc;
Keymap kmap;
_rl_echoing_p = (oldtio.c_lflag & 0000010);
_rl_echoctl = (oldtio.c_lflag & 0001000);
tiop->c_lflag &= ~(0000002 | 0000010);
if ((unsigned char)o... | bash | ghidra | 21 |
long make_room(long a1, int a2) {
long v2;
unsigned int v4;
if (*(_DWORD *)(a1 + 16) == *(_DWORD *)(a1 + 20)) {
v2 = ext2fs_resize_mem(
0LL, (unsigned int)(24 * *(_DWORD *)(a1 + 20) + 8184), a1 + 8);
v4 = _errcode_to_errno(v2, "make_room", 0x198u);
if (v4)
return v4;
*(_DWORD *)(a1 ... | static int make_room(struct extent_list *list, int i) {
int ret;
if (list->count == list->size) {
unsigned int new_size = (list->size + 341) * sizeof(struct ext2fs_extent);
ret = __errcode_to_errno(ext2fs_resize_mem(0, new_size, &list->extents),
__func__, 408);
if (ret)
... | e2fsprogs-1.46.5 | ida | 0 |
void set_force(uint param_1)
{
force_flags = force_flags | param_1;
return;
} | void set_force(int flags) { force_flags |= flags; } | dpkg | ghidra | 0 |
void attrib_to_stat(uint *param_1, void *param_2)
{
memset(param_2, 0, 0x90);
if ((*param_1 & 1) != 0) {
*(undefined8 *)((long)param_2 + 0x30) = *(undefined8 *)(param_1 + 2);
}
if ((*param_1 & 2) != 0) {
*(uint *)((long)param_2 + 0x1c) = param_1[4];
*(uint *)((long)param_2 + 0x20) = param_1[5];
}... | void attrib_to_stat(const Attrib *a, struct stat *st) {
memset(st, 0, sizeof(*st));
if (a->flags & 0x00000001)
st->st_size = a->size;
if (a->flags & 0x00000002) {
st->st_uid = a->uid;
st->st_gid = a->gid;
}
if (a->flags & 0x00000004)
st->st_mode = a->perm;
if (a->flags & 0x00000008) {
s... | openssh-portable | ghidra | 5 |
undefined4 multiSubmitFlush(long param_1)
{
undefined4 local_c;
local_c = 0;
if (0 < *(short *)(param_1 + 2)) {
local_c = multiSubmitMsg2(param_1);
}
return local_c;
} | rsRetVal multiSubmitFlush(multi_submit_t *pMultiSub) {
rsRetVal iRet = RS_RET_OK;
if (pMultiSub->nElem > 0) {
iRet = multiSubmitMsg2(pMultiSub);
}
return iRet;
} | rsyslog-8.2210.0 | ghidra | 0 |
void print_context_number_range(unsigned long long a0, unsigned long long a1,
unsigned long long a2) {
char v0;
char v1;
char v2;
unsigned long long *v4;
unsigned long long v5;
translate_range(a0, a1, a2, &v0, &v1);
if (*(&v1) > *(&v0))
fprintf(*(&outfile), "%ld,%ld", ... | static void print_context_number_range(struct file_data const *file, lin a,
lin b) {
printint trans_a, trans_b;
translate_range(file, a, b, &trans_a, &trans_b);
if (trans_b <= trans_a)
fprintf(outfile,
"%"
"l"
"d",
trans_b)... | diffutils | angr_sailr | 5 |
long long sh_setlinebuf(void *a0) {
void *v0;
if (a0 == stdout && !stdoutbuf) {
stdoutbuf = sh_xmalloc(0x7e0, "setlinebuf.c", 0x32);
v0 = stdoutbuf;
}
if (stdoutbuf || a0 != stdout) {
if (a0 == stderr && !stderrbuf) {
stderrbuf = sh_xmalloc(0x7e0, "setlinebuf.c", 0x34);
v0 = stderrbuf;
... | int sh_setlinebuf(stream)
FILE *stream;
{
char *local_linebuf;
if (stream == stdout && stdoutbuf == 0)
local_linebuf = stdoutbuf = (char *)sh_xmalloc((2016), "setlinebuf.c", 50);
else if (stream == stderr && stderrbuf == 0)
local_linebuf = stderrbuf = (char *)sh_xmalloc((2016), "setlinebuf.c", 52);
el... | bash | angr_dream | 17 |
long long process_bad_block(struct_2 *a0, unsigned long long *a1,
unsigned long a2, unsigned long a3,
unsigned long a4, struct_0 *a5) {
unsigned int v0;
unsigned long v1;
unsigned int v2;
unsigned long v3;
unsigned long long v4;
struct_5 *v5;
struct_... | static int process_bad_block(ext2_filsys fs, blk64_t *block_nr,
e2_blkcnt_t blockcnt,
blk64_t ref_block __attribute__((unused)),
int ref_offset __attribute__((unused)),
void *priv_data) {
struct process... | e2fsprogs-1.46.5 | angr_phoenix | 45 |
long long assign_string_n(unsigned long long *a0, void *a1, unsigned int a2) {
char *v0;
char *v1;
unsigned long long *v3;
v3 = free(*(a0));
if (a1) {
v0 = strnlen(a1, a2);
v1 = xmalloc(v0 + 1);
memcpy(v1, a1, v0);
*((v0 + v1)) = 0;
v3 = a0;
*(a0) = v1;
}
return v3;
} | void assign_string_n(char **string, const char *value, size_t n) {
free(*string);
if (value) {
size_t l = strnlen(value, n);
char *p = xmalloc(l + 1);
memcpy(p, value, l);
p[l] = 0;
*string = p;
}
} | tar | angr_phoenix | 5 |
long long channel_update_permission(struct_0 *a0, unsigned long a1,
unsigned long a2) {
unsigned long long v0;
unsigned long v1;
unsigned long v2;
struct_3 *v3;
unsigned long long v5;
unsigned long long v6;
unsigned int v7;
v3 = a0->field_868 + 32;
if (a1 >= 0 && v... | void channel_update_permission(struct ssh *ssh, int idx, int newport) {
struct permission_set *pset = &ssh->chanctxt->local_perms;
if (idx < 0 || (u_int)idx >= pset->num_permitted_user) {
sshlog("channels.c", __func__, 4354, 1, SYSLOG_LEVEL_DEBUG1, ((void *)0),
"index out of range: %d num_permitted_... | openssh-portable | angr_dream | 42 |
void usage(unsigned long a0) {
unsigned long v0;
unsigned long v1;
unsigned long v3;
unsigned long v4;
v1 = v3;
v0 = v4;
if (a0) {
fprintf(stderr, gettext("Try '%s --help' for more information.\n"));
} else {
printf(gettext("Usage: %s [OPTION]... [+FORMAT]\n or: %s "
"[-u|-... | 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]... [+FORMAT]\n or: %s "
"[-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]\n")
... | coreutils | angr_phoenix | 2 |
int client_request_forwarded_tcpip(unsigned long long a0, unsigned long long a1,
unsigned long long a2, unsigned long long a3,
unsigned long long a4) {
unsigned long long v0;
char v1;
char v2;
unsigned int v3;
char v4;
unsigned long long ... | static Channel *client_request_forwarded_tcpip(struct ssh *ssh,
const char *request_type,
int rchan, u_int rwindow,
u_int rmaxpack) {
Channel *c = ((void *)0);
struct sshbuf *... | openssh-portable | angr_phoenix | 76 |
long printf_parse(char *a1, long a2, long a3) {
char *v3;
long v4;
long v5;
long v6;
unsigned long v7;
size_t v8;
void *v9;
long v10;
long v11;
long v12;
long v13;
unsigned long v14;
size_t v15;
void *v16;
long v17;
long v18;
char *v19;
long v20;
unsigned long v21;
size_t v22;
... | int printf_parse(const char *format, char_directives *d, arguments *a) {
const char *cp = format;
size_t arg_posn = 0;
size_t d_allocated;
size_t a_allocated;
size_t max_width_length = 0;
size_t max_precision_length = 0;
d->count = 0;
d_allocated = 7;
d->dir = d->direct_alloc_dir;
a->count = 0;
... | gnutls | ida | 105 |
__uid_t check_perms(long a1, const char **a2, const char *a3) {
__uid_t result;
char *v4;
size_t v5;
int *v6;
char *v7;
char *v8;
char *v9;
FILE *v10;
char *v11;
bool v13;
char *locale;
char *v15;
long v16;
const char *s;
char *s1;
const char *v19;
const char *v20;
v13 = 0;
if (*(... | static void check_perms(const struct group *grp, struct passwd *pwd,
const char *groupname) {
_Bool needspasswd = 0;
struct spwd *spwd;
char *cp;
const char *cpasswd;
if ((grp->gr_gid != pwd->pw_gid) && !is_on_list(grp->gr_mem, pwd->pw_name)) {
needspasswd = 1;
}
spwd = xgets... | shadow | ida | 27 |
void bridge_print_opt(undefined8 param_1, undefined8 param_2, long param_3)
{
undefined uVar1;
undefined2 uVar2;
undefined4 uVar3;
undefined8 uVar4;
long in_FS_OFFSET;
undefined local_58[72];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (param_3 != 0) {
if (*(long *)(param_3 + 8)... | static void bridge_print_opt(struct link_util *lu, FILE *f,
struct rtattr *tb[]) {
if (!tb)
return;
if (tb[IFLA_BR_FORWARD_DELAY])
print_uint(PRINT_ANY, "forward_delay", "forward_delay %u ",
rta_getattr_u32(tb[IFLA_BR_FORWARD_DELAY]));
if (tb[IFLA_BR_HELLO_TIM... | iproute2-6.0.0 | ghidra | 12 |
void parse_int_node(long param_1, long param_2, long param_3, long param_4,
long param_5, int param_6)
{
int iVar1;
uint uVar2;
uint uVar3;
long lVar4;
ulong uVar5;
int local_4c;
uint local_48;
uint local_44;
uint local_40;
uint local_3c;
int local_38;
ushort *local_28;
l... | static void parse_int_node(ext2_filsys fs, struct ext2_db_entry2 *db,
struct check_dir_struct *cd,
struct dx_dir_info *dx_dir, char *block_buf,
int failed_csum) {
struct ext2_dx_root_info *root;
struct ext2_dx_entry *ent;
struct ext2... | e2fsprogs-1.46.5 | ghidra | 15 |
void process_remove(uint param_1)
{
int iVar1;
undefined8 uVar2;
int *piVar3;
char **ppcVar4;
long in_FS_OFFSET;
char *pcStack72;
undefined8 uStack64;
undefined auStack56[12];
uint local_2c;
undefined4 local_20;
int local_1c;
char *local_18;
long local_10;
ppcVar4 = (char **)auStack56;
l... | static void process_remove(u_int32_t id) {
char *name;
int r, status = 4;
if ((r = sshbuf_get_cstring(iqueue, &name, ((void *)0))) != 0)
sshfatal("sftp-server.c", __func__, 1192, 1, SYSLOG_LEVEL_FATAL, ssh_err(r),
"parse");
sshlog("sftp-server.c", __func__, 1194, 0, SYSLOG_LEVEL_DEBUG3, ((voi... | openssh-portable | ghidra | 11 |
void _rl_push_executing_macro(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)xmalloc(0x18);
*puVar1 = macro_list;
*(undefined4 *)(puVar1 + 2) = executing_macro_index;
puVar1[1] = rl_executing_macro;
macro_list = puVar1;
macro_level = macro_level + 1;
return;
} | void _rl_push_executing_macro(void) {
struct saved_macro *saver;
saver = (struct saved_macro *)xmalloc(sizeof(struct saved_macro));
saver->next = macro_list;
saver->sindex = executing_macro_index;
saver->string = rl_executing_macro;
macro_list = saver;
macro_level++;
} | bash | ghidra | 0 |
long trigproc_reset_cycle() {
long result;
tortoise_advance = 0;
hare = 0LL;
result = 0LL;
tortoise = 0LL;
return result;
} | void trigproc_reset_cycle(void) {
tortoise_advance = 0;
tortoise = hare = ((void *)0);
} | dpkg | ida | 0 |
int binop(char *a0) {
unsigned long long v1;
v1 = strcmp(a0, "=");
if (v1) {
v1 = strcmp(a0, "!=");
if (v1) {
v1 = strcmp(a0, "==");
if (v1) {
v1 = strcmp(a0, "-nt");
if (v1) {
v1 = strcmp(a0, "-ot");
if (v1) {
v1 = strcmp(a0, "-ef");
... | static _Bool
binop(char const *s) {
return (((strcmp(s, "=") == 0)) || ((strcmp(s, "!=") == 0)) ||
((strcmp(s, "==") == 0)) || ((strcmp(s, "-nt") == 0)) ||
((strcmp(s, "-ot") == 0)) || ((strcmp(s, "-ef") == 0)) ||
((strcmp(s, "-eq") == 0)) || ((strcmp(s, "-ne") == 0)) ||
((str... | coreutils | angr_dream | 43 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.