input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void lafe_setprogname(const char *name, const char *defaultname) {
const char *namea;
namea = name;
if (!name)
namea = defaultname;
lafe_progname = strrchr(namea, 47);
if (lafe_progname)
++lafe_progname;
else
lafe_progname = namea;
} | void lafe_setprogname(const char *name, const char *defaultname) {
if (name == NULL)
name = defaultname;
#if defined(_WIN32) && !defined(__CYGWIN__)
lafe_progname = strrchr(name, '\\');
if (strrchr(name, '/') > lafe_progname)
#endif
lafe_progname = strrchr(name, '/');
if (lafe_progname != NULL)
laf... | lafe_setprogname | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdcat | ida | O0 |
void lafe_vwarnc(int code, const char *fmt, __va_list_tag *ap) {
char *v3;
fprintf(stderr, "%s: ", lafe_progname);
vfprintf(stderr, fmt, ap);
if (code) {
v3 = strerror(code);
fprintf(stderr, ": %s", v3);
}
fputc(10, stderr);
} | static void lafe_vwarnc(int code, const char *fmt, va_list ap) {
fprintf(stderr, "%s: ", lafe_progname);
vfprintf(stderr, fmt, ap);
if (code != 0)
fprintf(stderr, ": %s", strerror(code));
fprintf(stderr, "\n");
} | lafe_vwarnc | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdcat | ida | O0 |
void lafe_warnc(int code, const char *fmt, ...) {
long v2;
long v3;
long v4;
long v5;
va_list ap;
unsigned long v7;
long v8;
long v9;
long v10;
long v11;
va_start(ap, fmt);
v2 = va_arg(ap, _QWORD);
v3 = va_arg(ap, _QWORD);
v4 = va_arg(ap, _QWORD);
v5 = va_arg(ap, _QWORD);
v8 = v2;
v9 ... | void lafe_warnc(int code, const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
lafe_vwarnc(code, fmt, ap);
va_end(ap);
} | lafe_warnc | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdcat | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
bsdcat bsdcat_storage;
unsigned long v6;
v6 = __readfsqword(0x28u);
memset(&bsdcat_storage, 0, sizeof(bsdcat_storage));
lafe_setprogname(*argv, "bsdcat");
bsdcat_storage.argv = (char **)argv;
bsdcat_storage.argc = arg... | int main(int argc, char **argv) {
struct bsdcat *bsdcat, bsdcat_storage;
int c;
bsdcat = &bsdcat_storage;
memset(bsdcat, 0, sizeof(*bsdcat));
lafe_setprogname(*argv, "bsdcat");
bsdcat->argv = argv;
bsdcat->argc = argc;
while ((c = bsdcat_getopt(bsdcat)) != -1) {
switch (c) {
case 'h':
... | main | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdcat | ida | O0 |
void usage(FILE *stream, int eval) {
const char *p;
p = lafe_getprogname();
fprintf(stream, "Usage: %s [-h] [--help] [--version] [--] [filenames...]\n",
p);
exit(eval);
} | void usage(FILE *stream, int eval) {
const char *p;
p = lafe_getprogname();
fprintf(stream, "Usage: %s [-h] [--help] [--version] [--] [filenames...]\n",
p);
exit(eval);
} | usage | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdcat | ida | O0 |
void version() {
const char *v0;
v0 = (const char *)archive_version_details();
printf("bsdcat %s - %s \n", "3.6.1", v0);
exit(0);
} | static void version(void) {
printf("bsdcat %s - %s \n", BSDCAT_VERSION_STRING, archive_version_details());
exit(0);
} | version | libarchive-3.6.1 | app-arch | O0/app-arch/libarchive-3.6.1/bsdcat | ida | O0 |
int okname(const char *cp0) {
int c;
const char *cp;
for (cp = cp0; *cp; ++cp) {
c = *cp;
if ((c & 0xFFFFFF80) != 0 ||
((*__ctype_b_loc())[c] & 8) == 0 && c != 95 && c != 45) {
warnx("invalid user name %s\n", cp0);
return 0;
}
}
return 1;
} | static int okname(const char *cp0) {
const char *cp;
int c;
for (cp = cp0; *cp; cp++) {
c = *cp;
if (!isascii(c) || !(isalnum(c) || c == '_' || c == '-')) {
warnx("invalid user name %s\n", cp0);
return (0);
}
}
return (1);
} | okname | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int piped_child(const char **command) {
int *v1;
char *v2;
long v3;
long v4;
long v5;
long v6;
int *v8;
char *v9;
long v10;
long v11;
long v12;
long v13;
int *v14;
char *v15;
long v16;
long v17;
long v18;
long v19;
int *v20;
char *v21;
long v22;
long v23;
long v24;
long v... | int piped_child(const char **command) {
int pid;
int to_child_pipe[2];
int from_child_pipe[2];
if (pipe(to_child_pipe) < 0) {
msg("cannot create pipe: %s\n", strerror(errno));
return -1;
}
if (pipe(from_child_pipe) < 0) {
msg("cannot create pipe: %s\n", strerror(errno));
return -1;
}
pi... | piped_child | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
off_t rmtcall(const char *cmd, const char *buf) {
size_t v2;
ssize_t v3;
v2 = strlen(buf);
v3 = write(tormtape, buf, v2);
if (v3 != strlen(buf))
rmtconnaborted(0);
return rmtreply(cmd);
} | static off_t rmtcall(const char *cmd, const char *buf) {
if (write(tormtape, buf, strlen(buf)) != (ssize_t)strlen(buf))
rmtconnaborted(0);
return (rmtreply(cmd));
} | rmtcall | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
void rmtclose() {
if (rmtstate == 1) {
rmtcall("close", "C\n");
rmtstate = 0;
}
} | void rmtclose(void) {
if (rmtstate != TS_OPEN)
return;
rmtcall("close", "C\n");
rmtstate = TS_CLOSED;
} | rmtclose | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
void rmtconnaborted(int signo) {
long v1;
long v2;
long v3;
long v4;
long v5;
long v6;
long v7;
const char *v8;
unsigned int __i;
int i;
timeval t;
fd_set r;
char buf[2056];
unsigned long v14;
v14 = __readfsqword(0x28u);
msg("Lost connection to remote host.\n", v3, v1, v2, v4, v5);
if... | static void rmtconnaborted(UNUSED(int signo)) {
msg("Lost connection to remote host.\n");
if (errfd != -1) {
fd_set r;
struct timeval t;
FD_ZERO(&r);
FD_SET(errfd, &r);
t.tv_sec = 0;
t.tv_usec = 0;
if (select(errfd + 1, &r, NULL, NULL, &t)) {
int i;
char buf[2048];
if... | rmtconnaborted | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmtgetb() {
char c;
unsigned long v2;
v2 = __readfsqword(0x28u);
if (read(fromrmtape, &c, 1u) != 1)
rmtconnaborted(0);
return c;
} | static int rmtgetb(void) {
char c;
if (read(fromrmtape, &c, 1) != 1)
rmtconnaborted(0);
return (c);
} | rmtgetb | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmtgetconn() {
const char *v0;
const char *v1;
long v2;
long v3;
long v4;
long v5;
const char *v6;
const char *v7;
__uid_t v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
__uid_t v18;
__gid_t v19;
long v20;
long v21;
long v22;
long v2... | static int rmtgetconn(void) {
char *cp;
const char *rmt;
static struct servent *sp = NULL;
static struct passwd *pwd = NULL;
const char *tuser;
const char *rsh;
int size;
int throughput;
int on;
char *rmtpeercopy;
rsh = getenv("RSH");
if (!rsh && sp == NULL) {
sp = getservbyname(dokerberos... | rmtgetconn | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
void rmtgets(char *line, size_t len) {
long v2;
long v3;
long v4;
long v5;
unsigned int v6;
long v7;
long v8;
long v9;
long v10;
size_t lena;
char *cp;
lena = len;
cp = line;
while (lena > 1) {
v6 = rmtgetb();
v2 = v6;
*cp = v6;
if (*cp == 10) {
cp[1] = 0;
return... | static void rmtgets(char *line, size_t len) {
char *cp = line;
while (len > 1) {
*cp = rmtgetb();
if (*cp == '\n') {
cp[1] = '\0';
return;
}
cp++;
len--;
}
*cp = '\0';
msg("Protocol to remote tape server botched.\n");
msg("(rmtgets got \"%s\").\n", line);
rmtconnaborted(0)... | rmtgets | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmthost(const char *host) {
if (rmtpeer)
free((void *)rmtpeer);
rmtpeer = strdup(host);
if (!rmtpeer)
rmtpeer = host;
signal(13, (__sighandler_t)rmtconnaborted);
return rmtgetconn();
} | int rmthost(const char *host) {
if (rmtpeer)
free((void *)rmtpeer);
if ((rmtpeer = strdup(host)) == NULL)
rmtpeer = host;
signal(SIGPIPE, rmtconnaborted);
return rmtgetconn();
} | rmthost | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmtioctl(int cmd, int count) {
char buf[264];
unsigned long v4;
v4 = __readfsqword(0x28u);
if (count < 0)
return -1;
snprintf(buf, 0x100u, "I%d\n%d\n", cmd, count);
return rmtcall("ioctl", buf);
} | int rmtioctl(int cmd, int count) {
char buf[256];
if (count < 0)
return (-1);
(void)snprintf(buf, sizeof(buf), "I%d\n%d\n", cmd, count);
return (rmtcall("ioctl", buf));
} | rmtioctl | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmtopen(const char *tape, const int mode) {
char *rmtflags;
char buf[4104];
unsigned long v5;
v5 = __readfsqword(0x28u);
rmtflags = rmtflags_tochar(mode);
snprintf(buf, 0x1000u, "O%s\n%d %s\n", tape, mode & 3, rmtflags);
free(rmtflags);
rmtstate = 1;
return rmtcall(tape, buf);
} | int rmtopen(const char *tape, const int mode) {
char buf[MAXPATHLEN];
char *rmtflags;
rmtflags = rmtflags_tochar(mode);
(void)snprintf(buf, sizeof(buf), "O%s\n%d %s\n", tape, mode & O_ACCMODE,
rmtflags);
free(rmtflags);
rmtstate = TS_OPEN;
return (rmtcall(tape, buf));
} | rmtopen | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmtread(char *buf, size_t count) {
int i;
int n;
long cc;
char line[40];
unsigned long v7;
v7 = __readfsqword(0x28u);
snprintf(line, 0x1Eu, "R%u\n", count);
n = rmtcall("read", line);
if (n >= 0) {
for (i = 0; i < n; i += cc) {
cc = read(fromrmtape, &buf[i], n - i);
if (cc <= 0)
... | int rmtread(char *buf, size_t count) {
char line[30];
int n, i;
ssize_t cc;
(void)snprintf(line, sizeof(line), "R%u\n", (unsigned)count);
n = rmtcall("read", line);
if (n < 0) {
errno = n;
return (-1);
}
for (i = 0; i < n; i += cc) {
cc = read(fromrmtape, buf + i, n - i);
if (cc <= 0)
... | rmtread | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
off_t rmtreply(const char *cmd) {
long v1;
long v2;
long v3;
int *v4;
long v6;
long v7;
long v8;
char *cp;
char code[32];
char emsg[8200];
unsigned long v12;
v12 = __readfsqword(0x28u);
rmtgets(code, 0x1Eu);
if (code[0] == 69 || code[0] == 70) {
rmtgets(emsg, 0x2000u);
msg("%s: %s",... | static off_t rmtreply(const char *cmd) {
char *cp;
char code[30], emsg[BUFSIZ];
rmtgets(code, sizeof(code));
if (*code == 'E' || *code == 'F') {
rmtgets(emsg, sizeof(emsg));
msg("%s: %s", cmd, emsg);
errno = atoi(code + 1);
if (*code == 'F')
rmtstate = TS_CLOSED;
return (-1);
}
if... | rmtreply | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
off_t rmtseek(off_t offset, int pos) {
char line[88];
unsigned long v4;
v4 = __readfsqword(0x28u);
snprintf(line, 0x50u, "L%lld\n%d\n", offset, pos);
return rmtcall("seek", line);
} | off_t rmtseek(off_t offset, int pos) {
char line[80];
(void)snprintf(line, sizeof(line), "L%lld\n%d\n", (long long)offset, pos);
return (rmtcall("seek", line));
} | rmtseek | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
mtget *rmtstatus() {
long v1;
long v2;
long v3;
char v4;
char *v5;
int i;
int ia;
char *cp;
if (rmtstate != 1)
return 0;
i = rmtcall("status", "S");
if (i < 0)
return 0;
if (i == 48) {
ia = 0;
cp = (char *)&mts;
while (ia <= 47) {
v4 = rmtgetb();
v5 = cp++;
... | struct mtget *rmtstatus(void) {
int i;
char *cp;
if (rmtstate != TS_OPEN)
return (NULL);
i = rmtcall("status", "S");
if (i < 0)
return NULL;
if (i != (int)sizeof(mts)) {
msg("mtget sizes different between host (%d) "
"and remote tape (%d)",
sizeof(mts), i);
for (; i > 0; --i... | rmtstatus | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int rmtwrite(const char *buf, size_t count) {
size_t v2;
ssize_t v3;
char line[40];
unsigned long v6;
v6 = __readfsqword(0x28u);
snprintf(line, 0x1Eu, "W%ld\n", count);
v2 = strlen(line);
v3 = write(tormtape, line, v2);
if (v3 != strlen(line))
return -1;
if (write(tormtape, buf, count) == count... | int rmtwrite(const char *buf, size_t count) {
char line[30];
(void)snprintf(line, sizeof(line), "W%ld\n", (long)count);
if (write(tormtape, line, strlen(line)) != strlen(line))
return -1;
if (write(tormtape, buf, count) != count)
return -1;
return (rmtreply("write"));
} | rmtwrite | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
int system_command(const char *command, const char *device, int volnum) {
__uid_t v4;
__gid_t v5;
int status;
int pid;
char commandstr[4104];
unsigned long v10;
v10 = __readfsqword(0x28u);
pid = fork();
if (pid == -1) {
perror(" DUMP: unable to fork");
return -1;
} else {
if (!pid) {
... | int system_command(const char *command, const char *device, int volnum) {
int pid, status;
char commandstr[4096];
pid = fork();
if (pid == -1) {
perror(" DUMP: unable to fork");
return -1;
}
if (pid == 0) {
if (setuid(getuid()))
err(1, "cannot setuid");
if (setgid(getgid()))
er... | system_command | dump-0.4.47-r1 | app-arch | O0/app-arch/dump-0.4.47-r1/restore | ida | O0 |
void *BrotliDefaultAllocFunc(void *opaque, size_t size) { return malloc(size); } | void *BrotliDefaultAllocFunc(void *opaque, size_t size) {
BROTLI_UNUSED(opaque);
return malloc(size);
} | BrotliDefaultAllocFunc | brotli-1.0.9-r3 | app-arch | O0/app-arch/brotli-1.0.9-r3/libbrotlicommon.so.1.0.9 | ida | O0 |
void BrotliDefaultFreeFunc(void *opaque, void *address) { free(address); } | void BrotliDefaultFreeFunc(void *opaque, void *address) {
BROTLI_UNUSED(opaque);
free(address);
} | BrotliDefaultFreeFunc | brotli-1.0.9-r3 | app-arch | O0/app-arch/brotli-1.0.9-r3/libbrotlicommon.so.1.0.9 | ida | O0 |
void closefrom_fallback(int lowfd) {
long fd;
long maxfd;
maxfd = sysconf(4);
if (maxfd <= 255)
maxfd = 256;
if (maxfd >= 0x80000000LL)
maxfd = 0x7FFFFFFF;
for (fd = lowfd; fd < maxfd; ++fd)
close(fd);
} | static void closefrom_fallback(int lowfd) {
long fd, maxfd;
maxfd = sysconf(_SC_OPEN_MAX);
if (maxfd < OPEN_MAX)
maxfd = OPEN_MAX;
if (maxfd > INT_MAX)
maxfd = INT_MAX;
for (fd = lowfd; fd < maxfd; fd++) {
(void)closefrom_close((int)fd);
}
} | closefrom_fallback | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void do_cleanup() {
sudo_fatal_callback *cb;
while (1) {
cb = callbacks.slh_first;
if (!callbacks.slh_first)
break;
callbacks.slh_first = callbacks.slh_first->entries.sle_next;
cb->func();
free(cb);
}
} | static void do_cleanup(void) {
struct sudo_fatal_callback *cb;
while ((cb = SLIST_FIRST(&callbacks)) != NULL) {
SLIST_REMOVE_HEAD(&callbacks, entries);
cb->func();
free(cb);
}
} | do_cleanup | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
char *dup_pattern(const char *src) {
const char *v2;
char *v3;
char *v4;
char *v5;
const char *srca;
char prev;
char ch_0;
char *dst;
size_t len;
char *ret;
srca = src;
prev = 0;
sudo_debug_enter_v1("dup_pattern", "./regex.c", 49, 832);
len = strlen(src);
ret = (char *)malloc(len + 1);
... | static char *dup_pattern(const char *src) {
char *dst, *ret;
char ch, prev = '\0';
size_t len;
debug_decl(dup_pattern, SUDO_DEBUG_UTIL);
len = strlen(src);
ret = malloc(len + 1);
if (ret == NULL)
debug_return_ptr(NULL);
dst = ret;
while ((ch = *src++) != '\0') {
switch (ch) {
case '\\':
... | dup_pattern | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int get_ttysize_ioctl(int *rowp, int *colp) {
winsize wsize;
unsigned long v4;
v4 = __readfsqword(0x28u);
sudo_debug_enter_v1("get_ttysize_ioctl", "./ttysize.c", 40, 832);
if (!ioctl(2, 0x5413u, &wsize) && wsize.ws_row && wsize.ws_col) {
*rowp = wsize.ws_row;
*colp = wsize.ws_col;
sudo_debug_exit... | static int get_ttysize_ioctl(int *rowp, int *colp) {
struct winsize wsize;
debug_decl(get_ttysize_ioctl, SUDO_DEBUG_UTIL);
if (ioctl(STDERR_FILENO, TIOCGWINSZ, &wsize) == 0 && wsize.ws_row != 0 &&
wsize.ws_col != 0) {
*rowp = wsize.ws_row;
*colp = wsize.ws_col;
debug_return_int(0);
}
debug_... | get_ttysize_ioctl | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int getentropy_fallback(void *buf, size_t len) {
int *v2;
int *v3;
int *v4;
int *v5;
int *v6;
int *v7;
int *v8;
int *v9;
int *v10;
int *v11;
int *v12;
int *v13;
int *v14;
int *v15;
int *v16;
int *v17;
int *v18;
int *v19;
int *v20;
int *v21;
int *v22;
int *v23;
size_t v24;
... | static int getentropy_fallback(void *buf, size_t len) {
unsigned char *results = NULL;
int save_errno = errno, e, pgs = sysconf(_SC_PAGESIZE), faster = 0, repeat;
int ret = -1;
static int cnt;
struct timespec ts;
struct timeval tv;
struct rusage ru;
sigset_t set;
struct stat st;
struct sudo_digest *... | getentropy_fallback | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int getentropy_phdr(dl_phdr_info *info, size_t size, void *data) {
sudo_digest_update_v1((sudo_digest *)data, info, 8u);
return 0;
} | static int getentropy_phdr(struct dl_phdr_info *info, size_t size, void *data) {
struct sudo_digest *ctx = data;
sudo_digest_update(ctx, &info->dlpi_addr, sizeof(info->dlpi_addr));
return (0);
} | getentropy_phdr | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int getentropy_urandom(void *buf, size_t len, const char *path,
int devfscheck) {
int save_errno;
int fd;
size_t i;
ssize_t ret;
stat st;
unsigned long v11;
v11 = __readfsqword(0x28u);
save_errno = *__errno_location();
while (1) {
fd = open(path, 0x80000, 0);
if (fd != ... | static int getentropy_urandom(void *buf, size_t len, const char *path,
int devfscheck) {
struct stat st;
size_t i;
int fd, flags;
int save_errno = errno;
start:
flags = O_RDONLY;
#ifdef O_CLOEXEC
flags |= O_CLOEXEC;
#endif
fd = open(path, flags, 0);
if (fd == -1) {
if... | getentropy_urandom | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int gotdata(char *buf, size_t len) {
char any_set;
size_t i;
any_set = 0;
for (i = 0; i < len; ++i)
any_set |= buf[i];
if (any_set)
return 0;
else
return -1;
} | static int gotdata(char *buf, size_t len) {
char any_set = 0;
size_t i;
for (i = 0; i < len; ++i)
any_set |= buf[i];
if (any_set == 0)
return (-1);
return (0);
} | gotdata | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void initprogname(const char *name) { initprogname2(name, 0); } | void initprogname(const char *name) { initprogname2(name, NULL); } | initprogname | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void initprogname2(const char *name, const char *const *allowed) {
const char *namea;
int i;
const char *progname;
progname = sudo_getprogname();
if (progname && *progname)
namea = progname;
else
namea = sudo_basename_v1(name);
if (*namea == 108 && namea[1] == 116 && namea[2] == 45 && namea[3])
... | void initprogname2(const char *name, const char *const *allowed) {
const char *progname;
int i;
if ((progname = getprogname()) != NULL && *progname != '\0') {
name = progname;
} else {
name = sudo_basename(name);
}
if (name[0] == 'l' && name[1] == 't' && name[2] == '-' && name[3] != '\0')
nam... | initprogname2 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool is_dir(int dfd, const char *name, int namelen, bool quiet) {
char *v4;
char *v5;
long st_mode;
char *v8;
char *v9;
stat sb;
unsigned long v13;
v13 = __readfsqword(0x28u);
sudo_debug_enter_v1("is_dir", "./mkdir_parents.c", 59, 832);
if (fstat(dfd, &sb)) {
if (!quiet) {
v4 = sudo_warn_... | static bool is_dir(int dfd, const char *name, int namelen, bool quiet) {
struct stat sb;
debug_decl(is_dir, SUDO_DEBUG_UTIL);
if (fstat(dfd, &sb) != 0) {
if (!quiet) {
sudo_warn(U_("unable to stat %.*s"), namelen, name);
}
debug_return_bool(false);
}
if (!S_ISDIR(sb.st_mode)) {
if (!qui... | is_dir | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool json_append_buf(json_container *json, const char *str) {
size_t len;
sudo_debug_enter_v1("json_append_buf", "./json.c", 102, 832);
len = strlen(str);
while (len + json->buflen >= json->bufsize) {
if (!json_expand_buf(json)) {
sudo_debug_exit_bool_v1("json_append_buf", "./json.c", 107, 832, 0);
... | static bool json_append_buf(struct json_container *json, const char *str) {
size_t len;
debug_decl(json_append_buf, SUDO_DEBUG_UTIL);
len = strlen(str);
while (json->buflen + len >= json->bufsize) {
if (!json_expand_buf(json))
debug_return_bool(false);
}
memcpy(json->buf + json->buflen, str, len... | json_append_buf | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool json_append_string(json_container *json, const char *str) {
const char *v3;
char ch_0;
char *cp;
char buf[3];
unsigned long v8;
v8 = __readfsqword(0x28u);
sudo_debug_enter_v1("json_append_string", "./json.c", 125, 832);
if (!json_append_buf(json, "\"")) {
sudo_debug_exit_bool_v1("json_append_s... | static bool json_append_string(struct json_container *json, const char *str) {
char ch;
debug_decl(json_append_string, SUDO_DEBUG_UTIL);
if (!json_append_buf(json, "\""))
debug_return_bool(false);
while ((ch = *str++) != '\0') {
char buf[3], *cp = buf;
switch (ch) {
case '"':
case '\\':
... | json_append_string | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool json_expand_buf(json_container *json) {
char *v1;
char *v2;
char *v3;
char *v4;
char *newbuf;
sudo_debug_enter_v1("json_expand_buf", "./json.c", 50, 832);
newbuf = (char *)reallocarray(json->buf, 2, json->bufsize);
if (newbuf) {
json->buf = newbuf;
json->bufsize *= 2;
sudo_debug_exit_b... | static bool json_expand_buf(struct json_container *json) {
char *newbuf;
debug_decl(json_expand_buf, SUDO_DEBUG_UTIL);
if ((newbuf = reallocarray(json->buf, 2, json->bufsize)) == NULL) {
if (json->memfatal) {
sudo_fatalx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
}
sudo_debug_pri... | json_expand_buf | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool json_new_line(json_container *json) {
char *buf;
unsigned int buflen;
char *v4;
unsigned int v5;
unsigned int indent;
indent = json->indent_level;
sudo_debug_enter_v1("json_new_line", "./json.c", 75, 832);
if (json->minimal) {
sudo_debug_exit_bool_v1("json_new_line", "./json.c", 79, 832, 1);
... | static bool json_new_line(struct json_container *json) {
int indent = json->indent_level;
debug_decl(json_new_line, SUDO_DEBUG_UTIL);
if (json->minimal)
debug_return_bool(true);
while (json->buflen + 1 + indent >= json->bufsize) {
if (!json_expand_buf(json))
debug_return_bool(false);
}
json-... | json_new_line | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void *mmap_anon(void *addr, size_t len, int prot, int flags, off_t offset) {
return mmap(addr, len, prot, flags | 0x20u, -1, offset);
} | static void *mmap_anon(void *addr, size_t len, int prot, int flags,
off_t offset) {
#ifdef MAP_ANON
return mmap(addr, len, prot, flags | MAP_ANON, -1, offset);
#else
int fd;
if ((fd = open("/dev/zero", O_RDWR)) == -1)
return MAP_FAILED;
addr = mmap(addr, len, prot, flags, fd, offset)... | mmap_anon | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int parse_debug(const char *entry, const char *conf_file, unsigned int lineno) {
char *v4;
char *v5;
char *v6;
char *v7;
char *v8;
const char *ep;
sudo_conf_debug *debug_spec;
sudo_debug_file *debug_file;
const char *entry_end;
const char *progname;
size_t prognamelen;
const char *path;
size_t... | static int parse_debug(const char *entry, const char *conf_file,
unsigned int lineno) {
struct sudo_conf_debug *debug_spec;
struct sudo_debug_file *debug_file = NULL;
const char *ep, *path, *progname, *flags;
const char *entry_end = entry + strlen(entry);
size_t pathlen, prognamelen;
... | parse_debug | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int parse_path(const char *entry, const char *conf_file, unsigned int lineno) {
char *v3;
char *v4;
char *v6;
char *v7;
const char *ep;
sudo_conf_path_table *cur;
char *pval;
const char *entry_end;
const char *name;
size_t namelen;
const char *path;
unsigned long v16;
v16 = __readfsqword(0x28... | static int parse_path(const char *entry, const char *conf_file,
unsigned int lineno) {
const char *entry_end = entry + strlen(entry);
const char *ep, *name, *path;
struct sudo_conf_path_table *cur;
size_t namelen;
debug_decl(parse_path, SUDO_DEBUG_UTIL);
name = sudo_strsplit(entry, en... | parse_path | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int parse_plugin(const char *entry, const char *conf_file,
unsigned int lineno) {
char **v4;
char *v5;
char *v6;
char *v7;
char *v8;
unsigned int nopts;
const char *ep;
plugin_info *info;
char **options;
const char *cp;
const char *entry_end;
const char *symbol;
size_t symlen;... | static int parse_plugin(const char *entry, const char *conf_file,
unsigned int lineno) {
struct plugin_info *info = NULL;
const char *ep, *path, *symbol;
const char *entry_end = entry + strlen(entry);
char **options = NULL;
size_t pathlen, symlen;
unsigned int nopts = 0;
debug_decl... | parse_plugin | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int parse_variable(const char *entry, const char *conf_file,
unsigned int lineno) {
int v3;
const char *entrya;
int ret;
sudo_conf_table *var;
sudo_debug_enter_v1("parse_variable", "./sudo_conf.c", 169, 832);
for (var = sudo_conf_var_table;; ++var) {
if (!var->name) {
sudo_debu... | static int parse_variable(const char *entry, const char *conf_file,
unsigned int lineno) {
struct sudo_conf_table *var;
int ret;
debug_decl(parse_variable, SUDO_DEBUG_UTIL);
for (var = sudo_conf_var_table; var->name != NULL; var++) {
if (strncmp(entry, var->name, var->namelen) == ... | parse_variable | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int set_var_developer_mode(const char *strval, const char *conf_file,
unsigned int lineno) {
char *v3;
int val;
val = sudo_strtobool_v1(strval);
sudo_debug_enter_v1("set_var_developer_mode", "./sudo_conf.c", 400, 832);
if (val == -1) {
v3 = sudo_warn_gettext_v1("sudo",
... | static int set_var_developer_mode(const char *strval, const char *conf_file,
unsigned int lineno) {
int val = sudo_strtobool(strval);
debug_decl(set_var_developer_mode, SUDO_DEBUG_UTIL);
if (val == -1) {
sudo_warnx(U_("invalid value for %s \"%s\" in %s, line %u"),
... | set_var_developer_mode | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int set_var_disable_coredump(const char *strval, const char *conf_file,
unsigned int lineno) {
char *v3;
int val;
val = sudo_strtobool_v1(strval);
sudo_debug_enter_v1("set_var_disable_coredump", "./sudo_conf.c", 416, 832);
if (val == -1) {
v3 = sudo_warn_gettext_v1("sudo",
... | static int set_var_disable_coredump(const char *strval, const char *conf_file,
unsigned int lineno) {
int val = sudo_strtobool(strval);
debug_decl(set_var_disable_coredump, SUDO_DEBUG_UTIL);
if (val == -1) {
sudo_warnx(U_("invalid value for %s \"%s\" in %s, line %u"),
... | set_var_disable_coredump | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int set_var_group_source(const char *strval, const char *conf_file,
unsigned int lineno) {
char *v3;
sudo_debug_enter_v1("set_var_group_source", "./sudo_conf.c", 431, 832);
if (!strcasecmp(strval, "adaptive")) {
sudo_conf_data_0.settings.group_source = 0;
} else if (!strcasecmp(str... | static int set_var_group_source(const char *strval, const char *conf_file,
unsigned int lineno) {
debug_decl(set_var_group_source, SUDO_DEBUG_UTIL);
if (strcasecmp(strval, "adaptive") == 0) {
sudo_conf_data.settings.group_source = GROUP_SOURCE_ADAPTIVE;
} else if (strcasecmp(s... | set_var_group_source | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int set_var_max_groups(const char *strval, const char *conf_file,
unsigned int lineno) {
char *v3;
int max_groups;
sudo_debug_enter_v1("set_var_max_groups", "./sudo_conf.c", 452, 832);
max_groups = sudo_strtonum(strval, 1, 1024, 0);
if (max_groups > 0) {
sudo_conf_data_0.settings.m... | static int set_var_max_groups(const char *strval, const char *conf_file,
unsigned int lineno) {
int max_groups;
debug_decl(set_var_max_groups, SUDO_DEBUG_UTIL);
max_groups = sudo_strtonum(strval, 1, 1024, NULL);
if (max_groups <= 0) {
sudo_warnx(U_("invalid max groups \"%s\" i... | set_var_max_groups | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int set_var_probe_interfaces(const char *strval, const char *conf_file,
unsigned int lineno) {
char *v3;
int val;
val = sudo_strtobool_v1(strval);
sudo_debug_enter_v1("set_var_probe_interfaces", "./sudo_conf.c", 469, 832);
if (val == -1) {
v3 = sudo_warn_gettext_v1("sudo",
... | static int set_var_probe_interfaces(const char *strval, const char *conf_file,
unsigned int lineno) {
int val = sudo_strtobool(strval);
debug_decl(set_var_probe_interfaces, SUDO_DEBUG_UTIL);
if (val == -1) {
sudo_warnx(U_("invalid value for %s \"%s\" in %s, line %u"),
... | set_var_probe_interfaces | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void signal_pipe_cb(int fd, int what, void *v) {
unsigned char ch_0;
int sudo_debug_subsys;
sudo_event_base *base;
ssize_t nread;
unsigned long v7;
v7 = __readfsqword(0x28u);
base = (sudo_event_base *)v;
sudo_debug_subsys = 256;
sudo_debug_enter_v1("signal_pipe_cb", "./event.c", 146, 256);
while (1... | static void signal_pipe_cb(int fd, int what, void *v) {
struct sudo_event_base *base = v;
unsigned char ch;
ssize_t nread;
debug_decl(signal_pipe_cb, SUDO_DEBUG_EVENT);
while ((nread = read(fd, &ch, 1)) > 0) {
sudo_debug_printf(SUDO_DEBUG_INFO, "%s: received signal %d", __func__,
(i... | signal_pipe_cb | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sigttou(int signo) { got_sigttou = 1; } | static void sigttou(int signo) { got_sigttou = 1; } | sigttou | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
uint32_t sudo_arc4random() {
uint32_t val;
unsigned long v2;
v2 = __readfsqword(0x28u);
rs_random_u32(&val);
return val;
} | uint32_t sudo_arc4random(void) {
uint32_t val;
_ARC4_LOCK();
_rs_random_u32(&val);
_ARC4_UNLOCK();
return val;
} | sudo_arc4random | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_arc4random_buf(void *buf, size_t n) { rs_random_buf(buf, n); } | void sudo_arc4random_buf(void *buf, size_t n) {
_ARC4_LOCK();
_rs_random_buf(buf, n);
_ARC4_UNLOCK();
} | sudo_arc4random_buf | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
uint32_t sudo_arc4random_uniform(uint32_t upper_bound) {
uint32_t r;
if (upper_bound <= 1)
return 0;
do
r = sudo_arc4random();
while (r < -upper_bound % upper_bound);
return r % upper_bound;
} | uint32_t sudo_arc4random_uniform(uint32_t upper_bound) {
uint32_t r, min;
if (upper_bound < 2)
return 0;
min = -upper_bound % upper_bound;
for (;;) {
r = arc4random();
if (r >= min)
break;
}
return r % upper_bound;
} | sudo_arc4random_uniform | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
char *sudo_basename_v1(const char *filename) {
char *base;
base = strrchr(filename, 47);
if (base)
return base + 1;
else
return (char *)filename;
} | char *sudo_basename_v1(const char *filename) {
char *base;
if ((base = strrchr(filename, '/')) != NULL)
base++;
else
base = (char *)filename;
return base;
} | sudo_basename_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_closefrom(int lowfd) {
int fd;
const char *errstr;
const char *path;
DIR *dirp;
dirent *dent;
unsigned long v6;
v6 = __readfsqword(0x28u);
if ((unsigned int)close_range((unsigned int)lowfd, 0xFFFFFFFFLL, 0) == -1) {
path = "/proc/self/fd";
dirp = opendir("/proc/self/fd");
if (dirp... | void sudo_closefrom(int lowfd) {
#if defined(HAVE_PSTAT_GETPROC)
struct pst_status pst;
#elif defined(HAVE_DIRFD)
const char *path;
DIR *dirp;
#endif
#if defined(HAVE_PROC_PIDINFO)
struct proc_fdinfo *buf = NULL;
const pid_t pid = getpid();
int i, n, len;
#endif
#if defined(HAVE_FCNTL_CLOSEM)
if (fcntl(l... | sudo_closefrom | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const char *sudo_conf_askpass_path_v1() {
return sudo_conf_data_0.path_table[0].pval;
} | const char *sudo_conf_askpass_path_v1(void) {
return sudo_conf_data.path_table[SUDO_CONF_PATH_ASKPASS].pval;
} | sudo_conf_askpass_path_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_conf_clear_paths_v1() {
sudo_conf_path_table *cur;
sudo_debug_enter_v1("sudo_conf_clear_paths_v1", "./sudo_conf.c", 768, 832);
for (cur = sudo_conf_data_0.path_table; cur->pname; ++cur) {
if (cur->dynamic)
free(cur->pval);
cur->pval = 0;
cur->dynamic = 0;
}
} | void sudo_conf_clear_paths_v1(void) {
struct sudo_conf_path_table *cur;
debug_decl(sudo_conf_clear_paths, SUDO_DEBUG_UTIL);
for (cur = sudo_conf_data.path_table; cur->pname != NULL; cur++) {
if (cur->dynamic)
free(cur->pval);
cur->pval = NULL;
cur->dynamic = false;
}
} | sudo_conf_clear_paths_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
sudo_conf_debug_file_list *sudo_conf_debug_files_v1(const char *progname) {
const char *v1;
sudo_conf_debug *debug_spec;
const char *progbase;
const char *prog;
sudo_debug_enter_v1("sudo_conf_debug_files_v1", "./sudo_conf.c", 546, 832);
if (*progname == 47)
v1 = sudo_basename_v1(progname);
else
v... | struct sudo_conf_debug_file_list *
sudo_conf_debug_files_v1(const char *progname) {
struct sudo_conf_debug *debug_spec;
const char *progbase;
debug_decl(sudo_conf_debug_files, SUDO_DEBUG_UTIL);
progbase = progname[0] == '/' ? sudo_basename(progname) : progname;
if (strcmp(progbase, "sudoedit") == 0)
pro... | sudo_conf_debug_files_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
sudo_conf_debug_list *sudo_conf_debugging_v1() {
return &sudo_conf_data_0.debugging;
} | struct sudo_conf_debug_list *sudo_conf_debugging_v1(void) {
return &sudo_conf_data.debugging;
} | sudo_conf_debugging_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool sudo_conf_developer_mode_v1() {
return sudo_conf_data_0.settings.developer_mode;
} | bool sudo_conf_developer_mode_v1(void) {
return sudo_conf_data.settings.developer_mode;
} | sudo_conf_developer_mode_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const char *sudo_conf_devsearch_path_v1() {
return sudo_conf_data_0.path_table[5].pval;
} | const char *sudo_conf_devsearch_path_v1(void) {
return sudo_conf_data.path_table[SUDO_CONF_PATH_DEVSEARCH].pval;
} | sudo_conf_devsearch_path_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool sudo_conf_disable_coredump_v1() {
return sudo_conf_data_0.settings.disable_coredump;
} | bool sudo_conf_disable_coredump_v1(void) {
return sudo_conf_data.settings.disable_coredump;
} | sudo_conf_disable_coredump_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_conf_group_source_v1() {
return sudo_conf_data_0.settings.group_source;
} | int sudo_conf_group_source_v1(void) {
return sudo_conf_data.settings.group_source;
} | sudo_conf_group_source_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_conf_init(int conf_types) {
int i;
sudo_conf_debug *debug_spec;
sudo_debug_file *debug_file;
plugin_info *plugin_info;
sudo_conf_path_table path_table[7];
unsigned long v6;
v6 = __readfsqword(0x28u);
sudo_debug_enter_v1("sudo_conf_init", "./sudo_conf.c", 597, 832);
if ((conf_types & 2) != 0... | static void sudo_conf_init(int conf_types) {
struct sudo_conf_debug *debug_spec;
struct sudo_debug_file *debug_file;
struct plugin_info *plugin_info;
int i;
debug_decl(sudo_conf_init, SUDO_DEBUG_UTIL);
if (ISSET(conf_types, SUDO_CONF_PATHS)) {
const struct sudo_conf_path_table path_table[] = SUDO_CONF_... | sudo_conf_init | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const char *sudo_conf_intercept_path_v1() {
return sudo_conf_data_0.path_table[2].pval;
} | const char *sudo_conf_intercept_path_v1(void) {
return sudo_conf_data.path_table[SUDO_CONF_PATH_INTERCEPT].pval;
} | sudo_conf_intercept_path_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_conf_max_groups_v1() { return sudo_conf_data_0.settings.max_groups; } | int sudo_conf_max_groups_v1(void) { return sudo_conf_data.settings.max_groups; } | sudo_conf_max_groups_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const char *sudo_conf_noexec_path_v1() {
return sudo_conf_data_0.path_table[3].pval;
} | const char *sudo_conf_noexec_path_v1(void) {
return sudo_conf_data.path_table[SUDO_CONF_PATH_NOEXEC].pval;
} | sudo_conf_noexec_path_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const char *sudo_conf_plugin_dir_path_v1() {
return sudo_conf_data_0.path_table[4].pval;
} | const char *sudo_conf_plugin_dir_path_v1(void) {
return sudo_conf_data.path_table[SUDO_CONF_PATH_PLUGIN_DIR].pval;
} | sudo_conf_plugin_dir_path_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
plugin_info_list *sudo_conf_plugins_v1() { return &sudo_conf_data_0.plugins; } | struct plugin_info_list *sudo_conf_plugins_v1(void) {
return &sudo_conf_data.plugins;
} | sudo_conf_plugins_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
bool sudo_conf_probe_interfaces_v1() {
return sudo_conf_data_0.settings.probe_interfaces;
} | bool sudo_conf_probe_interfaces_v1(void) {
return sudo_conf_data.settings.probe_interfaces;
} | sudo_conf_probe_interfaces_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_conf_read_v1(const char *conf_file, int conf_types) {
char *v3;
char *v4;
char *v5;
char *v6;
__uid_t st_uid;
char *v8;
char *v9;
char *v10;
char *v11;
const char *conf_filea;
unsigned int conf_lineno;
int ret;
unsigned int i;
int sudo_debug_subsys;
int sudo_debug_ret_1;
char *l... | int sudo_conf_read_v1(const char *conf_file, int conf_types) {
struct stat sb;
FILE *fp = NULL;
int ret = false;
char *prev_locale, *line = NULL;
unsigned int conf_lineno = 0;
size_t linesize = 0;
debug_decl(sudo_conf_read, SUDO_DEBUG_UTIL);
if ((prev_locale = setlocale(LC_ALL, NULL)) == NULL) {
su... | sudo_conf_read_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const char *sudo_conf_sesh_path_v1() {
return sudo_conf_data_0.path_table[1].pval;
} | const char *sudo_conf_sesh_path_v1(void) {
return sudo_conf_data.path_table[SUDO_CONF_PATH_SESH].pval;
} | sudo_conf_sesh_path_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_debug_free_output(sudo_debug_output *output) {
free(output->filename);
free(output->settings);
if (output->fd != -1)
close(output->fd);
free(output);
} | static void sudo_debug_free_output(struct sudo_debug_output *output) {
free(output->filename);
free(output->settings);
if (output->fd != -1)
close(output->fd);
free(output);
} | sudo_debug_free_output | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
sudo_debug_output *sudo_debug_new_output(sudo_debug_instance *instance,
sudo_debug_file *debug_file,
int minfd) {
signed int v3;
char *v4;
unsigned int v5;
unsigned int v6;
unsigned int j;
unsigned int ja;
int i;
int newfd... | static struct sudo_debug_output *
sudo_debug_new_output(struct sudo_debug_instance *instance,
struct sudo_debug_file *debug_file, int minfd) {
char *buf, *cp, *last, *subsys, *pri;
struct sudo_debug_output *output;
unsigned int j;
int i;
output = calloc(1, sizeof(*output));
if (output... | sudo_debug_new_output | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
char *sudo_dev_check(dev_t rdev, const char *devname, char *buf,
size_t buflen) {
size_t v5;
stat sb;
unsigned long v9;
v9 = __readfsqword(0x28u);
sudo_debug_enter_v1("sudo_dev_check", "./ttyname_dev.c", 229, 832);
if (!stat(devname, &sb) && (sb.st_mode & 0xF000) == 0x2000 &&
rde... | static char *sudo_dev_check(dev_t rdev, const char *devname, char *buf,
size_t buflen) {
struct stat sb;
debug_decl(sudo_dev_check, SUDO_DEBUG_UTIL);
if (stat(devname, &sb) == 0) {
if (S_ISCHR(sb.st_mode) && sb.st_rdev == rdev) {
sudo_debug_printf(SUDO_DEBUG_INFO | SUDO_DEBU... | sudo_dev_check | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
sudo_digest *sudo_digest_alloc_v1(int digest_type) {
EVP_MD_CTX *mdctx;
const EVP_MD *md;
sudo_digest *dig;
mdctx = 0;
sudo_debug_enter_v1("sudo_digest_alloc_v1", "./digest_openssl.c", 75, 832);
md = sudo_digest_type_to_md(digest_type);
if (md && (mdctx = (EVP_MD_CTX *)EVP_MD_CTX_new()) != 0 &&
(un... | struct sudo_digest *sudo_digest_alloc_v1(int digest_type) {
struct sudo_digest *dig;
EVP_MD_CTX *mdctx = NULL;
const EVP_MD *md;
debug_decl(sudo_digest_alloc, SUDO_DEBUG_UTIL);
md = sudo_digest_type_to_md(digest_type);
if (md == NULL)
goto bad;
mdctx = EVP_MD_CTX_new();
if (mdctx == NULL || !EVP_D... | sudo_digest_alloc_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_digest_final_v1(sudo_digest *dig, unsigned char *md) {
sudo_debug_enter_v1("sudo_digest_final_v1", "./digest_openssl.c", 147, 832);
EVP_DigestFinal_ex(dig->ctx, md, 0);
sudo_debug_exit_v1("sudo_digest_final_v1", "./digest_openssl.c", 151, 832);
} | void sudo_digest_final_v1(struct sudo_digest *dig, unsigned char *md) {
debug_decl(sudo_digest_final, SUDO_DEBUG_UTIL);
EVP_DigestFinal_ex(dig->ctx, md, NULL);
debug_return;
} | sudo_digest_final_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_digest_free_v1(sudo_digest *dig) {
sudo_debug_enter_v1("sudo_digest_free_v1", "./digest_openssl.c", 99, 832);
if (dig) {
EVP_MD_CTX_free(dig->ctx);
free(dig);
}
sudo_debug_exit_v1("sudo_digest_free_v1", "./digest_openssl.c", 106, 832);
} | void sudo_digest_free_v1(struct sudo_digest *dig) {
debug_decl(sudo_digest_free, SUDO_DEBUG_UTIL);
if (dig != NULL) {
EVP_MD_CTX_free(dig->ctx);
free(dig);
}
debug_return;
} | sudo_digest_free_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_digest_getlen_v1(int digest_type) {
int sudo_debug_ret_0;
const EVP_MD *md;
sudo_debug_enter_v1("sudo_digest_getlen_v1", "./digest_openssl.c", 125, 832);
md = sudo_digest_type_to_md(digest_type);
if (md) {
sudo_debug_ret_0 = EVP_MD_size(md);
sudo_debug_exit_int_v1("sudo_digest_getlen_v1", ".... | int sudo_digest_getlen_v1(int digest_type) {
const EVP_MD *md;
debug_decl(sudo_digest_getlen, SUDO_DEBUG_UTIL);
md = sudo_digest_type_to_md(digest_type);
if (md == NULL)
debug_return_int(-1);
debug_return_int(EVP_MD_size(md));
} | sudo_digest_getlen_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_digest_reset_v1(sudo_digest *dig) {
sudo_debug_enter_v1("sudo_digest_reset_v1", "./digest_openssl.c", 112, 832);
EVP_MD_CTX_reset(dig->ctx);
EVP_DigestInit_ex(dig->ctx, dig->md, 0);
sudo_debug_exit_v1("sudo_digest_reset_v1", "./digest_openssl.c", 118, 832);
} | void sudo_digest_reset_v1(struct sudo_digest *dig) {
debug_decl(sudo_digest_reset, SUDO_DEBUG_UTIL);
EVP_MD_CTX_reset(dig->ctx);
EVP_DigestInit_ex(dig->ctx, dig->md, NULL);
debug_return;
} | sudo_digest_reset_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
const EVP_MD *sudo_digest_type_to_md(int digest_type) {
const void *md;
md = 0;
sudo_debug_enter_v1("sudo_digest_type_to_md", "./digest_openssl.c", 47, 832);
if (digest_type == 3) {
md = (const void *)EVP_sha512();
} else {
if (digest_type > 3) {
LABEL_11:
*__errno_location() = 22;
go... | static const EVP_MD *sudo_digest_type_to_md(int digest_type) {
const EVP_MD *md = NULL;
debug_decl(sudo_digest_type_to_md, SUDO_DEBUG_UTIL);
switch (digest_type) {
case SUDO_DIGEST_SHA224:
md = EVP_sha224();
break;
case SUDO_DIGEST_SHA256:
md = EVP_sha256();
break;
case SUDO_DIGEST_SHA384:
... | sudo_digest_type_to_md | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_digest_update_v1(sudo_digest *dig, const void *data, size_t len) {
sudo_debug_enter_v1("sudo_digest_update_v1", "./digest_openssl.c", 137, 832);
EVP_DigestUpdate(dig->ctx, data, len);
sudo_debug_exit_v1("sudo_digest_update_v1", "./digest_openssl.c", 141, 832);
} | void sudo_digest_update_v1(struct sudo_digest *dig, const void *data,
size_t len) {
debug_decl(sudo_digest_update, SUDO_DEBUG_UTIL);
EVP_DigestUpdate(dig->ctx, data, len);
debug_return;
} | sudo_digest_update_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_dso_preload_table_v1(sudo_preload_table *table) {
preload_table = table;
} | void sudo_dso_preload_table_v1(struct sudo_preload_table *table) {
preload_table = table;
} | sudo_dso_preload_table_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_activate(sudo_event_base *base, sudo_event *ev) {
ev->active_entries.tqe_next = 0;
ev->active_entries.tqe_prev = base->active.tqh_last;
*base->active.tqh_last = ev;
base->active.tqh_last = &ev->active_entries.tqe_next;
ev->flags |= 2u;
} | void sudo_ev_activate(struct sudo_event_base *base, struct sudo_event *ev) {
TAILQ_INSERT_TAIL(&base->active, ev, active_entries);
SET(ev->flags, SUDO_EVQ_ACTIVE);
} | sudo_ev_activate | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_activate_sigevents(sudo_event_base *base) {
int i;
sudo_event *ev;
sudo_ev_siginfo_container *sc;
sigset_t set;
sigset_t oset;
unsigned long v6;
v6 = __readfsqword(0x28u);
sudo_debug_enter_v1("sudo_ev_activate_sigevents", "./event.c", 102, 256);
sigfillset(&set);
sigprocmask(0, &set, &... | static void sudo_ev_activate_sigevents(struct sudo_event_base *base) {
struct sudo_event *ev;
sigset_t set, oset;
int i;
debug_decl(sudo_ev_activate_sigevents, SUDO_DEBUG_EVENT);
sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, &oset);
base->signal_caught = 0;
for (i = 0; i < NSIG; i++) {
if (!base->... | sudo_ev_activate_sigevents | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_ev_add_impl(sudo_event_base *base, sudo_event *ev) {
int i;
int new_max;
pollfd *pfds;
pollfd *pfd;
rlimit rlim;
unsigned long v8;
v8 = __readfsqword(0x28u);
sudo_debug_enter_v1("sudo_ev_add_impl", "./event_poll.c", 73, 256);
if (nofile_max_2 == -1 && !getrlimit(__rlimit_resource_RLIMIT_NOFI... | int sudo_ev_add_impl(struct sudo_event_base *base, struct sudo_event *ev) {
static int nofile_max = -1;
struct pollfd *pfd;
debug_decl(sudo_ev_add_impl, SUDO_DEBUG_EVENT);
if (nofile_max == -1) {
struct rlimit rlim;
if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) {
nofile_max = rlim.rlim_cur;
}
}... | sudo_ev_add_impl | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_ev_add_signal(sudo_event_base *base, sudo_event *ev, bool tohead) {
int signo;
sigaction sa;
unsigned long v7;
v7 = __readfsqword(0x28u);
signo = ev->fd;
sudo_debug_enter_v1("sudo_ev_add_signal", "./event.c", 373, 256);
sudo_debug_printf2_v1("sudo_ev_add_signal", "./event.c", 375, 262,
... | static int sudo_ev_add_signal(struct sudo_event_base *base,
struct sudo_event *ev, bool tohead) {
const int signo = ev->fd;
debug_decl(sudo_ev_add_signal, SUDO_DEBUG_EVENT);
sudo_debug_printf(SUDO_DEBUG_INFO,
"%s: adding event %p to base %p, signal %d, events %d"... | sudo_ev_add_signal | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_ev_add_v1(sudo_event_base *base, sudo_event *ev, const timeval *timo,
bool tohead) {
const timespec *ts;
timespec tsbuf;
unsigned long v7;
v7 = __readfsqword(0x28u);
ts = 0;
if (timo) {
tsbuf.tv_sec = timo->tv_sec;
tsbuf.tv_nsec = 1000 * timo->tv_usec;
ts = &tsbuf;
... | int sudo_ev_add_v1(struct sudo_event_base *base, struct sudo_event *ev,
const struct timeval *timo, bool tohead) {
struct timespec tsbuf, *ts = NULL;
if (timo != NULL) {
TIMEVAL_TO_TIMESPEC(timo, &tsbuf);
ts = &tsbuf;
}
return sudo_ev_add_v2(base, ev, ts, tohead);
} | sudo_ev_add_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_ev_add_v2(sudo_event_base *base, sudo_event *ev, const timespec *timo,
bool tohead) {
__syscall_slong_t tv_nsec;
__syscall_slong_t tv_sec;
sudo_event_base *basea;
int sudo_debug_ret_0;
sudo_event *evtmp;
basea = base;
sudo_debug_enter_v1("sudo_ev_add_v2", "./event.c", 468, 256... | int sudo_ev_add_v2(struct sudo_event_base *base, struct sudo_event *ev,
const struct timespec *timo, bool tohead) {
debug_decl(sudo_ev_add, SUDO_DEBUG_EVENT);
if (base == NULL) {
if (ev->base != NULL) {
base = ev->base;
} else if (default_base != NULL) {
base = default_base;
... | sudo_ev_add_v2 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
sudo_event *sudo_ev_alloc_v1(int fd, short events, sudo_ev_callback_t callback,
void *closure) {
sudo_event *ev;
sudo_debug_enter_v1("sudo_ev_alloc_v1", "./event.c", 312, 256);
ev = (sudo_event *)malloc(0x68u);
if (ev) {
if (sudo_ev_set_v1(ev, fd, events, callback, closure) == ... | struct sudo_event *sudo_ev_alloc_v1(int fd, short events,
sudo_ev_callback_t callback,
void *closure) {
struct sudo_event *ev;
debug_decl(sudo_ev_alloc, SUDO_DEBUG_EVENT);
ev = malloc(sizeof(*ev));
if (ev == NULL) {
sudo_debug_printf(S... | sudo_ev_alloc_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_ev_base_alloc_impl(sudo_event_base *base) {
int i;
sudo_debug_enter_v1("sudo_ev_base_alloc_impl", "./event_poll.c", 42, 256);
base->pfd_high = -1;
base->pfd_max = 32;
base->pfds = (pollfd *)reallocarray(0, base->pfd_max, 8);
if (base->pfds) {
for (i = 0; i < base->pfd_max; ++i)
base->pfd... | int sudo_ev_base_alloc_impl(struct sudo_event_base *base) {
int i;
debug_decl(sudo_ev_base_alloc_impl, SUDO_DEBUG_EVENT);
base->pfd_high = -1;
base->pfd_max = 32;
base->pfds = reallocarray(NULL, base->pfd_max, sizeof(struct pollfd));
if (base->pfds == NULL) {
sudo_debug_printf(SUDO_DEBUG_ERROR | SUDO_D... | sudo_ev_base_alloc_impl | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
sudo_event_base *sudo_ev_base_alloc_v1() {
sudo_event_base *base;
sudo_debug_enter_v1("sudo_ev_base_alloc_v1", "./event.c", 202, 256);
base = (sudo_event_base *)calloc(1u, 0x9E8u);
if (base) {
if (sudo_ev_base_init(base)) {
free(base);
sudo_debug_exit_ptr_v1("sudo_ev_base_alloc_v1", "./event.c"... | struct sudo_event_base *sudo_ev_base_alloc_v1(void) {
struct sudo_event_base *base;
debug_decl(sudo_ev_base_alloc, SUDO_DEBUG_EVENT);
base = calloc(1, sizeof(*base));
if (base == NULL) {
sudo_debug_printf(SUDO_DEBUG_ERROR | SUDO_DEBUG_LINENO,
"%s: unable to allocate base", __func__);
... | sudo_ev_base_alloc_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_base_free_impl(sudo_event_base *base) {
sudo_debug_enter_v1("sudo_ev_base_free_impl", "./event_poll.c", 63, 256);
free(base->pfds);
sudo_debug_exit_v1("sudo_ev_base_free_impl", "./event_poll.c", 65, 256);
} | void sudo_ev_base_free_impl(struct sudo_event_base *base) {
debug_decl(sudo_ev_base_free_impl, SUDO_DEBUG_EVENT);
free(base->pfds);
debug_return;
} | sudo_ev_base_free_impl | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_base_free_v1(sudo_event_base *base) {
int i;
sudo_event *ev;
sudo_event *eva;
sudo_event *next;
sudo_event *nexta;
sudo_debug_enter_v1("sudo_ev_base_free_v1", "./event.c", 222, 256);
if (base) {
if (base == default_base)
default_base = 0;
for (ev = base->events.tqh_first; ev; e... | void sudo_ev_base_free_v1(struct sudo_event_base *base) {
struct sudo_event *ev, *next;
int i;
debug_decl(sudo_ev_base_free, SUDO_DEBUG_EVENT);
if (base == NULL)
debug_return;
if (default_base == base)
default_base = NULL;
TAILQ_FOREACH_SAFE(ev, &base->events, entries, next) {
sudo_ev_del(bas... | sudo_ev_base_free_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
int sudo_ev_base_init(sudo_event_base *base) {
int i;
sudo_debug_enter_v1("sudo_ev_base_init", "./event.c", 172, 256);
base->events.tqh_first = 0;
base->events.tqh_last = &base->events.tqh_first;
base->timeouts.tqh_first = 0;
base->timeouts.tqh_last = &base->timeouts.tqh_first;
for (i = 0; i <= 64; ++i) ... | static int sudo_ev_base_init(struct sudo_event_base *base) {
int i;
debug_decl(sudo_ev_base_init, SUDO_DEBUG_EVENT);
TAILQ_INIT(&base->events);
TAILQ_INIT(&base->timeouts);
for (i = 0; i < NSIG; i++)
TAILQ_INIT(&base->signals[i]);
if (sudo_ev_base_alloc_impl(base) != 0) {
sudo_debug_printf(SUDO_DEB... | sudo_ev_base_init | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_base_setdef_v1(sudo_event_base *base) {
sudo_debug_enter_v1("sudo_ev_base_setdef_v1", "./event.c", 255, 256);
default_base = base;
sudo_debug_exit_v1("sudo_ev_base_setdef_v1", "./event.c", 259, 256);
} | void sudo_ev_base_setdef_v1(struct sudo_event_base *base) {
debug_decl(sudo_ev_base_setdef, SUDO_DEBUG_EVENT);
default_base = base;
debug_return;
} | sudo_ev_base_setdef_v1 | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_deactivate(sudo_event_base *base, sudo_event *ev) {
ev->flags &= ~2u;
if (ev->active_entries.tqe_next)
ev->active_entries.tqe_next->active_entries.tqe_prev =
ev->active_entries.tqe_prev;
else
base->active.tqh_last = ev->active_entries.tqe_prev;
*ev->active_entries.tqe_prev = ev->act... | static inline void sudo_ev_deactivate(struct sudo_event_base *base,
struct sudo_event *ev) {
CLR(ev->flags, SUDO_EVQ_ACTIVE);
TAILQ_REMOVE(&base->active, ev, active_entries);
} | sudo_ev_deactivate | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
void sudo_ev_deactivate_all(sudo_event_base *base) {
sudo_event *ev;
sudo_debug_enter_v1("sudo_ev_deactivate_all", "./event.c", 84, 256);
while (1) {
ev = base->active.tqh_first;
if (!ev)
break;
sudo_ev_deactivate(base, ev);
}
sudo_debug_exit_v1("sudo_ev_deactivate_all", "./event.c", 89, 25... | static void sudo_ev_deactivate_all(struct sudo_event_base *base) {
struct sudo_event *ev;
debug_decl(sudo_ev_deactivate_all, SUDO_DEBUG_EVENT);
while ((ev = TAILQ_FIRST(&base->active)) != NULL)
sudo_ev_deactivate(base, ev);
debug_return;
} | sudo_ev_deactivate_all | sudo-1.9.10-r1 | app-admin | O0/app-admin/sudo-1.9.10-r1/libsudo_util.so.0.0.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.