Dataset Viewer
Auto-converted to Parquet Duplicate
cve_id
stringlengths
13
16
repo
stringclasses
12 values
repo_url
stringclasses
10 values
file_path
stringlengths
7
62
function_name
stringlengths
4
52
pa
stringlengths
50
341k
pb
stringlengths
33
341k
px
stringlengths
50
338k
py
stringlengths
33
338k
pa_sliced
stringlengths
31
44.3k
pb_sliced
stringlengths
31
44.6k
px_sliced
stringlengths
51
45.8k
py_sliced
stringlengths
33
46.9k
patch_sliced
stringlengths
0
46.8k
CVE-2012-2372
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/rds/ib_send.c
rds_ib_xmit
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { struct rds_ib_connection *ic = conn->c_transport_data; struct ib_device *dev = ic->i_cm_id->device; struct rds_ib_send_work *send = NULL; struct rds_ib_send_work *first; st...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { struct rds_ib_connection *ic = conn->c_transport_data; struct ib_device *dev = ic->i_cm_id->device; struct rds_ib_send_work *send = NULL; struct rds_ib_send_work *first; st...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { struct rds_ib_connection *ic = conn->c_transport_data; struct ib_device *dev = ic->i_cm_id->device; struct rds_ib_send_work *send = NULL; struct rds_ib_send_work *first; st...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { struct rds_ib_connection *ic = conn->c_transport_data; struct ib_device *dev = ic->i_cm_id->device; struct rds_ib_send_work *send = NULL; struct rds_ib_send_work *first; st...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { if (conn->c_loopback && rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) { scat = &rm->data.op_sg[sg]; ret = sizeof(struct rds_header) + RDS_CONG_MAP_BYTES; ret = mi...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { if (conn->c_loopback && rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) { scat = &rm->data.op_sg[sg]; ret = max_t(int, RDS_CONG_MAP_BYTES, scat->length); return siz...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (conn->c_loopback && rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ scat =...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (conn->c_loopback && rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ scat =...
int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off) { if (conn->c_loopback && rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) { scat = &rm->data.op_sg[sg]; - ret = sizeof(struct rds_header) + RDS_CONG_MAP_BYTES; - ret...
CVE-2013-2929
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/ptrace.c
__ptrace_may_access
static int __ptrace_may_access(struct task_struct *task, unsigned int mode) { const struct cred *cred = current_cred(), *tcred; int dumpable = 0; if (same_thread_group(task, current)) { return 0; } rcu_read_lock(); tcred = __task_cred(task); if (uid_eq(cred->uid, tcred->euid) && uid_...
static int __ptrace_may_access(struct task_struct *task, unsigned int mode) { const struct cred *cred = current_cred(), *tcred; int dumpable = 0; if (same_thread_group(task, current)) { return 0; } rcu_read_lock(); tcred = __task_cred(task); if (uid_eq(cred->uid, tcred->euid) && uid_...
int __ptrace_may_access(struct task_struct *task, unsigned int mode) { const struct cred *cred = current_cred(), *tcred; int dumpable = 0; if (task == current) { return 0; } rcu_read_lock(); tcred = __task_cred(task); if (cred->user->user_ns == tcred->user->user_ns && (cred->uid == t...
int __ptrace_may_access(struct task_struct *task, unsigned int mode) { const struct cred *cred = current_cred(), *tcred; int dumpable = 0; if (task == current) { return 0; } rcu_read_lock(); tcred = __task_cred(task); if (cred->user->user_ns == tcred->user->user_ns && (cred->uid == t...
static int __ptrace_may_access(struct task_struct *task, unsigned int mode) { int dumpable = 0; if (same_thread_group(task, current)) { return 0; } tcred = __task_cred(task); if (ptrace_has_cap(tcred->user_ns, mode)) { goto ok; } ok: rcu_read_unlock(); if (task->mm) { ...
static int __ptrace_may_access(struct task_struct *task, unsigned int mode) { int dumpable = 0; if (same_thread_group(task, current)) { return 0; } tcred = __task_cred(task); if (ptrace_has_cap(tcred->user_ns, mode)) { goto ok; } ok: rcu_read_unlock(); if (task->mm) { ...
int __ptrace_may_access(struct task_struct *task, unsigned int mode) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int dumpable = 0; if (task == current) { return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tcred = __task_cred(task); /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
int __ptrace_may_access(struct task_struct *task, unsigned int mode) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int dumpable = 0; if (task == current) { return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tcred = __task_cred(task); /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static int __ptrace_may_access(struct task_struct *task, unsigned int mode) { int dumpable = 0; if (same_thread_group(task, current)) { return 0; } tcred = __task_cred(task); if (ptrace_has_cap(tcred->user_ns, mode)) { goto ok; } ok: rcu_read_unlock(); if (tas...
CVE-2013-4312
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/af_unix.c
unix_attach_fds
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int i; unsigned char max_level = 0; int unix_sock_count = 0; for (i = scm->fp->count - 1; i >= 0; i--) { struct sock *sk = unix_get_socket(scm->fp->fp[i]); if (sk) { unix_sock_count++; max_l...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int i; unsigned char max_level = 0; int unix_sock_count = 0; if (too_many_unix_fds(current)) { return -ETOOMANYREFS; } for (i = scm->fp->count - 1; i >= 0; i--) { struct sock *sk = unix_get_socket(scm->fp->...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int i; unsigned char max_level = 0; int unix_sock_count = 0; for (i = scm->fp->count - 1; i >= 0; i--) { struct sock *sk = unix_get_socket(scm->fp->fp[i]); if (sk) { unix_sock_count++; max_l...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int i; unsigned char max_level = 0; int unix_sock_count = 0; if (too_many_unix_fds(current)) { return -ETOOMANYREFS; } for (i = scm->fp->count - 1; i >= 0; i--) { struct sock *sk = unix_get_socket(scm->fp->...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int unix_sock_count = 0; for (i = scm->fp->count - 1; i >= 0; i--) { } if (!UNIXCB(skb).fp) { return -ENOMEM; } if (unix_sock_count) { for (i = scm->fp->count - 1; i >= 0; i--) unix_inflight(scm...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int unix_sock_count = 0; if (too_many_unix_fds(current)) { return -ETOOMANYREFS; } for (i = scm->fp->count - 1; i >= 0; i--) { } if (!UNIXCB(skb).fp) { return -ENOMEM; } for (i = scm->fp->count - 1;...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int unix_sock_count = 0; for (i = scm->fp->count - 1; i >= 0; i--) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!UNIX...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int unix_sock_count = 0; if (too_many_unix_fds(current)) { return -ETOOMANYREFS; } for (i = scm->fp->count - 1; i >= 0; i--) { /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int unix_sock_count = 0; + if (too_many_unix_fds(current)) { + return -ETOOMANYREFS; + } for (i = scm->fp->count - 1; i >= 0; i--) { } if (!UNIXCB(skb).fp) { return -ENOMEM; } - if (unix_sock_cou...
CVE-2013-4312
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/garbage.c
unix_inflight
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); if (atomic_long_inc_return(&u->inflight) == 1) { BUG_ON(!list_empty(&u->link)); list_add_tail(&u->link, &gc_inflight_li...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); if (atomic_long_inc_return(&u->inflight) == 1) { BUG_ON(!list_empty(&u->link)); list_add_tail(&u->link, &gc_inflight_list);...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); if (atomic_long_inc_return(&u->inflight) == 1) { BUG_ON(!list_empty(&u->link)); list_add_tail(&u->link, &gc_inflight_li...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); if (atomic_long_inc_return(&u->inflight) == 1) { BUG_ON(!list_empty(&u->link)); list_add_tail(&u->link, &gc_inflight_list);...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); if (atomic_long_inc_return(&u->inflight) == 1) { } else { } unix_tot_inflight++; spin_unlock(&unix_gc_lock); ...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); if (atomic_long_inc_return(&u->inflight) == 1) { } else { } unix_tot_inflight++; } fp->f_cred->user->unix_inflight+...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); if (atomic_long_inc_return(&u->inflight) == 1) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { /* PLACEHOLDER: DO NOT ...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); if (atomic_long_inc_return(&u->inflight) == 1) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { /* PLACEHOLDER: DO NOT DELE...
void unix_inflight(struct file *fp) { struct sock *s = unix_get_socket(fp); + spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); - spin_lock(&unix_gc_lock); if (atomic_long_inc_return(&u->inflight) == 1) { } else { } unix_tot_inflight++...
CVE-2013-4312
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/garbage.c
unix_notinflight
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); BUG_ON(list_empty(&u->link)); if (atomic_long_dec_and_test(&u->inflight)) { list_del_init(&u->link); } u...
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); BUG_ON(list_empty(&u->link)); if (atomic_long_dec_and_test(&u->inflight)) { list_del_init(&u->link); } unix_...
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); BUG_ON(list_empty(&u->link)); if (atomic_long_dec_and_test(&u->inflight)) { list_del_init(&u->link); } u...
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); BUG_ON(list_empty(&u->link)); if (atomic_long_dec_and_test(&u->inflight)) { list_del_init(&u->link); } unix_...
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); BUG_ON(list_empty(&u->link)); unix_tot_inflight--; spin_unlock(&unix_gc_lock); } }
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); BUG_ON(list_empty(&u->link)); unix_tot_inflight--; } fp->f_cred->user->unix_inflight--; spin_unlock(&unix_gc_lock); }
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); if (s) { struct unix_sock *u = unix_sk(s); spin_lock(&unix_gc_lock); BUG_ON(list_empty(&u->link)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unix_tot_inflight--; spin_unlock(&unix_gc_lo...
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); BUG_ON(list_empty(&u->link)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unix_tot_inflight--; } fp->f_cred->user->unix_in...
void unix_notinflight(struct file *fp) { struct sock *s = unix_get_socket(fp); + spin_lock(&unix_gc_lock); if (s) { struct unix_sock *u = unix_sk(s); - spin_lock(&unix_gc_lock); BUG_ON(list_empty(&u->link)); unix_tot_inflight--; - spin_unlock(&unix_gc_lock); }...
CVE-2013-4345
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
crypto/ansi_cprng.c
get_prng_bytes
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned char *ptr = buf; unsigned int byte_count = (unsigned int)nbytes; int err; spin_lock_bh(&ctx->prng_lock); err = -EVAL; if (ctx->flags & PRNG_NEED_RESET) { goto done; } err = ...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned char *ptr = buf; unsigned int byte_count = (unsigned int)nbytes; int err; spin_lock_bh(&ctx->prng_lock); err = -EVAL; if (ctx->flags & PRNG_NEED_RESET) { goto done; } err = ...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned char *ptr = buf; unsigned int byte_count = (unsigned int)nbytes; int err; spin_lock_bh(&ctx->prng_lock); err = -EVAL; if (ctx->flags & PRNG_NEED_RESET) { goto done; } err = ...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned char *ptr = buf; unsigned int byte_count = (unsigned int)nbytes; int err; spin_lock_bh(&ctx->prng_lock); err = -EVAL; if (ctx->flags & PRNG_NEED_RESET) { goto done; } err = ...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned int byte_count = (unsigned int)nbytes; if (ctx->flags & PRNG_FIXED_SIZE) { if (nbytes < DEFAULT_BLK_SZ) { goto done; } byte_count = DEFAULT_BLK_SZ; } remainder: ...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned int byte_count = (unsigned int)nbytes; if (ctx->flags & PRNG_FIXED_SIZE) { if (nbytes < DEFAULT_BLK_SZ) { goto done; } byte_count = DEFAULT_BLK_SZ; } remainder: ...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int byte_count = (unsigned int)nbytes; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->flags & PRNG_FIXED_SIZE) { if (nbytes < DEFAULT_B...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int byte_count = (unsigned int)nbytes; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->flags & PRNG_FIXED_SIZE) { if (nbytes < DEFAULT_B...
static int get_prng_bytes(char *buf, size_t nbytes, struct prng_context *ctx, int do_cont_test) { unsigned int byte_count = (unsigned int)nbytes; if (ctx->flags & PRNG_FIXED_SIZE) { if (nbytes < DEFAULT_BLK_SZ) { goto done; } byte_count = DEFAULT_BLK_SZ; } remain...
CVE-2013-4511
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/um/kernel/exitcode.c
exitcode_proc_write
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); if ((*end != '\0') && !isspace(*end)) { ...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); if ((*end != '\0') && !isspace(*end)) { ...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); uml_exitcode = tmp; return count; }
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; + size_t size; int tmp; - if (copy_from_user(buf, buffer, count)) { + size = min(count, sizeof(buf)); + if (copy_from_user(buf, buffer, size)) { retur...
CVE-2013-4512
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
arch/um/kernel/exitcode.c
exitcode_proc_write
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); if ((*end != '\0') && !isspace(*end)) { ...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); if ((*end != '\0') && !isspace(*end)) { ...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); uml_exitcode = tmp; return count; }
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) { return -EFAULT; } tmp = simple_strtol(buf, &end, 0)...
static ssize_t exitcode_proc_write(struct file *file, const char *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; + size_t size; int tmp; - if (copy_from_user(buf, buffer, count)) { + size = min(count, sizeof(buf)); + if (copy_from_user(buf, buffer, size)) { retur...
CVE-2013-4514
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/wlags49_h2/wl_priv.c
wvlan_set_station_nickname
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; int ret = 0; DBG_FUNC("wvlan_set_station_nickname"); DBG_ENTER(DbgInfo); wl_lock(lp, &flags); memset(lp->Stat...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; size_t len; int ret = 0; DBG_FUNC("wvlan_set_station_nickname"); DBG_ENTER(DbgInfo); wl_lock(lp, &flags); ...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; int ret = 0; DBG_FUNC( "wvlan_set_station_nickname" ); DBG_ENTER( DbgInfo ); wl_lock(lp, &flags); memset( lp-...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; size_t len; int ret = 0; DBG_FUNC( "wvlan_set_station_nickname" ); DBG_ENTER( DbgInfo ); wl_lock(lp, &flags);...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; int ret = 0; wl_lock(lp, &flags); memset(lp->StationName, 0, sizeof(lp->StationName)); memcpy(lp->StationName, ex...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; size_t len; int ret = 0; wl_lock(lp, &flags); memset(lp->StationName, 0, sizeof(lp->StationName)); len = min_...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wl_lock(lp, &flags); memset( lp->StationName, 0, sizeo...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; size_t len; int ret = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wl_lock(lp, &flags); memset( lp->Stati...
int wvlan_set_station_nickname(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { struct wl_private *lp = wl_priv(dev); unsigned long flags; + size_t len; int ret = 0; wl_lock(lp, &flags); memset(lp->StationName, 0, sizeof(lp->StationName)); - me...
CVE-2013-4514
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/wlags49_h2/wl_priv.c
wvlan_uil_put_info
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) { int result = 0; ltv_t *pLtv; bool_t ltvAllocated = FALSE; ENCSTRCT sEncryption; hcf_16 hcfPort = HCF_PORT_0; DBG_FUNC("wvlan_uil_put_info"); DBG_ENTER(DbgInfo); if (urq->hcfCtx == &(lp->hcfCtx)) { if (capable(CAP...
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) { int result = 0; ltv_t *pLtv; bool_t ltvAllocated = FALSE; ENCSTRCT sEncryption; size_t len; hcf_16 hcfPort = HCF_PORT_0; DBG_FUNC("wvlan_uil_put_info"); DBG_ENTER(DbgInfo); if (urq->hcfCtx == &(lp->hcfCtx)) { ...
int wvlan_uil_put_info( struct uilreq *urq, struct wl_private *lp ) { int result = 0; ltv_t *pLtv; bool_t ltvAllocated = FALSE; ENCSTRCT sEncryption; hcf_16 hcfPort = HCF_PORT_0; DBG_FUNC( "wvlan_uil_put_info" ); DBG_ENTER( DbgInfo ); if( urq->hcfCtx == &( lp->hcfCtx )) { if( cap...
int wvlan_uil_put_info( struct uilreq *urq, struct wl_private *lp ) { int result = 0; ltv_t *pLtv; bool_t ltvAllocated = FALSE; ENCSTRCT sEncryption; size_t len; hcf_16 hcfPort = HCF_PORT_0; DBG_FUNC( "wvlan_uil_put_info" ); DBG_ENTER( DbgInfo ); if( urq->hcfCtx == &( lp->hcfCtx )) {...
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) { ENCSTRCT sEncryption; hcf_16 hcfPort = HCF_PORT_0; if (urq->hcfCtx == &(lp->hcfCtx)) { if (capable(CAP_NET_ADM)) { if ((urq->data != NULL) && (urq->len != 0)) { switch (pLtv->typ) { case C...
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) { ENCSTRCT sEncryption; size_t len; hcf_16 hcfPort = HCF_PORT_0; if (urq->hcfCtx == &(lp->hcfCtx)) { if (capable(CAP_NET_ADM)) { if ((urq->data != NULL) && (urq->len != 0)) { switch (pLtv->typ) { ...
int wvlan_uil_put_info( struct uilreq *urq, struct wl_private *lp ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ENCSTRCT sEncryption; hcf_16 hcfPort = HCF_PORT_0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if( urq->hcfCtx == &( lp->hcfCtx )) { if( capable( CAP_NET_ADM )) { ...
int wvlan_uil_put_info( struct uilreq *urq, struct wl_private *lp ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ENCSTRCT sEncryption; size_t len; hcf_16 hcfPort = HCF_PORT_0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if( urq->hcfCtx == &( lp->hcfCtx )) { if( capable( CAP_NET_ADM ...
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) { ENCSTRCT sEncryption; + size_t len; hcf_16 hcfPort = HCF_PORT_0; if (urq->hcfCtx == &(lp->hcfCtx)) { if (capable(CAP_NET_ADM)) { if ((urq->data != NULL) && (urq->len != 0)) { switch (pLtv->typ) ...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
6