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-2023-26607
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ntfs/attrib.c
ntfs_attr_find
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { ATTR_RECORD *a; ntfs_volume *vol = ctx->ntfs_ino->vol; ntfschar *upcase = vol->upcase; u32 upcase_len = vol->upcase_len; ...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { ATTR_RECORD *a; ntfs_volume *vol = ctx->ntfs_ino->vol; ntfschar *upcase = vol->upcase; u32 upcase_len = vol->upcase_len; ...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { ATTR_RECORD *a; ntfs_volume *vol = ctx->ntfs_ino->vol; ntfschar *upcase = vol->upcase; u32 upcase_len = vol->upcase_len; ...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { ATTR_RECORD *a; ntfs_volume *vol = ctx->ntfs_ino->vol; ntfschar *upcase = vol->upcase; u32 upcase_len = vol->upcase_len; ...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { if (ctx->is_first) { a = ctx->attr; } else { a = (ATTR_RECORD*)((u8*)ctx->attr + le32_to_cpu(ctx->attr->length)); ...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { if (ctx->is_first) { a = ctx->attr; } else { a = (ATTR_RECORD*)((u8*)ctx->attr + le32_to_cpu(ctx->attr->length)); ...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->is_first) { a = ctx->attr; /* PLACEHOLDER: DO NOT DELETE THIS COM...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->is_first) { a = ctx->attr; /* PLACEHOLDER: DO NOT DELETE THIS COM...
static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, const u32 name_len, const IGNORE_CASE_BOOL ic, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx) { if (ctx->is_first) { a = ctx->attr; } else { a = (ATTR_RECORD*)((u8*)ctx->attr + le32_to_cpu(ctx->attr->length)...
CVE-2023-28327
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/diag.c
sk_diag_dump
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags) { int sk_ino; unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill(sk, skb, req, portid, seq, flags,...
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags) { int sk_ino; unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill(s...
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags) { int sk_ino; unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill(sk, skb, req, portid, seq, flags,...
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags) { int sk_ino; unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill(s...
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags) { unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill(sk, skb, req, portid, seq, flags, sk_ino); }
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags) { unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill(sk, skb, req, use...
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return 0; } return sk_diag_fill...
static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unix_state_lock(sk); sk_ino = sock_i_ino(sk); unix_state_unlock(sk); if (!sk_ino) { return ...
-static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags) { +static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags) { unix_state_lock(sk); sk_ino = ...
CVE-2023-28327
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/diag.c
sk_diag_dump_uid
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb) { uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb, struct user_namespace *user_ns) { uid_t uid = from_kuid_munged(user_ns, sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb) { uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb, struct user_namespace *user_ns) { uid_t uid = from_kuid_munged(user_ns, sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb) { uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb, struct user_namespace *user_ns) { uid_t uid = from_kuid_munged(user_ns, sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb) { uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb, struct user_namespace *user_ns) { uid_t uid = from_kuid_munged(user_ns, sock_i_uid(sk)); return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); }
-static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb) { - uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk)); +static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb, struct user_namespace *user_ns) { + uid_t uid = from_kuid_munged(user_ns, sock_i_uid(sk)); return ...
CVE-2023-28327
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/diag.c
sk_diag_fill
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) { struct nlmsghdr *nlh; struct unix_diag_msg *rep; nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) { return -EMSGSIZE; }...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags, int sk_ino) { struct nlmsghdr *nlh; struct unix_diag_msg *rep; nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) {...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) { struct nlmsghdr *nlh; struct unix_diag_msg *rep; nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) { return -EMSGSIZE; }...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags, int sk_ino) { struct nlmsghdr *nlh; struct unix_diag_msg *rep; nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) {...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) { nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) { return -EMSGSIZE; } rep = nlmsg_data(nlh); sock_diag_save_cookie(sk,...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags, int sk_ino) { nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) { return -EMSGSIZE; } rep = nlmsg_data(nlh...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) { return -EMSGSIZE; } re...
static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags, int sk_ino) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), flags); if (!nlh) { ...
-static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) { +static int sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags, int sk_ino) { nlh = nlmsg...
CVE-2023-28327
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/diag.c
unix_diag_dump
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); int num, s_num, slot, s_slot; struct unix_diag_req *req; req = nlmsg_data(cb->nlh); s_slot = cb->args[0]; num = s_num = cb->args[1]; for (slot = s_slot; slot < UNIX_HASH_SIZE; s...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); int num, s_num, slot, s_slot; struct unix_diag_req *req; req = nlmsg_data(cb->nlh); s_slot = cb->args[0]; num = s_num = cb->args[1]; for (slot = s_slot; slot < UNIX_HASH_SIZE; s...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); int num, s_num, slot, s_slot; struct unix_diag_req *req; req = nlmsg_data(cb->nlh); s_slot = cb->args[0]; num = s_num = cb->args[1]; for (slot = s_slot; slot < UNIX_HASH_SIZE; s...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); int num, s_num, slot, s_slot; struct unix_diag_req *req; req = nlmsg_data(cb->nlh); s_slot = cb->args[0]; num = s_num = cb->args[1]; for (slot = s_slot; slot < UNIX_HASH_SIZE; s...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); req = nlmsg_data(cb->nlh); for (slot = s_slot; slot < UNIX_HASH_SIZE; s_num = 0, slot++) { sk_for_each(sk, &net->unx.table.buckets[slot]) { if (!(req->udiag_states & (1 << s...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); req = nlmsg_data(cb->nlh); for (slot = s_slot; slot < UNIX_HASH_SIZE; s_num = 0, slot++) { sk_for_each(sk, &net->unx.table.buckets[slot]) { if (!(req->udiag_states & (1 << s...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ req = nlmsg_data(cb->nlh); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (slot = s_slot; slot < UNIX_HASH_SIZE; s_num = 0, slot++) { ...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ req = nlmsg_data(cb->nlh); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (slot = s_slot; slot < UNIX_HASH_SIZE; s_num = 0, slot++) { ...
static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); req = nlmsg_data(cb->nlh); for (slot = s_slot; slot < UNIX_HASH_SIZE; s_num = 0, slot++) { sk_for_each(sk, &net->unx.table.buckets[slot]) { if (!(req->udiag_states & (...
CVE-2023-28327
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/unix/diag.c
unix_diag_get_exact
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); unsigned int extra_len; struct sk_buff *rep; struct sock *sk; int err; err = -EVAL; if (req->udiag_ino == 0) { goto out_nosk; } ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); unsigned int extra_len; struct sk_buff *rep; struct sock *sk; int err; err = -EVAL; if (req->udiag_ino == 0) { goto out_nosk; } ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); unsigned int extra_len; struct sk_buff *rep; struct sock *sk; int err; err = -EVAL; if (req->udiag_ino == 0) { goto out_nosk; } ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); unsigned int extra_len; struct sk_buff *rep; struct sock *sk; int err; err = -EVAL; if (req->udiag_ino == 0) { goto out_nosk; } ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); if (req->udiag_ino == 0) { goto out_nosk; } sk = unix_lookup_by_ino(net, req->udiag_ino); if (sk == NULL) { goto out_nosk; } ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); if (req->udiag_ino == 0) { goto out_nosk; } sk = unix_lookup_by_ino(net, req->udiag_ino); if (sk == NULL) { goto out_nosk; } ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (req->udiag_ino == 0) { goto out_nosk; } sk = unix_lookup_by_ino(net, req->udiag_ino); ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (req->udiag_ino == 0) { goto out_nosk; } sk = unix_lookup_by_ino(net, req->udiag_ino); ...
static int unix_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct unix_diag_req *req) { struct net *net = sock_net(in_skb->sk); if (req->udiag_ino == 0) { goto out_nosk; } sk = unix_lookup_by_ino(net, req->udiag_ino); if (sk == NULL) { goto out_nosk; ...
CVE-2023-28328
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/usb/dvb-usb/az6027.c
az6027_i2c_xfer
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { struct dvb_usb_device *d = i2c_get_adapdata(adap); int i = 0, j = 0, len = 0; u16 index; u16 value; int length; u8 req; u8 *data; data = kmalloc(256, GFP_KERNEL); if (!data) { return -ENOMEM...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { struct dvb_usb_device *d = i2c_get_adapdata(adap); int i = 0, j = 0, len = 0; u16 index; u16 value; int length; u8 req; u8 *data; data = kmalloc(256, GFP_KERNEL); if (!data) { return -ENOMEM...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { struct dvb_usb_device *d = i2c_get_adapdata(adap); int i = 0, j = 0, len = 0; u16 index; u16 value; int length; u8 req; u8 *data; data = kmalloc(256, GFP_KERNEL); if (!data) { return -ENOMEM...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { struct dvb_usb_device *d = i2c_get_adapdata(adap); int i = 0, j = 0, len = 0; u16 index; u16 value; int length; u8 req; u8 *data; data = kmalloc(256, GFP_KERNEL); if (!data) { return -ENOMEM...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { for (i = 0; i < num; i++) { if (msg[i].addr == 0x99) { index = 0; value = msg[i].buf[0] & 0x00ff; } if (msg[i].addr == 0xc0) { if (msg[i].flags & I2C_M_RD) { ...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { for (i = 0; i < num; i++) { if (msg[i].addr == 0x99) { index = 0; if (msg[i].len < 1) { i = -EOPNOTSUPP; break; } value = msg[i].buf[0] & 0x00...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < num; i++) { if (msg[i].addr == 0x99) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ index = 0; value = msg[i].buf[0] & 0x00ff; ...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < num; i++) { if (msg[i].addr == 0x99) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ index = 0; if (msg[i].len < 1) { ...
static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) { for (i = 0; i < num; i++) { if (msg[i].addr == 0x99) { index = 0; + if (msg[i].len < 1) { + i = -EOPNOTSUPP; + break; + } value = msg[i].buf[...
CVE-2023-28410
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/gpu/drm/i915/gem/i915_gem_mman.c
vm_access
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { struct i915_mmap_offset *mmo = area->vm_private_data; struct drm_i915_gem_object *obj = mmo->obj; struct i915_gem_ww_ctx ww; void *vaddr; int err = 0; if (i915_gem_object_is_readonly(obj) && wr...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { struct i915_mmap_offset *mmo = area->vm_private_data; struct drm_i915_gem_object *obj = mmo->obj; struct i915_gem_ww_ctx ww; void *vaddr; int err = 0; if (i915_gem_object_is_readonly(obj) && wr...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { struct i915_mmap_offset *mmo = area->vm_private_data; struct drm_i915_gem_object *obj = mmo->obj; void *vaddr; if (i915_gem_object_is_readonly(obj) && write) { return -EACCES; } addr -=...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { struct i915_mmap_offset *mmo = area->vm_private_data; struct drm_i915_gem_object *obj = mmo->obj; void *vaddr; if (i915_gem_object_is_readonly(obj) && write) { return -EACCES; } addr -=...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { addr -= area->vm_start; if (addr >= obj->base.size) { return -EVAL; } i915_gem_ww_ctx_init(&ww, true); if (write) { memcpy(vaddr + addr, buf, len); __i915_gem_object_flush_m...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { addr -= area->vm_start; if (range_overflows_t(u64, addr, len, obj->base.size)) { return -EVAL; } i915_gem_ww_ctx_init(&ww, true); if (write) { memcpy(vaddr + addr, buf, len); ...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addr -= area->vm_start; if (addr >= obj->base.size) { return -EVAL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (write) { me...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ addr -= area->vm_start; if (range_overflows_t(u64, addr, len, obj->base.size)) { return -EVAL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int vm_access(struct vm_area_struct *area, unsigned long addr, void *buf, int len, int write) { addr -= area->vm_start; - if (addr >= obj->base.size) { + if (range_overflows_t(u64, addr, len, obj->base.size)) { return -EVAL; } i915_gem_ww_ctx_init(&ww, true); if (write) { ...
CVE-2023-28466
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/tls/tls_main.c
do_tls_getsockopt
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; switch (optname) { case TLS_TX: case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; case TLS_TX_ZEROCOPY_RO: rc = do_tls_getsockopt_tx_zc(sk...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; lock_sock(sk); switch (optname) { case TLS_TX: case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; case TLS_TX_ZEROCOPY_RO: rc = do_tls_...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; switch (optname) { case TLS_TX: case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; default: rc = -ENOPROTOOPT; break; } ret...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; lock_sock(sk); switch (optname) { case TLS_TX: case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; default: rc = -ENOPROTOOPT; b...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; switch (optname) { case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; case TLS_TX_ZEROCOPY_RO: rc = do_tls_getsockopt_tx_zc(sk, optval, optlen)...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; lock_sock(sk); switch (optname) { case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; case TLS_TX_ZEROCOPY_RO: rc = do_tls_getsockopt_tx_zc(...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; switch (optname) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; default: rc = -ENOPROTO...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; lock_sock(sk); switch (optname) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; default: ...
static int do_tls_getsockopt(struct sock *sk, int optname, char *optval, int *optlen) { int rc = 0; + lock_sock(sk); switch (optname) { case TLS_RX: rc = do_tls_getsockopt_conf(sk, optval, optlen, optname == TLS_TX); break; case TLS_TX_ZEROCOPY_RO: rc = do_tls_getsocko...
CVE-2023-28466
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/tls/tls_main.c
do_tls_getsockopt_conf
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { int rc = 0; struct tls_context *ctx = tls_get_ctx(sk); struct tls_crypto_info *crypto_info; struct cipher_context *cctx; int len; if (get_user(len, optlen)) { return -EFAULT; } if (!optval || ...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { int rc = 0; struct tls_context *ctx = tls_get_ctx(sk); struct tls_crypto_info *crypto_info; struct cipher_context *cctx; int len; if (get_user(len, optlen)) { return -EFAULT; } if (!optval || ...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { int rc = 0; struct tls_context *ctx = tls_get_ctx(sk); struct tls_crypto_info *crypto_info; struct cipher_context *cctx; int len; if (get_user(len, optlen)) { return -EFAULT; } if (!optval || ...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { int rc = 0; struct tls_context *ctx = tls_get_ctx(sk); struct tls_crypto_info *crypto_info; struct cipher_context *cctx; int len; if (get_user(len, optlen)) { return -EFAULT; } if (!optval || ...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { struct tls_context *ctx = tls_get_ctx(sk); switch (crypto_info->cipher_type) { case TLS_CIPHER_AES_GCM_128: { if (len != sizeof(*crypto_info_aes_gcm_128)) { goto out; } lock_sock(sk); ...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { struct tls_context *ctx = tls_get_ctx(sk); switch (crypto_info->cipher_type) { case TLS_CIPHER_AES_GCM_128: { if (len != sizeof(*crypto_info_aes_gcm_128)) { goto out; } memcpy(crypto_i...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct tls_context *ctx = tls_get_ctx(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (crypto_info->cipher_type) { case TLS_CIPHER_AES_GCM_128: { /* PLA...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct tls_context *ctx = tls_get_ctx(sk); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (crypto_info->cipher_type) { case TLS_CIPHER_AES_GCM_128: { /* PLA...
static int do_tls_getsockopt_conf(struct sock *sk, char *optval, int *optlen, int tx) { struct tls_context *ctx = tls_get_ctx(sk); switch (crypto_info->cipher_type) { case TLS_CIPHER_AES_GCM_128: { if (len != sizeof(*crypto_info_aes_gcm_128)) { goto out; } - lock_so...
CVE-2023-2898
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/f2fs/file.c
f2fs_ioc_resize_fs
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 block_count; if (!capable(CAP_SYS_ADM)) { return -EPERM; } if (f2fs_readonly(sbi->sb)) { return -EROFS; } if (copy_from_user(&block_count, (void...
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 block_count; if (!capable(CAP_SYS_ADM)) { return -EPERM; } if (f2fs_readonly(sbi->sb)) { return -EROFS; } if (copy_from_user(&block_count, (void...
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 block_count; if (!capable(CAP_SYS_ADM)) { return -EPERM; } if (f2fs_readonly(sbi->sb)) { return -EROFS; } if (copy_from_user(&block_count, (void...
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 block_count; if (!capable(CAP_SYS_ADM)) { return -EPERM; } if (f2fs_readonly(sbi->sb)) { return -EROFS; } if (copy_from_user(&block_count, (void...
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); return f2fs_resize_fs(sbi, block_count); }
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); return f2fs_resize_fs(filp, block_count); }
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return f2fs_resize_fs(sbi, block_count); }
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return f2fs_resize_fs(filp, block_count); }
static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); - return f2fs_resize_fs(sbi, block_count); + return f2fs_resize_fs(filp, block_count); }
CVE-2023-2898
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/f2fs/gc.c
f2fs_resize_fs
int f2fs_resize_fs(struct f2fs_sb_info *sbi, __u64 block_count) { __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; unsigned int secs; int err = 0; __u32 rem; old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi)->block_count); if (block_count > old_block_coun...
int f2fs_resize_fs(struct file *filp, __u64 block_count) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; unsigned int secs; int err = 0; __u32 rem; old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi...
int f2fs_resize_fs(struct f2fs_sb_info *sbi, __u64 block_count) { __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; unsigned int secs; int err = 0; __u32 rem; old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi)->block_count); if (block_count > old_block_coun...
int f2fs_resize_fs(struct file *filp, __u64 block_count) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; unsigned int secs; int err = 0; __u32 rem; old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi...
int f2fs_resize_fs(struct f2fs_sb_info *sbi, __u64 block_count) { __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi)->block_count); if (block_count > old_block_count) { return -EVAL; } if (f2fs_is_multi_...
int f2fs_resize_fs(struct file *filp, __u64 block_count) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi)->block_count); if (block_count > old_block_count)...
int f2fs_resize_fs(struct f2fs_sb_info *sbi, __u64 block_count) { __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi)->block_count); if (block_count > old_block_count) { ...
int f2fs_resize_fs(struct file *filp, __u64 block_count) { struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ old_block_count = le64_to_cpu(F2FS_RAW_SUPER(sbi)->bl...
-int f2fs_resize_fs(struct f2fs_sb_info *sbi, __u64 block_count) { +int f2fs_resize_fs(struct file *filp, __u64 block_count) { + struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); __u64 old_block_count, shrunk_blocks; struct cp_control cpc = { CP_RESIZE, 0, 0, 0 }; old_block_count = le64_to_cpu(F...
CVE-2023-2985
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/hfsplus/super.c
hfsplus_put_super
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfs_dbg(SUPER, "hfsplus_put_super\n"); cancel_delayed_work_sync(&sbi->sync_work); if (!sb_rdonly(sb) && sbi->s_vhdr) { struct hfsplus_vh *vhdr = sbi->s_vhdr; vhdr->modify_date = hfsp_now...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfs_dbg(SUPER, "hfsplus_put_super\n"); cancel_delayed_work_sync(&sbi->sync_work); if (!sb_rdonly(sb) && sbi->s_vhdr) { struct hfsplus_vh *vhdr = sbi->s_vhdr; vhdr->modify_date = hfsp_now...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfs_dbg(SUPER, "hfsplus_put_super\n"); cancel_delayed_work_sync(&sbi->sync_work); if (!sb_rdonly(sb) && sbi->s_vhdr) { struct hfsplus_vh *vhdr = sbi->s_vhdr; vhdr->modify_date = hfsp_now...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfs_dbg(SUPER, "hfsplus_put_super\n"); cancel_delayed_work_sync(&sbi->sync_work); if (!sb_rdonly(sb) && sbi->s_vhdr) { struct hfsplus_vh *vhdr = sbi->s_vhdr; vhdr->modify_date = hfsp_now...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); if (!sb_rdonly(sb) && sbi->s_vhdr) { hfsplus_sync_fs(sb, 1); } hfs_btree_close(sbi->attr_tree); hfs_btree_close(sbi->ext_tree); iput(sbi->alloc_file); iput(sbi->hidden_dir); kfre...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); if (!sb_rdonly(sb) && sbi->s_vhdr) { hfsplus_sync_fs(sb, 1); } iput(sbi->alloc_file); iput(sbi->hidden_dir); hfs_btree_close(sbi->attr_tree); hfs_btree_close(sbi->ext_tree); kfre...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!sb_rdonly(sb) && sbi->s_vhdr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hfsplus_sync_fs(sb, 1); } hfs_btree_close(sbi->attr_tree)...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!sb_rdonly(sb) && sbi->s_vhdr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hfsplus_sync_fs(sb, 1); } iput(sbi->alloc_file); iput...
static void hfsplus_put_super(struct super_block *sb) { struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); if (!sb_rdonly(sb) && sbi->s_vhdr) { hfsplus_sync_fs(sb, 1); } + iput(sbi->alloc_file); + iput(sbi->hidden_dir); hfs_btree_close(sbi->attr_tree); hfs_btree_close(sbi->ext_tree);...
CVE-2023-30772
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/power/supply/da9150-charger.c
da9150_charger_remove
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); int irq; irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = pla...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); int irq; irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = pla...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); int irq; irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = pla...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); int irq; irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = pla...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = platform_get_irq...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = platform_get_irq...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); ...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); ...
static int da9150_charger_remove(struct platform_device *pdev) { struct da9150_charger *charger = platform_get_drvdata(pdev); irq = platform_get_irq_byname(pdev, "CHG_VBUS"); free_irq(irq, charger); irq = platform_get_irq_byname(pdev, "CHG_VFAULT"); free_irq(irq, charger); irq = platform_...
CVE-2023-3090
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ipvlan/ipvlan_core.c
ipvlan_process_v4_outbound
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct rtable *rt; int err, ret = NET_XMIT_DROP; struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct rtable *rt; int err, ret = NET_XMIT_DROP; struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct rtable *rt; int err, ret = NET_XMIT_DROP; struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct rtable *rt; int err, ret = NET_XMIT_DROP; struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC, .flowi4_ma...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC, .flowi4_ma...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->t...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->t...
static int ipvlan_process_v4_outbound(struct sk_buff *skb) { const struct iphdr *ip4h = ip_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct flowi4 fl4 = { .flowi4_oif = dev->ifindex, .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC, .flo...
CVE-2023-3090
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ipvlan/ipvlan_core.c
ipvlan_process_v6_outbound
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct dst_entry *dst; int err, ret = NET_XMIT_DROP; struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct dst_entry *dst; int err, ret = NET_XMIT_DROP; struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct dst_entry *dst; int err, ret = NET_XMIT_DROP; struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct dst_entry *dst; int err, ret = NET_XMIT_DROP; struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h->daddr, .saddr = ip6h->saddr, .flowi6_flags = FLOWI_FLAG_ANY...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h->daddr, .saddr = ip6h->saddr, .flowi6_flags = FLOWI_FLAG_ANY...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h->daddr, .s...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h->daddr, .s...
static int ipvlan_process_v6_outbound(struct sk_buff *skb) { const struct ipv6hdr *ip6h = ipv6_hdr(skb); struct net_device *dev = skb->dev; struct net *net = dev_net(dev); struct flowi6 fl6 = { .flowi6_oif = dev->ifindex, .daddr = ip6h->daddr, .saddr = ip6h->saddr, .flowi6_flags = FLOWI_FL...
CVE-2023-31085
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/mtd/ubi/build.c
ubi_attach_mtd_dev
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024) { struct ubi_device *ubi; int i, err; if (max_beb_per1024 < 0 || max_beb_per1024 > MAX_MTD_UBI_BEB_LIMIT) { return -EVAL; } if (!max_beb_per1024) { max_beb_per1024 = CONFIG_MTD_UBI_BEB_...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024) { struct ubi_device *ubi; int i, err; if (max_beb_per1024 < 0 || max_beb_per1024 > MAX_MTD_UBI_BEB_LIMIT) { return -EVAL; } if (!max_beb_per1024) { max_beb_per1024 = CONFIG_MTD_UBI_BEB_...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024, bool disable_fm) { struct ubi_device *ubi; int i, err; if (max_beb_per1024 < 0 || max_beb_per1024 > MAX_MTD_UBI_BEB_LIMIT) { return -EVAL; } if (!max_beb_per1024) { max_beb_per1024 = CO...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024, bool disable_fm) { struct ubi_device *ubi; int i, err; if (max_beb_per1024 < 0 || max_beb_per1024 > MAX_MTD_UBI_BEB_LIMIT) { return -EVAL; } if (!max_beb_per1024) { max_beb_per1024 = CO...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024) { for (i = 0; i < UBI_MAX_DEVICES; i++) { ubi = ubi_devices[i]; if (ubi && mtd->index == ubi->mtd->index) { return -EEXIST; } } if (mtd->type == MTD_MLCNANDFLASH) { ...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024) { for (i = 0; i < UBI_MAX_DEVICES; i++) { ubi = ubi_devices[i]; if (ubi && mtd->index == ubi->mtd->index) { return -EEXIST; } } if (mtd->type == MTD_MLCNANDFLASH) { ...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024, bool disable_fm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < UBI_MAX_DEVICES; i++) { ubi = ubi_devices[i]; if (ubi && mtd->index == ubi->mtd->index) { /* PLACEHOLDER: DO NOT...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024, bool disable_fm) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < UBI_MAX_DEVICES; i++) { ubi = ubi_devices[i]; if (ubi && mtd->index == ubi->mtd->index) { /* PLACEHOLDER: DO NOT...
int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024) { for (i = 0; i < UBI_MAX_DEVICES; i++) { ubi = ubi_devices[i]; if (ubi && mtd->index == ubi->mtd->index) { return -EEXIST; } } if (mtd->type == MTD_MLCNANDFLASH) { ...
CVE-2023-3117
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nf_tables_api.c
nf_tables_newrule
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); struct netlink_ext_ack *extack = info->extack; unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->n...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); struct netlink_ext_ack *extack = info->extack; unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->n...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->net); u8 family = info->nfmsg->nfgen_family; ...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->net); u8 family = info->nfmsg->nfgen_family; ...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->net); u8 family = info->nfmsg->nfgen_family...
CVE-2023-3141
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/memstick/host/r592.c
r592_remove
static void r592_remove(struct pci_dev *pdev) { int error = 0; struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); r592_enable_device(dev, false); while (!error && dev->req) { dev->req->error = -ETIME; error = memstick_next_req(dev->host, &dev->req); } ...
static void r592_remove(struct pci_dev *pdev) { int error = 0; struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); del_timer_sync(&dev->detect_timer); r592_enable_device(dev, false); while (!error && dev->req) { dev->req->error = -ETIME; error = memstic...
static void r592_remove(struct pci_dev *pdev) { int error = 0; struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); r592_enable_device(dev, false); while (!error && dev->req) { dev->req->error = -ETIME; error = memstick_next_req(dev->host, &dev->req); } ...
static void r592_remove(struct pci_dev *pdev) { int error = 0; struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); del_timer_sync(&dev->detect_timer); r592_enable_device(dev, false); while (!error && dev->req) { dev->req->error = -ETIME; error = memstic...
static void r592_remove(struct pci_dev *pdev) { struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); r592_enable_device(dev, false); }
static void r592_remove(struct pci_dev *pdev) { struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); del_timer_sync(&dev->detect_timer); r592_enable_device(dev, false); }
static void r592_remove(struct pci_dev *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); r592_enable_device(dev, false); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void r592_remove(struct pci_dev *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); del_timer_sync(&dev->detect_timer); r592_enable_device(dev, false); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void r592_remove(struct pci_dev *pdev) { struct r592_device *dev = pci_get_drvdata(pdev); kthread_stop(dev->io_thread); + del_timer_sync(&dev->detect_timer); r592_enable_device(dev, false); }
CVE-2023-31436
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sched/sch_qfq.c
qfq_change_class
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); struct qfq_class *cl = (struct qfq_class *)*arg; bool existing = false; struct nlattr *tb[TCA_QFQ_MAX + 1]; stru...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); struct qfq_class *cl = (struct qfq_class *)*arg; bool existing = false; struct nlattr *tb[TCA_QFQ_MAX + 1]; stru...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); struct qfq_class *cl = (struct qfq_class *)*arg; bool existing = false; struct nlattr *tb[TCA_QFQ_MAX + 1]; stru...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); struct qfq_class *cl = (struct qfq_class *)*arg; bool existing = false; struct nlattr *tb[TCA_QFQ_MAX + 1]; stru...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); if (tb[TCA_QFQ_LMAX]) { lmax = nla_get_u32(tb[TCA_QFQ_LMAX]); if (lmax < QFQ_M_LMAX || lmax > (1UL << QFQ_MT...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); if (tb[TCA_QFQ_LMAX]) { lmax = nla_get_u32(tb[TCA_QFQ_LMAX]); } else { lmax = psched_mtu(qdisc_dev(sch))...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tb[TCA_QFQ_LMAX]) { lmax = nla_get_u32(tb[TCA_QFQ_LMAX]); ...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tb[TCA_QFQ_LMAX]) { lmax = nla_get_u32(tb[TCA_QFQ_LMAX]); ...
static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) { struct qfq_sched *q = qdisc_priv(sch); if (tb[TCA_QFQ_LMAX]) { lmax = nla_get_u32(tb[TCA_QFQ_LMAX]); - if (lmax < QFQ_M_LMAX || lmax > (1UL << Q...
CVE-2023-3159
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/firewire/core-cdev.c
outbound_phy_packet_callback
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); switch (status) { case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; break; case ACK_PENDG: e->phy...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); struct client *e_client; switch (status) { case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; brea...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); switch (status) { case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; break; case ACK_PENDG: e->phy...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); struct client *e_client; switch (status) { case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; brea...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); switch (status) { } e->phy_packet.data[0] = packet->timestamp; queue_event(e->client, &e->event, &e-...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); struct client *e_client; switch (status) { } e->phy_packet.data[0] = packet->timestamp; e_client...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); switch (status) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } e->phy_packet.data[0] = packet->ti...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); struct client *e_client; switch (status) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } e->ph...
static void outbound_phy_packet_callback(struct fw_packet *packet, struct fw_card *card, int status) { struct outbound_phy_packet_event *e = container_of(packet, struct outbound_phy_packet_event, p); + struct client *e_client; switch (status) { } e->phy_packet.data[0] = packet->timestamp; + e...
CVE-2023-3161
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/video/fbdev/core/fbcon.c
fbcon_set_font
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]]; unsigned charcount = font->charcount; int w = font->width; int h = font->height; int size; int i, csum; u8 *new_data, *data = font->dat...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]]; unsigned charcount = font->charcount; int w = font->width; int h = font->height; int size; int i, csum; u8 *new_data, *data = font->dat...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]]; unsigned charcount = font->charcount; int w = font->width; int h = font->height; int size; int i, csum; u8 *new_data, *data = font->dat...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { struct fb_info *info = registered_fb[con2fb_map[vc->vc_num]]; unsigned charcount = font->charcount; int w = font->width; int h = font->height; int size; int i, csum; u8 *new_data, *data = font->dat...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { int pitch = PITCH(font->width); if (w > FBCON_SWAP(info->var.rotate, info->var.xres, info->var.yres) || h > FBCON_SWAP(info->var.rotate, info->var.yres, info->var.xres)) { return -EVAL; } if (!(info->p...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { int pitch = PITCH(font->width); if (w > FBCON_SWAP(info->var.rotate, info->var.xres, info->var.yres) || h > FBCON_SWAP(info->var.rotate, info->var.yres, info->var.xres)) { return -EVAL; } if (font->wid...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int pitch = PITCH(font->width); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (w > FBCON_SWAP(info->var.rotate, info->var.xres, info->var.yres) || h > FBCON_SWA...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int pitch = PITCH(font->width); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (w > FBCON_SWAP(info->var.rotate, info->var.xres, info->var.yres) || h > FBCON_SWA...
static int fbcon_set_font(struct vc_data *vc, struct console_font *font, unsigned int flags) { int pitch = PITCH(font->width); if (w > FBCON_SWAP(info->var.rotate, info->var.xres, info->var.yres) || h > FBCON_SWAP(info->var.rotate, info->var.yres, info->var.xres)) { return -EVAL; } - if (!(i...
CVE-2023-3212
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/gfs2/super.c
gfs2_evict_inode
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; struct gfs2_inode *ip = GFS2_I(inode); struct gfs2_holder gh; int ret; if (test_bit(GIF_FREE_VFS_ODE, &ip->i_flags)) { clear_inode(inode); return; }...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; struct gfs2_inode *ip = GFS2_I(inode); struct gfs2_holder gh; int ret; if (test_bit(GIF_FREE_VFS_ODE, &ip->i_flags)) { clear_inode(inode); return; }...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; struct gfs2_inode *ip = GFS2_I(inode); struct gfs2_holder gh; struct address_space *metamapping; int error; if (test_bit(GIF_FREE_VFS_ODE, &ip->i_flags)) { ...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; struct gfs2_inode *ip = GFS2_I(inode); struct gfs2_holder gh; struct address_space *metamapping; int error; if (test_bit(GIF_FREE_VFS_ODE, &ip->i_flags)) { ...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; if (inode->i_nlink || sb_rdonly(sb)) { goto out; } gfs2_holder_mark_uninitialized(&gh); if (ret && ret != GLR_TRYFAILED && ret != -EROFS) { fs_warn(sdp,...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; if (inode->i_nlink || sb_rdonly(sb)) { goto out; } if (!sdp->sd_jdesc) { goto out; } gfs2_holder_mark_uninitialized(&gh); if (ret && ret != GLR_...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (inode->i_nlink || sb_rdonly(sb)) { goto out; } if (test_bit(GIF_ALLOC_FAILED, &ip->i_flags)) { /* PLACEHOL...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (inode->i_nlink || sb_rdonly(sb)) { goto out; } if (!sdp->sd_jdesc) { goto out; } if (test_bit(...
static void gfs2_evict_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct gfs2_sbd *sdp = sb->s_fs_info; if (inode->i_nlink || sb_rdonly(sb)) { + goto out; + } + if (!sdp->sd_jdesc) { goto out; } gfs2_holder_mark_uninitialized(&gh); if (ret && ...
CVE-2023-3220
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
dpu_crtc_atomic_check
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_atomic_state *state) { struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc_state); struct plane_state *psta...
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_atomic_state *state) { struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc_state); struct plane_state *psta...
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_crtc_state *state) { struct dpu_crtc *dpu_crtc; struct plane_state *pstates; struct dpu_crtc_state *cstate; const struct drm_plane_state *pstate; struct drm_plane *plane; struct drm_display_mode *mode; int cnt = 0, rc = 0, mi...
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_crtc_state *state) { struct dpu_crtc *dpu_crtc; struct plane_state *pstates; struct dpu_crtc_state *cstate; const struct drm_plane_state *pstate; struct drm_plane *plane; struct drm_display_mode *mode; int cnt = 0, rc = 0, mi...
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_atomic_state *state) { pstates = kzalloc(sizeof(*pstates) * DPU_STAGE_MAX * 4, GFP_KERNEL); if (!crtc_state->enable || !crtc_state->active) { goto end; } end: kfree(pstates); }
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_atomic_state *state) { pstates = kzalloc(sizeof(*pstates) * DPU_STAGE_MAX * 4, GFP_KERNEL); if (!pstates) { return -ENOMEM; } if (!crtc_state->enable || !crtc_state->active) { goto end; } end: kfree(pstates); }
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_crtc_state *state) { struct dpu_crtc *dpu_crtc; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ pstates = kzalloc(sizeof(*pstates) * DPU_STAGE_MAX * 4, GFP_KERNEL); dpu_crtc = to_dpu_crtc(crtc); cstate = to_dpu_crtc_state(state); i...
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_crtc_state *state) { struct dpu_crtc *dpu_crtc; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ pstates = kzalloc(sizeof(*pstates) * DPU_STAGE_MAX * 4, GFP_KERNEL); if (!pstates) { return -ENOMEM; } dpu_crtc = to_dpu_crtc(c...
static int dpu_crtc_atomic_check(struct drm_crtc *crtc, struct drm_atomic_state *state) { pstates = kzalloc(sizeof(*pstates) * DPU_STAGE_MAX * 4, GFP_KERNEL); + if (!pstates) { + return -ENOMEM; + } if (!crtc_state->enable || !crtc_state->active) { goto end; } end: kfree(psta...
CVE-2023-32233
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nf_tables_api.c
nf_tables_deactivate_set
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: set->use--; return; case NFT_TRANS_ABORT: case NFT_TRANS_RELEASE: set->use--; fallthrough;...
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: if (nft_set_is_anonymous(set)) { nft_deactivate_next(ctx->net, set); } set->use--; ret...
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: set->use--; return; case NFT_TRANS_ABORT: case NFT_TRANS_RELEASE: set->use--; fallthrough;...
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: if (nft_set_is_anonymous(set)) { nft_deactivate_next(ctx->net, set); } set->use--; ret...
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: set->use--; return; } }
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: if (nft_set_is_anonymous(set)) { nft_deactivate_next(ctx->net, set); } set->use--; ret...
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: set->use--; return; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } }
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: if (nft_set_is_anonymous(set)) { nft_deactivate_next(ctx->net, set); } set->use--; ret...
void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set, struct nft_set_binding *binding, enum nft_trans_phase phase) { switch (phase) { case NFT_TRANS_PREPARE: + if (nft_set_is_anonymous(set)) { + nft_deactivate_next(ctx->net, set); + } set->use--; ...
CVE-2023-32233
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nft_dynset.c
nft_dynset_activate
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_dynset_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_dynset *priv = nft_expr_priv(expr); - priv->set->use++; + nf_tables_activate_set(ctx, priv->set); }
CVE-2023-32233
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nft_lookup.c
nft_lookup_activate
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_lookup_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_lookup *priv = nft_expr_priv(expr); - priv->set->use++; + nf_tables_activate_set(ctx, priv->set); }
CVE-2023-32233
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nft_objref.c
nft_objref_map_activate
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); priv->set->use++; }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); nf_tables_activate_set(ctx, priv->set); }
static void nft_objref_map_activate(const struct nft_ctx *ctx, const struct nft_expr *expr) { struct nft_objref_map *priv = nft_expr_priv(expr); - priv->set->use++; + nf_tables_activate_set(ctx, priv->set); }
CVE-2023-32269
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netrom/af_netrom.c
nr_listen
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sk->sk_state != TCP_LISTEN) { memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); sk->sk_max_ack_backlog = backlog; sk->sk_state = TCP_LISTEN; release_sock(sk); return...
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sock->state != SS_UNCONNECTED) { release_sock(sk); return -EVAL; } if (sk->sk_state != TCP_LISTEN) { memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); sk->sk_max_ack...
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sk->sk_state != TCP_LISTEN) { memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); sk->sk_max_ack_backlog = backlog; sk->sk_state = TCP_LISTEN; release_sock(sk); return...
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sock->state != SS_UNCONNECTED) { release_sock(sk); return -EVAL; } if (sk->sk_state != TCP_LISTEN) { memset(&nr_sk(sk)->user_addr, 0, AX25_ADDR_LEN); sk->sk_max_ack...
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sk->sk_state != TCP_LISTEN) { return 0; } }
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sock->state != SS_UNCONNECTED) { release_sock(sk); return -EVAL; } if (sk->sk_state != TCP_LISTEN) { return 0; } }
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sk->sk_state != TCP_LISTEN) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); if (sock->state != SS_UNCONNECTED) { release_sock(sk); return -EVAL; } if (sk->sk_state != TCP_LISTEN) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return 0; } /...
static int nr_listen(struct socket *sock, int backlog) { struct sock *sk = sock->sk; lock_sock(sk); + if (sock->state != SS_UNCONNECTED) { + release_sock(sk); + return -EVAL; + } if (sk->sk_state != TCP_LISTEN) { return 0; } }
CVE-2023-3268
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
kernel/relay.c
relay_file_read_start_pos
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t read_subbuf, padding, padding_start, padding_end; size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = consumed * subbuf_siz...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t read_subbuf, padding, padding_start, padding_end; size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = (consumed * subbuf_si...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t read_subbuf, padding, padding_start, padding_end; size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = consumed * subbuf_siz...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t read_subbuf, padding, padding_start, padding_end; size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = (consumed * subbuf_si...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = consumed * subbuf_size + buf->bytes_consumed; read_subbuf = read_pos / subbuf_...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = (consumed * subbuf_size + buf->bytes_consumed) % (n_subbufs ...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = consumed * subbuf_size + buf->by...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; size_t read_pos = (consumed * subbuf_size + buf->b...
static size_t relay_file_read_start_pos(struct rchan_buf *buf) { size_t subbuf_size = buf->chan->subbuf_size; size_t n_subbufs = buf->chan->n_subbufs; size_t consumed = buf->subbufs_consumed % n_subbufs; - size_t read_pos = consumed * subbuf_size + buf->bytes_consumed; + size_t read_pos = (consume...
CVE-2023-3312
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/cpufreq/qcom-cpufreq-hw.c
qcom_cpufreq_hw_cpu_exit
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct device *cpu_dev = get_cpu_device(policy->cpu); struct qcom_cpufreq_data *data = policy->driver_data; struct resource *res = data->res; void __iomem *base = data->base; dev_pm_opp_remove_all_dynamic(cpu_dev); dev_pm_opp_o...
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct device *cpu_dev = get_cpu_device(policy->cpu); struct qcom_cpufreq_data *data = policy->driver_data; dev_pm_opp_remove_all_dynamic(cpu_dev); dev_pm_opp_of_cpumask_remove_table(policy->related_cpus); qcom_cpufreq_hw_lmh_exit(...
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct device *cpu_dev = get_cpu_device(policy->cpu); struct qcom_cpufreq_data *data = policy->driver_data; struct resource *res = data->res; void __iomem *base = data->base; dev_pm_opp_remove_all_dynamic(cpu_dev); dev_pm_opp_o...
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct device *cpu_dev = get_cpu_device(policy->cpu); struct qcom_cpufreq_data *data = policy->driver_data; dev_pm_opp_remove_all_dynamic(cpu_dev); dev_pm_opp_of_cpumask_remove_table(policy->related_cpus); qcom_cpufreq_hw_lmh_exit(...
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct qcom_cpufreq_data *data = policy->driver_data; struct resource *res = data->res; void __iomem *base = data->base; dev_pm_opp_remove_all_dynamic(cpu_dev); kfree(data); iounmap(base); release_mem_region(res->start, res...
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct qcom_cpufreq_data *data = policy->driver_data; dev_pm_opp_remove_all_dynamic(cpu_dev); kfree(data); return 0; }
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct qcom_cpufreq_data *data = policy->driver_data; struct resource *res = data->res; void __iomem *base = data->base; dev_pm_opp_remove_all_dynamic(cpu_dev); /* PLACEHOLDER: DO N...
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct qcom_cpufreq_data *data = policy->driver_data; dev_pm_opp_remove_all_dynamic(cpu_dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ kfree(data); return 0; }
static int qcom_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy) { struct qcom_cpufreq_data *data = policy->driver_data; - struct resource *res = data->res; - void __iomem *base = data->base; dev_pm_opp_remove_all_dynamic(cpu_dev); kfree(data); - iounmap(base); - release_mem_region(res->st...
CVE-2023-3312
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/cpufreq/qcom-cpufreq-hw.c
qcom_cpufreq_hw_driver_probe
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct clk_hw_onecell_data *clk_data; struct device *dev = &pdev->dev; struct device_node *soc_node; struct device *cpu_dev; struct clk *clk; int ret, i, num_domains, reg_sz; clk = clk_get(dev, "xo"); if (IS_ERR(clk)...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct clk_hw_onecell_data *clk_data; struct device *dev = &pdev->dev; struct device_node *soc_node; struct device *cpu_dev; struct clk *clk; int ret, i, num_domains, reg_sz; clk = clk_get(dev, "xo"); if (IS_ERR(clk)...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct clk_hw_onecell_data *clk_data; struct device *dev = &pdev->dev; struct device_node *soc_node; struct device *cpu_dev; struct clk *clk; int ret, i, num_domains, reg_sz; clk = clk_get(dev, "xo"); if (IS_ERR(clk)...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct clk_hw_onecell_data *clk_data; struct device *dev = &pdev->dev; struct device_node *soc_node; struct device *cpu_dev; struct clk *clk; int ret, i, num_domains, reg_sz; clk = clk_get(dev, "xo"); if (IS_ERR(clk)...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; clk = clk_get(dev, "xo"); clk = clk_get(dev, "alternate"); soc_node = of_get_parent(dev->of_node); reg_sz += i; num_domains = of_property_count_elems_of_size(dev->of_node, "reg", sizeof(u32) ...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; clk = clk_get(dev, "xo"); clk = clk_get(dev, "alternate"); soc_node = of_get_parent(dev->of_node); reg_sz += i; num_domains = of_property_count_elems_of_size(dev->of_node, "reg", sizeof(u32) ...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct device *dev = &pdev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clk = clk_get(dev, "xo"); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clk = clk_get(dev, "alterna...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct device *dev = &pdev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clk = clk_get(dev, "xo"); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ clk = clk_get(dev, "alterna...
static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; clk = clk_get(dev, "xo"); clk = clk_get(dev, "alternate"); soc_node = of_get_parent(dev->of_node); reg_sz += i; num_domains = of_property_count_elems_of_size(dev->of_node, "reg", sizeo...
CVE-2023-33203
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/net/ethernet/qualcomm/emac/emac.c
emac_remove
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); emac_clks_teardown(adpt); put_device(&adpt->phydev->mdio.dev); mdiobus...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); netif_carrier_off(netdev); netif_tx_disable(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); free_irq(adpt->ir...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); emac_clks_teardown(adpt); put_device(&adpt->phydev->mdio.dev); mdiobus...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); netif_carrier_off(netdev); netif_tx_disable(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); free_irq(adpt->ir...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); emac_clks_teardown(adpt); free_netdev(netdev); }
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); netif_carrier_off(netdev); netif_tx_disable(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); free_irq(adpt->ir...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); emac_clks_teardown(adpt); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); netif_carrier_off(netdev); netif_tx_disable(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); free_irq(adpt->ir...
static int emac_remove(struct platform_device *pdev) { struct net_device *netdev = dev_get_drvdata(&pdev->dev); struct emac_adapter *adpt = netdev_priv(netdev); + netif_carrier_off(netdev); + netif_tx_disable(netdev); unregister_netdev(netdev); netif_napi_del(&adpt->rx_q.napi); + free_irq(...
CVE-2023-33250
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/iommu/iommufd/device.c
iommufd_access_unpin_pages
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; struct iopt_area_contig_iter iter; unsigned long last_iova; struct iopt_area *area; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, len...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; struct iopt_area_contig_iter iter; unsigned long last_iova; struct iopt_area *area; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, len...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; struct iopt_area_contig_iter iter; unsigned long last_iova; struct iopt_area *area; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, len...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; struct iopt_area_contig_iter iter; unsigned long last_iova; struct iopt_area *area; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, len...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) { return; } iopt_for_each_contig_area(&iter, area, iopt, ...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) { return; } iopt_for_each_contig_area(&iter, area, iopt, ...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) { return; }...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) { return; }...
void iommufd_access_unpin_pages(struct iommufd_access *access, unsigned long iova, unsigned long length) { struct io_pagetable *iopt = &access->ioas->iopt; if (WARN_ON(!length) || WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) { return; } iopt_for_each_contig_area(&iter, area, ...
CVE-2023-33288
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/power/supply/bq24190_charger.c
bq24190_remove
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; error = pm_runtime_resume_and_get(bdi->dev); if (error < 0) { dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error); } bq24190_register_reset(bdi); if (bdi-...
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; cancel_delayed_work_sync(&bdi->input_current_limit_work); error = pm_runtime_resume_and_get(bdi->dev); if (error < 0) { dev_warn(bdi->dev, "pm_runtime_get failed: %i\n...
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; error = pm_runtime_resume_and_get(bdi->dev); if (error < 0) { dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error); } bq24190_register_reset(bdi); if (bdi-...
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; cancel_delayed_work_sync(&bdi->input_current_limit_work); error = pm_runtime_resume_and_get(bdi->dev); if (error < 0) { dev_warn(bdi->dev, "pm_runtime_get failed: %i\n...
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; error = pm_runtime_resume_and_get(bdi->dev); }
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; cancel_delayed_work_sync(&bdi->input_current_limit_work); error = pm_runtime_resume_and_get(bdi->dev); }
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; error = pm_runtime_resume_and_get(bdi->dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; cancel_delayed_work_sync(&bdi->input_current_limit_work); error = pm_runtime_resume_and_get(bdi->dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int bq24190_remove(struct i2c_client *client) { struct bq24190_dev_info *bdi = i2c_get_clientdata(client); int error; + cancel_delayed_work_sync(&bdi->input_current_limit_work); error = pm_runtime_resume_and_get(bdi->dev); }
CVE-2023-3355
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/gpu/drm/msm/msm_gem_submit.c
submit_lookup_cmds
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { unsigned i; size_t sz; int ret = 0; for (i = 0; i < args->nr_cmds; i++) { struct drm_msm_gem_submit_cmd submit_cmd; void *userptr = u64_to_user_ptr(args->cmds + (i * siz...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { unsigned i; size_t sz; int ret = 0; for (i = 0; i < args->nr_cmds; i++) { struct drm_msm_gem_submit_cmd submit_cmd; void *userptr = u64_to_user_ptr(args->cmds + (i * siz...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { unsigned i; size_t sz; int ret = 0; for (i = 0; i < args->nr_cmds; i++) { struct drm_msm_gem_submit_cmd submit_cmd; void *userptr = u64_to_user_ptr(args->cmds + (i * siz...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { unsigned i; size_t sz; int ret = 0; for (i = 0; i < args->nr_cmds; i++) { struct drm_msm_gem_submit_cmd submit_cmd; void *userptr = u64_to_user_ptr(args->cmds + (i * siz...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { for (i = 0; i < args->nr_cmds; i++) { sz = array_size(submit_cmd.nr_relocs, sizeof(struct drm_msm_gem_submit_reloc)); if (sz == SIZE_MAX) { goto out; } s...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { for (i = 0; i < args->nr_cmds; i++) { sz = array_size(submit_cmd.nr_relocs, sizeof(struct drm_msm_gem_submit_reloc)); if (sz == SIZE_MAX) { goto out; } s...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < args->nr_cmds; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sz = array_size(submit_cmd.nr_relocs, sizeof(struct...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < args->nr_cmds; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sz = array_size(submit_cmd.nr_relocs, sizeof(struct...
static int submit_lookup_cmds(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) { for (i = 0; i < args->nr_cmds; i++) { sz = array_size(submit_cmd.nr_relocs, sizeof(struct drm_msm_gem_submit_reloc)); if (sz == SIZE_MAX) { goto out; } ...
CVE-2023-3357
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/hid/amd-sfh-hid/amd_sfh_client.c
amd_sfh_hid_client_init
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { struct amd_input_data *in_data = &privdata->in_data; struct amdtp_cl_data *cl_data = privdata->cl_data; struct amd_mp2_sensor_info info; struct device *dev; u32 feature_report_size; u32 input_report_size; int rc, i, status; u8 c...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { struct amd_input_data *in_data = &privdata->in_data; struct amdtp_cl_data *cl_data = privdata->cl_data; struct amd_mp2_sensor_info info; struct device *dev; u32 feature_report_size; u32 input_report_size; int rc, i, status; u8 c...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { struct amd_input_data *in_data = &privdata->in_data; struct amdtp_cl_data *cl_data = privdata->cl_data; struct amd_mp2_ops *mp2_ops = privdata->mp2_ops; struct amd_mp2_sensor_info info; struct request_list *req_list; struct device *dev;...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { struct amd_input_data *in_data = &privdata->in_data; struct amdtp_cl_data *cl_data = privdata->cl_data; struct amd_mp2_ops *mp2_ops = privdata->mp2_ops; struct amd_mp2_sensor_info info; struct request_list *req_list; struct device *dev;...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { dev = &privdata->pdev->dev; for (i = 0; i < cl_data->num_hid_devices; i++) { in_data->sensor_virt_addr[i] = dma_alloc_coherent(dev, sizeof(int) * 8, &cl_data->sensor_dma_addr[i], GFP_KERNEL); cl_data->sensor_sts[i] = SENSOR_DISABLED; ...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { dev = &privdata->pdev->dev; for (i = 0; i < cl_data->num_hid_devices; i++) { in_data->sensor_virt_addr[i] = dma_alloc_coherent(dev, sizeof(int) * 8, &cl_data->sensor_dma_addr[i], GFP_KERNEL); if (!in_data->sensor_virt_addr[i]) { ...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev = &privdata->pdev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < cl_data->num_hid_devices; i++) { in_data->sensor_virt_addr[i] = dma_alloc_coherent(dev, sizeof(int) ...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dev = &privdata->pdev->dev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < cl_data->num_hid_devices; i++) { in_data->sensor_virt_addr[i] = dma_alloc_coherent(dev, sizeof(int) ...
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) { dev = &privdata->pdev->dev; for (i = 0; i < cl_data->num_hid_devices; i++) { in_data->sensor_virt_addr[i] = dma_alloc_coherent(dev, sizeof(int) * 8, &cl_data->sensor_dma_addr[i], GFP_KERNEL); + if (!in_data->sensor_virt_addr[i]) { + ...
CVE-2023-3358
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/hid/intel-ish-hid/ishtp/dma-if.c
ishtp_cl_get_dma_send_buf
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { unsigned long flags; int i, j, free; int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); spin_lock_irqsave(&dev->ishtp_dma_tx_lock, flags); for (i = 0; i <= (dev->ishtp_dma_...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { unsigned long flags; int i, j, free; int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); if (!dev->ishtp_dma_tx_map) { dev_err(dev->devc, "Fail to allocate Tx map\n"); ...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { unsigned long flags; int i, j, free; int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); spin_lock_irqsave(&dev->ishtp_dma_tx_lock, flags); for (i = 0; i <= (dev->ishtp_dma_...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { unsigned long flags; int i, j, free; int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); if (!dev->ishtp_dma_tx_map) { dev_err(dev->devc, "Fail to allocate Tx map\n"); ...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); spin_lock_irqsave(&dev->ishtp_dma_tx_lock, flags); }
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); if (!dev->ishtp_dma_tx_map) { dev_err(dev->devc, "Fail to allocate Tx map\n"); return NULL; } spin_lock_irqsa...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); spin_lock_irqsave(&dev->ishtp_dma_tx_lock, flags); /* PLACEHOLDER: DO NOT DELET...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); if (!dev->ishtp_dma_tx_map) { dev_err(dev->devc, "Fail to allocate Tx map\n...
void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, uint32_t size) { int required_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); + if (!dev->ishtp_dma_tx_map) { + dev_err(dev->devc, "Fail to allocate Tx map\n"); + return NULL; + } spin_lo...
CVE-2023-3358
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/hid/intel-ish-hid/ishtp/dma-if.c
ishtp_cl_release_dma_acked_mem
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { unsigned long flags; int acked_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); int i, j; if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { dev_err(de...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { unsigned long flags; int acked_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); int i, j; if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { dev_err(de...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { unsigned long flags; int acked_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); int i, j; if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { dev_err(de...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { unsigned long flags; int acked_slots = (size / DMA_SLOT_SIZE) + 1 * (size % DMA_SLOT_SIZE != 0); int i, j; if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { dev_err(de...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { return; } i = (msg_addr - dev->ishtp_host_dma_tx_buf) / DMA_SLOT_SIZE; }
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { return; } if (!dev->ishtp_dma_tx_map) { dev_err(dev->devc, "Fail to allocate Tx map\n"); return; } i = (msg_addr - dev-...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return; } i = (msg_addr - dev->ishtp_host_d...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return; } if (!dev->ishtp_dma_tx_map) { ...
void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, void *msg_addr, uint8_t size) { if ((msg_addr - dev->ishtp_host_dma_tx_buf) % DMA_SLOT_SIZE) { return; } + if (!dev->ishtp_dma_tx_map) { + dev_err(dev->devc, "Fail to allocate Tx map\n"); + return; + } i = (msg_ad...
CVE-2023-3390
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/netfilter/nf_tables_api.c
nf_tables_newrule
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); struct netlink_ext_ack *extack = info->extack; unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->n...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); struct netlink_ext_ack *extack = info->extack; unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->n...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->net); u8 family = info->nfmsg->nfgen_family; ...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->net); u8 family = info->nfmsg->nfgen_family; ...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct net *net, struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[], struct netlink_ext_ack *extack) { struct nftables_pernet *nft_net = net_generic(net, nf_tables_net_id); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); u8 genm...
static int nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { struct nftables_pernet *nft_net = nft_pernet(info->net); unsigned int size, i, n, ulen = 0, usize = 0; u8 genmask = nft_genmask_next(info->net); u8 family = info->nfmsg->nfgen_family...
CVE-2023-34256
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
fs/ext4/super.c
ext4_group_desc_csum
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { int offset = offsetof(struct ext4_group_desc, bg_checksum); __u16 crc = 0; __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (ext4_has_metadata_csum(sbi->...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { int offset = offsetof(struct ext4_group_desc, bg_checksum); __u16 crc = 0; __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (ext4_has_metadata_csum(sbi->...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { int offset = offsetof(struct ext4_group_desc, bg_checksum); __u16 crc = 0; __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (ext4_has_metadata_csum(sbi->...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { int offset = offsetof(struct ext4_group_desc, bg_checksum); __u16 crc = 0; __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (ext4_has_metadata_csum(sbi->...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (!ext4_has_feature_gdt_csum(sb)) { return 0; } crc = crc16(~0, sbi->s_es->s_uuid, sizeof(sbi->s_...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (!ext4_has_feature_gdt_csum(sb)) { return 0; } crc = crc16(~0, sbi->s_es->s_uuid, sizeof(sbi->s_...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!ext4_has_f...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!ext4_has_f...
static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group, struct ext4_group_desc *gdp) { __le32 le_group = cpu_to_le32(block_group); struct ext4_sb_info *sbi = EXT4_SB(sb); if (!ext4_has_feature_gdt_csum(sb)) { return 0; } crc = crc16(~0, sbi->s_es->s_uuid, sizeof(...
CVE-2023-35788
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
net/sched/cls_flower.c
fl_set_geneve_opt
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GENEVE_MAX + 1]; struct nlattr *class = NULL, *type = NULL, *data = NULL; struct geneve_opt *opt; int err, data_len = 0; ...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GENEVE_MAX + 1]; struct nlattr *class = NULL, *type = NULL, *data = NULL; struct geneve_opt *opt; int err, data_len = 0; ...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GENEVE_MAX + 1]; struct nlattr *class = NULL, *type = NULL, *data = NULL; struct geneve_opt *opt; int err, data_len = 0; ...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { struct nlattr *tb[TCA_FLOWER_KEY_ENC_OPT_GENEVE_MAX + 1]; struct nlattr *class = NULL, *type = NULL, *data = NULL; struct geneve_opt *opt; int err, data_len = 0; ...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { if (option_len > sizeof(struct geneve_opt)) { data_len = option_len - sizeof(struct geneve_opt); } opt = (struct geneve_opt *)&key->enc_opts.data[key->enc_opts...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { if (option_len > sizeof(struct geneve_opt)) { data_len = option_len - sizeof(struct geneve_opt); } if (key->enc_opts.len > FLOW_DIS_TUN_OPTS_MAX - 4) { ...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (option_len > sizeof(struct geneve_opt)) { data_len = option_len - sizeof(struct geneve_opt); } opt = (str...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (option_len > sizeof(struct geneve_opt)) { data_len = option_len - sizeof(struct geneve_opt); } if (key->e...
static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key, int depth, int option_len, struct netlink_ext_ack *extack) { if (option_len > sizeof(struct geneve_opt)) { data_len = option_len - sizeof(struct geneve_opt); + } + if (key->enc_opts.len > FLOW_DIS_TUN_OPTS_MAX - 4) { + ...
CVE-2023-35823
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/pci/saa7134/saa7134-ts.c
saa7134_ts_fini
int saa7134_ts_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->ts_q.timeout); saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->ts_q.timeout); saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->ts_q.timeout); saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->ts_q.timeout); saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
int saa7134_ts_fini(struct saa7134_dev *dev) { + del_timer_sync(&dev->ts_q.timeout); saa7134_pgtable_free(dev->pci, &dev->ts_q.pt); return 0; }
CVE-2023-35823
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/pci/saa7134/saa7134-vbi.c
saa7134_vbi_fini
int saa7134_vbi_fini(struct saa7134_dev *dev) { return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->vbi_q.timeout); return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->vbi_q.timeout); return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->vbi_q.timeout); return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->vbi_q.timeout); return 0; }
int saa7134_vbi_fini(struct saa7134_dev *dev) { + del_timer_sync(&dev->vbi_q.timeout); return 0; }
CVE-2023-35823
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/pci/saa7134/saa7134-video.c
saa7134_video_fini
void saa7134_video_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radio_ctrl_handler); } }
void saa7134_video_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->video_q.timeout); saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radi...
void saa7134_video_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radio_ctrl_handler); } }
void saa7134_video_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->video_q.timeout); saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radi...
void saa7134_video_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radio_ctrl_handler); } }
void saa7134_video_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->video_q.timeout); saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radi...
void saa7134_video_fini(struct saa7134_dev *dev) { saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radio_ctrl_handler); } }
void saa7134_video_fini(struct saa7134_dev *dev) { del_timer_sync(&dev->video_q.timeout); saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&dev->radi...
void saa7134_video_fini(struct saa7134_dev *dev) { + del_timer_sync(&dev->video_q.timeout); saa7134_pgtable_free(dev->pci, &dev->video_q.pt); saa7134_pgtable_free(dev->pci, &dev->vbi_q.pt); v4l2_ctrl_handler_free(&dev->ctrl_handler); if (card_has_radio(dev)) { v4l2_ctrl_handler_free(&de...
CVE-2023-35824
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/media/pci/dm1105/dm1105.c
dm1105_remove
static void dm1105_remove(struct pci_dev *pdev) { struct dm1105_dev *dev = pci_get_drvdata(pdev); struct dvb_adapter *dvb_adapter = &dev->dvb_adapter; struct dvb_demux *dvbdemux = &dev->demux; struct dmx_demux *dmx = &dvbdemux->dmx; dm1105_ir_exit(dev); dmx->close(dmx); dvb_net_release(&dev-...
static void dm1105_remove(struct pci_dev *pdev) { struct dm1105_dev *dev = pci_get_drvdata(pdev); struct dvb_adapter *dvb_adapter = &dev->dvb_adapter; struct dvb_demux *dvbdemux = &dev->demux; struct dmx_demux *dmx = &dvbdemux->dmx; cancel_work_sync(&dev->ir.work); dm1105_ir_exit(dev); dmx->...
static void dm1105_remove(struct pci_dev *pdev) { struct dm1105_dev *dev = pci_get_drvdata(pdev); struct dvb_adapter *dvb_adapter = &dev->dvb_adapter; struct dvb_demux *dvbdemux = &dev->demux; struct dmx_demux *dmx = &dvbdemux->dmx; dm1105_ir_exit(dev); dmx->close(dmx); dvb_net_release(&dev-...
static void dm1105_remove(struct pci_dev *pdev) { struct dm1105_dev *dev = pci_get_drvdata(pdev); struct dvb_adapter *dvb_adapter = &dev->dvb_adapter; struct dvb_demux *dvbdemux = &dev->demux; struct dmx_demux *dmx = &dvbdemux->dmx; cancel_work_sync(&dev->ir.work); dm1105_ir_exit(dev); dmx->...
static void dm1105_remove(struct pci_dev *pdev) { struct dmx_demux *dmx = &dvbdemux->dmx; dm1105_ir_exit(dev); }
static void dm1105_remove(struct pci_dev *pdev) { struct dmx_demux *dmx = &dvbdemux->dmx; cancel_work_sync(&dev->ir.work); dm1105_ir_exit(dev); }
static void dm1105_remove(struct pci_dev *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dmx_demux *dmx = &dvbdemux->dmx; dm1105_ir_exit(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void dm1105_remove(struct pci_dev *pdev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct dmx_demux *dmx = &dvbdemux->dmx; cancel_work_sync(&dev->ir.work); dm1105_ir_exit(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void dm1105_remove(struct pci_dev *pdev) { struct dmx_demux *dmx = &dvbdemux->dmx; + cancel_work_sync(&dev->ir.work); dm1105_ir_exit(dev); }
CVE-2023-35826
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/media/sunxi/cedrus/cedrus.c
cedrus_remove
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); if (media_devnode_is_registered(dev->mdev.devnode)) { media_device_unregister(&dev->mdev); v4l2_m2m_unregister_media_controller(dev->m2m_dev); media_device_cleanup(&dev->mdev); ...
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); cancel_delayed_work_sync(&dev->watchdog_work); if (media_devnode_is_registered(dev->mdev.devnode)) { media_device_unregister(&dev->mdev); v4l2_m2m_unregister_media_controller(dev->m2...
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); if (media_devnode_is_registered(dev->mdev.devnode)) { media_device_unregister(&dev->mdev); v4l2_m2m_unregister_media_controller(dev->m2m_dev); media_device_cleanup(&dev->mdev); ...
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); cancel_delayed_work_sync(&dev->watchdog_work); if (media_devnode_is_registered(dev->mdev.devnode)) { media_device_unregister(&dev->mdev); v4l2_m2m_unregister_media_controller(dev->m2...
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); }
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); cancel_delayed_work_sync(&dev->watchdog_work); }
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); cancel_delayed_work_sync(&dev->watchdog_work); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int cedrus_remove(struct platform_device *pdev) { struct cedrus_dev *dev = platform_get_drvdata(pdev); + cancel_delayed_work_sync(&dev->watchdog_work); }
CVE-2023-35828
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/usb/gadget/udc/renesas_usb3.c
renesas_usb3_remove
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); debugfs_remove_recursive(usb3->dentry); device_remove_file(&pdev->dev, &dev_attr_role); usb_role_switch_unregister(usb3->role_sw); usb_del_gadget_udc(&usb3->gadget); renesas_usb...
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); debugfs_remove_recursive(usb3->dentry); device_remove_file(&pdev->dev, &dev_attr_role); cancel_work_sync(&usb3->role_work); usb_role_switch_unregister(usb3->role_sw); usb_del_ga...
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); debugfs_remove_recursive(usb3->dentry); device_remove_file(&pdev->dev, &dev_attr_role); usb_role_switch_unregister(usb3->role_sw); usb_del_gadget_udc(&usb3->gadget); renesas_usb...
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); debugfs_remove_recursive(usb3->dentry); device_remove_file(&pdev->dev, &dev_attr_role); cancel_work_sync(&usb3->role_work); usb_role_switch_unregister(usb3->role_sw); usb_del_ga...
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); device_remove_file(&pdev->dev, &dev_attr_role); usb_role_switch_unregister(usb3->role_sw); }
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); device_remove_file(&pdev->dev, &dev_attr_role); cancel_work_sync(&usb3->role_work); usb_role_switch_unregister(usb3->role_sw); }
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ device_remove_file(&pdev->dev, &dev_attr_role); usb_role_switch_unregister(usb3->role_sw); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ device_remove_file(&pdev->dev, &dev_attr_role); cancel_work_sync(&usb3->role_work); usb_role_switch_unregister(usb3->role_sw); /* P...
static int renesas_usb3_remove(struct platform_device *pdev) { struct renesas_usb3 *usb3 = platform_get_drvdata(pdev); device_remove_file(&pdev->dev, &dev_attr_role); + cancel_work_sync(&usb3->role_work); usb_role_switch_unregister(usb3->role_sw); }
CVE-2023-35829
linux
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
drivers/staging/media/rkvdec/rkvdec.c
rkvdec_remove
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); cancel_delayed_work_sync(&rkvdec->watchdog_work); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); cancel_delayed_work_sync(&rkvdec->watchdog_work); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); cancel_delayed_work_sync(&rkvdec->watchdog_work); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); cancel_delayed_work_sync(&rkvdec->watchdog_work); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
static int rkvdec_remove(struct platform_device *pdev) { struct rkvdec_dev *rkvdec = platform_get_drvdata(pdev); + cancel_delayed_work_sync(&rkvdec->watchdog_work); rkvdec_v4l2_cleanup(rkvdec); pm_runtime_disable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); return 0; }
CVE-2010-0297
QEMU
https://github.com/qemu/qemu
usb-linux.c
usb_host_handle_control
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { struct usbdevfs_urb *urb; AsyncURB *aurb; int ret, value, index; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len %u\n", s->ctrl.req....
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { struct usbdevfs_urb *urb; AsyncURB *aurb; int ret, value, index; int buffer_len; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len...
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { struct usbdevfs_urb *urb; AsyncURB *aurb; int ret, value, index; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len %u\n", s->ctrl.req....
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { struct usbdevfs_urb *urb; AsyncURB *aurb; int ret, value, index; int buffer_len; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len...
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { int ret, value, index; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len %u\n", s->ctrl.req.bRequestType, s->ctrl.req.bRequest, value, index, ...
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { int ret, value, index; int buffer_len; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len %u\n", s->ctrl.req.bRequestType, s->ctrl.req.bReq...
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret, value, index; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len %u\n", s->ctrl.req....
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret, value, index; int buffer_len; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len...
static int usb_host_handle_control(USBHostDevice *s, USBPacket *p) { int ret, value, index; + int buffer_len; value = le16_to_cpu(s->ctrl.req.wValue); index = le16_to_cpu(s->ctrl.req.wIndex); dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u len %u\n", s->ctrl.req.bRequestType, s->ctrl.re...
CVE-2010-4015
postgres
contrib/intarray/_int_bool.c
gettoken
static int4 gettoken(WORKSTATE *state, int4 *val) { char nnn[16], *curnnn; *val = 0; curnnn = nnn; while (1) { switch (state->state) { case WAITOPERAND: curnnn = nnn; if ((*(state->buf) >= '0' && *(state->buf) <= '9') || *(state->buf) == '-') { sta...
static int4 gettoken(WORKSTATE *state, int4 *val) { char nnn[16]; int innn; *val = 0; innn = 0; while (1) { if (innn >= sizeof(nnn)) { return ERR; } switch (state->state) { case WAITOPERAND: innn = 0; if ((*(state->buf) >= '0' && *(...
static int4 gettoken(WORKSTATE * state, int4 *val) { char nnn[16], *curnnn; *val = 0; curnnn = nnn; while (1) { switch (state->state) { case WAITOPERAND: curnnn = nnn; if ((*(state->buf) >= '0' && *(state->buf) <= '9') || *(state->buf) == '-') { st...
static int4 gettoken(WORKSTATE * state, int4 *val) { char nnn[16]; int innn; *val = 0; innn = 0; while (1) { if (innn >= sizeof(nnn)) { return ERR; } switch (state->state) { case WAITOPERAND: innn = 0; if ((*(state->buf) >= '0' && *...
static int4 gettoken(WORKSTATE *state, int4 *val) { char nnn[16], *curnnn; *val = 0; curnnn = nnn; while (1) { switch (state->state) { case WAITOPERAND: curnnn = nnn; if ((*(state->buf) >= '0' && *(state->buf) <= '9') || *(state->buf) == '-') { sta...
static int4 gettoken(WORKSTATE *state, int4 *val) { char nnn[16]; int innn; *val = 0; innn = 0; while (1) { if (innn >= sizeof(nnn)) { return ERR; } switch (state->state) { case WAITOPERAND: innn = 0; if ((*(state->buf) >= '0' && *(...
static int4 gettoken(WORKSTATE * state, int4 *val) { char nnn[16], *curnnn; *val = 0; curnnn = nnn; while (1) { switch (state->state) { case WAITOPERAND: curnnn = nnn; if ((*(state->buf) >= '0' && *(state->buf) <= '9') || *(state->buf) == '-') { st...
static int4 gettoken(WORKSTATE * state, int4 *val) { char nnn[16]; int innn; *val = 0; innn = 0; while (1) { if (innn >= sizeof(nnn)) { return ERR; } switch (state->state) { case WAITOPERAND: innn = 0; if ((*(state->buf) >= '0' && *...
static int4 gettoken(WORKSTATE *state, int4 *val) { - char nnn[16], *curnnn; + char nnn[16]; + int innn; *val = 0; - curnnn = nnn; + innn = 0; while (1) { + if (innn >= sizeof(nnn)) { + return ERR; + } switch (state->state) { case WAITOPERAND: - ...
CVE-2011-1750
QEMU
https://github.com/qemu/qemu
hw/virtio-blk.c
virtio_blk_handle_read
static void virtio_blk_handle_read(VirtIOBlockReq *req) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&req->out->sector); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO); return; } acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&req->out->sector); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO); return; } if (req->qiov.size % req->dev->conf->logical_block_size) { ...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&req->out->sector); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO); return; } acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&req->out->sector); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO); return; } if (req->qiov.size % req->dev->conf->logical_block_size) { ...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { if (sector & req->dev->sector_mask) { return; } acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov.size / BDRV_SECTOR_SIZE, virtio_blk_rw_complete, req); if (!acb) { virtio_blk_rw_complete(req, -EIO); } }
static void virtio_blk_handle_read(VirtIOBlockReq *req) { if (sector & req->dev->sector_mask) { return; } if (req->qiov.size % req->dev->conf->logical_block_size) { virtio_blk_rw_complete(req, -EIO); return; } acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov.s...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (sector & req->dev->sector_mask) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return; } acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov.size / BDRV_SECTOR_SIZE, virt...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (sector & req->dev->sector_mask) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return; } if (req->qiov.size % req->dev->conf->logical_block_size) { virtio_blk_rw_complete(req,...
static void virtio_blk_handle_read(VirtIOBlockReq *req) { if (sector & req->dev->sector_mask) { + return; + } + if (req->qiov.size % req->dev->conf->logical_block_size) { + virtio_blk_rw_complete(req, -EIO); return; } acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, re...
CVE-2011-1750
QEMU
https://github.com/qemu/qemu
hw/virtio-blk.c
virtio_blk_handle_write
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { BlockRequest *blkreq; uint64_t sector; sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO);...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { BlockRequest *blkreq; uint64_t sector; sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO);...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { BlockRequest *blkreq; uint64_t sector; sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO);...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { BlockRequest *blkreq; uint64_t sector; sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { virtio_blk_rw_complete(req, -EIO);...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { return; } blkreq->nb_sectors = req->qiov.size / BDRV_SECTOR_SIZE; blk...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { return; } if (req->qiov.size % req->dev->conf->logical_block_size) { ...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { /* PLACEHOLDER: DO NOT DELETE THIS ...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { /* PLACEHOLDER: DO NOT DELETE THIS ...
static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb) { sector = ldq_p(&req->out->sector); trace_virtio_blk_handle_write(req, sector, req->qiov.size / 512); if (sector & req->dev->sector_mask) { return; } + if (req->qiov.size % req->dev->conf->logical_block_size)...
CVE-2011-1931
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/sp5xdec.c
sp5x_decode_frame
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVPacket avpkt_recoded; const int qscale = 5; const uint8_t *buf_ptr; uint8_t *recoded; int i = 0, j = 0; if (!avctx->width || ...
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVPacket avpkt_recoded; const int qscale = 5; const uint8_t *buf_ptr; uint8_t *recoded; int i = 0, j = 0; if (!avctx->width || ...
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; const int qscale = 5; const uint8_t *buf_ptr, *buf_end; uint8_t *recoded; int i = 0, j = 0; if (!avctx->width || !avctx->height) { ...
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; const int qscale = 5; const uint8_t *buf_ptr, *buf_end; uint8_t *recoded; int i = 0, j = 0; if (!avctx->width || !avctx->height) { ...
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { recoded[j++] = 0xD9; avctx->flags &= ~CODEC_FLAG_EMU_EDGE; av_init_packet(&avpkt_recoded); i = ff_mjpeg_decode_frame(avctx, data, data_size, &avpkt_recoded); return i; }
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { recoded[j++] = 0xD9; av_init_packet(&avpkt_recoded); i = ff_mjpeg_decode_frame(avctx, data, data_size, &avpkt_recoded); return i; }
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ recoded[j++] = 0xD9; avctx->flags &= ~CODEC_FLAG_EMU_EDGE; i = ff_mjpeg_decode_frame(avctx, data...
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ recoded[j++] = 0xD9; i = ff_mjpeg_decode_frame(avctx, data, data_size, recoded, j); /* PLACEHOLD...
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { recoded[j++] = 0xD9; - avctx->flags &= ~CODEC_FLAG_EMU_EDGE; av_init_packet(&avpkt_recoded); i = ff_mjpeg_decode_frame(avctx, data, data_size, &avpkt_recoded); return i; }
CVE-2011-2161
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/ape.c
ape_read_header
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { AVIOContext *pb = s->pb; APEContext *ape = s->priv_data; AVStream *st; uint32_t tag; int i; int total_blocks; int64_t pts; ape->junklength = 0; tag = avio_rl32(pb); if (tag != MKTAG('M', 'A', 'C', ' ')) { ...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { AVIOContext *pb = s->pb; APEContext *ape = s->priv_data; AVStream *st; uint32_t tag; int i; int total_blocks; int64_t pts; ape->junklength = 0; tag = avio_rl32(pb); if (tag != MKTAG('M', 'A', 'C', ' ')) { ...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { ByteIOContext *pb = s->pb; APEContext *ape = s->priv_data; AVStream *st; uint32_t tag; int i; int total_blocks; int64_t pts; ape->junklength = 0; tag = get_le32(pb); if (tag != MKTAG('M', 'A', 'C', ' ')) {...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { ByteIOContext *pb = s->pb; APEContext *ape = s->priv_data; AVStream *st; uint32_t tag; int i; int total_blocks; int64_t pts; ape->junklength = 0; tag = get_le32(pb); if (tag != MKTAG('M', 'A', 'C', ' ')) {...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { AVIOContext *pb = s->pb; APEContext *ape = s->priv_data; tag = avio_rl32(pb); ape->fileversion = avio_rl16(pb); if (ape->fileversion >= 3980) { ape->padding1 = avio_rl16(pb); ape->descriptorlength = avio_rl32(...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { AVIOContext *pb = s->pb; APEContext *ape = s->priv_data; tag = avio_rl32(pb); ape->fileversion = avio_rl16(pb); if (ape->fileversion >= 3980) { ape->padding1 = avio_rl16(pb); ape->descriptorlength = avio_rl32(...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { ByteIOContext *pb = s->pb; APEContext *ape = s->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tag = get_le32(pb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ape->fileversion = get_le16(pb); /* PLACEHOLDE...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { ByteIOContext *pb = s->pb; APEContext *ape = s->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tag = get_le32(pb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ape->fileversion = get_le16(pb); /* PLACEHOLDE...
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) { AVIOContext *pb = s->pb; APEContext *ape = s->priv_data; tag = avio_rl32(pb); ape->fileversion = avio_rl16(pb); if (ape->fileversion >= 3980) { ape->padding1 = avio_rl16(pb); ape->descriptorlength = av...
CVE-2011-3362
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
decode_residual_block
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, esc_code, level, mask; unsigned int level_code, run; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, esc_code, level, mask; unsigned int level_code, run; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; }
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, esc_code, level, mask; unsigned int level_code, run; DCTELEM level_buf[65]; }
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, esc_code, level, mask; unsigned int level_code, run; DCTELEM level_buf[65]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { - int i, level_code, esc_code, level, run, mask; + int i, esc_code, level, mask; + unsigned int level_code, run; DCTELEM level_buf[65]; }
CVE-2011-3627
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/bytecode.c
cli_bytecode_runhook
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { const unsigned *hooks = engine->hooks[id - _BC_START_HOOKS]; unsigned i, hooks_cnt = engine->hooks_cnt[id - _BC_START_HOOKS]; int ret; unsigned executed = 0, ...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { const unsigned *hooks = engine->hooks[id - _BC_START_HOOKS]; unsigned i, hooks_cnt = engine->hooks_cnt[id - _BC_START_HOOKS]; int ret; unsigned executed = 0, ...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { const unsigned *hooks = engine->hooks[id - _BC_START_HOOKS]; unsigned i, hooks_cnt = engine->hooks_cnt[id - _BC_START_HOOKS]; int ret; unsigned executed = 0, ...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { const unsigned *hooks = engine->hooks[id - _BC_START_HOOKS]; unsigned i, hooks_cnt = engine->hooks_cnt[id - _BC_START_HOOKS]; int ret; unsigned executed = 0, ...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { cli_bytecode_context_setfile(ctx, map); for (i=0; i < hooks_cnt; i++) { const struct cli_bc *bc = &engine->bcs.all_bcs[hooks[i]]; cli_bytecode_context...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { cli_bytecode_context_setfile(ctx, map); for (i=0; i < hooks_cnt; i++) { const struct cli_bc *bc = &engine->bcs.all_bcs[hooks[i]]; cli_bytecode_context...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cli_bytecode_context_setfile(ctx, map); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i=0; i < hooks_cnt; i...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cli_bytecode_context_setfile(ctx, map); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i=0; i < hooks_cnt; i...
int cli_bytecode_runhook(cli_ctx *cctx, const struct cl_engine *engine, struct cli_bc_ctx *ctx, unsigned id, fmap_t *map, const char **virname) { cli_bytecode_context_setfile(ctx, map); for (i=0; i < hooks_cnt; i++) { const struct cli_bc *bc = &engine->bcs.all_bcs[hooks[i]]; cli_bytecode_co...
CVE-2011-3627
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/bytecode_api.c
cli_bcapi_extract_new
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_ctx *cctx; int res = -1; cli_event_count(EV, BCEV_EXTRACTED); cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_ctx *cctx; int res = -1; cli_event_count(EV, BCEV_EXTRACTED); cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_ctx *cctx; int res = -1; cli_event_count(EV, BCEV_EXTRACTED); cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_ctx *cctx; int res = -1; cli_event_count(EV, BCEV_EXTRACTED); cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written)) { return -1; } lseek(ctx->outfd, 0, SEEK_SET); cctx = (...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written)) { return -1; } lseek(ctx->outfd, 0, SEEK_SET); cctx = (...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written)) { return -1; ...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written)) { return -1; ...
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx, int32_t id) { cli_dbgmsg("previous tempfile had %u bytes\n", ctx->written); if (!ctx->written) { return 0; } if (ctx->ctx && cli_updatelimits(ctx->ctx, ctx->written)) { return -1; } lseek(ctx->outfd, 0, SEEK_SET); ...
CVE-2011-3929
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/dv.c
dv_extract_audio_info
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { const uint8_t* as_pack; int freq, stype, smpls, quant, i, ach; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { c->ach = 0; return 0; } smpls = as_pack[1] & 0x3f; freq = (as_pac...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { const uint8_t* as_pack; int freq, stype, smpls, quant, i, ach; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { c->ach = 0; return 0; } smpls = as_pack[1] & 0x3f; freq = (as_pac...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { const uint8_t* as_pack; int freq, stype, smpls, quant, i, ach; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { c->ach = 0; return 0; } smpls = as_pack[1] & 0x3f; freq = (as_pac...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { const uint8_t* as_pack; int freq, stype, smpls, quant, i, ach; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { c->ach = 0; return 0; } smpls = as_pack[1] & 0x3f; freq = (as_pac...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { return 0; } stype = (as_pack[3] & 0x1f); quant = as_pack[4] & 0x07; ach = ((int[4]) { 1, 0, 2, 4 })[stype]; }
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { return 0; } stype = (as_pack[3] & 0x1f); quant = as_pack[4] & 0x07; if (stype > 3) { av_log(c->fctx, AV_LOG_ERROR, "stype %d is inva...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return 0; } /* PLACEHOLDER: DO NOT DELETE THIS C...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return 0; } /* PLACEHOLDER: DO NOT DELETE THIS C...
static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) { as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack || !c->sys) { return 0; } stype = (as_pack[3] & 0x1f); quant = as_pack[4] & 0x07; + if (stype > 3) { + av_log(c->fctx, AV_LOG_ERROR, "stype %...
CVE-2011-3936
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/dv.c
dv_extract_audio
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { int size, chan, i, j, d, of, smpls, freq, quant, half_ch; uint16_t lc, rc; const uint8_t* as_pack; uint8_t *pcm, ipcm; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack) { return 0; } ...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { int size, chan, i, j, d, of, smpls, freq, quant, half_ch; uint16_t lc, rc; const uint8_t* as_pack; uint8_t *pcm, ipcm; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack) { return 0; } ...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { int size, chan, i, j, d, of, smpls, freq, quant, half_ch; uint16_t lc, rc; const uint8_t* as_pack; uint8_t *pcm, ipcm; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack) { return 0; } ...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { int size, chan, i, j, d, of, smpls, freq, quant, half_ch; uint16_t lc, rc; const uint8_t* as_pack; uint8_t *pcm, ipcm; as_pack = dv_extract_pack(frame, dv_audio_source); if (!as_pack) { return 0; } ...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { as_pack = dv_extract_pack(frame, dv_audio_source); ipcm = (sys->height == 720 && !(frame[1] & 0x0C)) ? 2 : 0; pcm = ppcm[ipcm++]; for (chan = 0; chan < sys->n_difchan; chan++) { for (i = 0; i < sys->difseg_size...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { as_pack = dv_extract_pack(frame, dv_audio_source); ipcm = (sys->height == 720 && !(frame[1] & 0x0C)) ? 2 : 0; for (chan = 0; chan < sys->n_difchan; chan++) { pcm = ppcm[ipcm++]; if (!pcm) { brea...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ as_pack = dv_extract_pack(frame, dv_audio_source); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ipcm = (sys->height == 720 && !(frame[1] & 0x0C)) ? 2 : 0; pcm = ppcm[i...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ as_pack = dv_extract_pack(frame, dv_audio_source); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ipcm = (sys->height == 720 && !(frame[1] & 0x0C)) ? 2 : 0; for (chan = ...
static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4], const DVprofile *sys) { as_pack = dv_extract_pack(frame, dv_audio_source); ipcm = (sys->height == 720 && !(frame[1] & 0x0C)) ? 2 : 0; - pcm = ppcm[ipcm++]; for (chan = 0; chan < sys->n_difchan; chan++) { + pcm = ppcm[ipcm++]; + ...
CVE-2011-3937
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/h263dec.c
ff_h263_decode_frame
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; uint64_t time= rdtsc(); s->flags= avctx->flags; s->flags2= avc...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; uint64_t time= rdtsc(); s->flags= avctx->flags; s->flags2= avc...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; uint64_t time= rdtsc(); s->flags= avctx->flags; s->flags2= avc...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; uint64_t time= rdtsc(); s->flags= avctx->flags; s->flags2= avc...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { MpegEncContext *s = avctx->priv_data; if(s->flags&CODEC_FLAG_TRUNCATED) { if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4) { } else if(CONFIG_H263_DECODER && s->codec_id==CODEC_ID_H263) { ...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { MpegEncContext *s = avctx->priv_data; if(s->flags&CODEC_FLAG_TRUNCATED) { if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4) { } else if(CONFIG_H263_DECODER && s->codec_id==CODEC_ID_H263) { ...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ MpegEncContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if(s->flags&CODEC_FLAG_TRUNCATED) { /* PLACEHOLDER: DO NOT DELETE THIS COMM...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ MpegEncContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if(s->flags&CODEC_FLAG_TRUNCATED) { /* PLACEHOLDER: DO NOT DELETE THIS COMM...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { MpegEncContext *s = avctx->priv_data; if(s->flags&CODEC_FLAG_TRUNCATED) { if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4) { } else if(CONFIG_H263_DECODER && s->codec_id==CODEC_ID_H263) { ...
CVE-2011-3940
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/nsvdec.c
nsv_read_header
static int nsv_read_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; int i, err; av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { ...
static int nsv_read_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; int i, err; av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { ...
static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap) { NSVContext *nsv = s->priv_data; int i, err; PRT(("%s()\n", __FUNCTION__)); PRT(("filename '%s'\n", s->filename)); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (i = 0; i < NSV_MAX_RESYNC_T...
static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap) { NSVContext *nsv = s->priv_data; int i, err; PRT(("%s()\n", __FUNCTION__)); PRT(("filename '%s'\n", s->filename)); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (i = 0; i < NSV_MAX_RESYNC_T...
static int nsv_read_header(AVFormatContext *s) { av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { if (nsv_resync(s) < 0) { return -1; } if (nsv->state == NSV_FOUND_NSVF) { err = nsv_pa...
static int nsv_read_header(AVFormatContext *s) { av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { if (nsv_resync(s) < 0) { return -1; } if (nsv->state == NSV_FOUND_NSVF) { err = nsv_pa...
static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ PRT(("%s()\n", __FUNCTION__)); PRT(("filename '%s'\n", s->filename)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { if (nsv_resy...
static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ PRT(("%s()\n", __FUNCTION__)); PRT(("filename '%s'\n", s->filename)); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { if (nsv_resy...
static int nsv_read_header(AVFormatContext *s) { av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); for (i = 0; i < NSV_MAX_RESYNC_TRIES; i++) { if (nsv_resync(s) < 0) { return -1; } if (nsv->state == NSV_FOUND_NSVF) { err...
CVE-2011-3945
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/kgv1dec.c
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; KgvContext * const c = avctx->priv_data; int offsets[7]; uint16_t *out, *prev; int outcnt = 0, maxcnt; int w, h, i; ...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; KgvContext * const c = avctx->priv_data; int offsets[8]; uint16_t *out, *prev; int outcnt = 0, maxcnt; int w, h, i; ...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; KgvContext * const c = avctx->priv_data; int offsets[7]; uint16_t *out, *prev; int outcnt = 0, maxcnt; int w, h, i; ...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; KgvContext * const c = avctx->priv_data; int offsets[8]; uint16_t *out, *prev; int outcnt = 0, maxcnt; int w, h, i; ...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { KgvContext * const c = avctx->priv_data; int offsets[7]; uint16_t *out, *prev; c->prev = prev; for (i = 0; i < 7; i++) offsets[i] = -1; while (outcnt < maxcnt && buf_end - 2 > buf) { int...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { KgvContext * const c = avctx->priv_data; int offsets[8]; uint16_t *out, *prev; c->prev = prev; for (i = 0; i < 8; i++) offsets[i] = -1; while (outcnt < maxcnt && buf_end - 2 > buf) { int...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ KgvContext * const c = avctx->priv_data; int offsets[7]; uint16_t *out, *prev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ c->prev = prev; for (i = 0;...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ KgvContext * const c = avctx->priv_data; int offsets[8]; uint16_t *out, *prev; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ c->prev = prev; for (i = 0;...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { KgvContext * const c = avctx->priv_data; - int offsets[7]; + int offsets[8]; uint16_t *out, *prev; c->prev = prev; - for (i = 0; i < 7; i++) + for (i = 0; i < 8; i++) offsets[i] = -1; ...
CVE-2011-3947
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mjpegbdec.c
mjpegb_decode_frame
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; uint32_t ...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; uint32_t ...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; buf_ptr = buf; buf_end = buf + buf_size; read_header: s->restart_interval = 0; s->mjpb_...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; buf_ptr = buf; buf_end = buf + buf_size; read_header: s->restart_interval = 0; s->mjpb_...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ buf_ptr = buf; buf_end = buf + buf_size; read_header: s->restart_interval = 0; /* PLACEHOL...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ buf_ptr = buf; buf_end = buf + buf_size; read_header: s->restart_interval = 0; /* PLACEHOL...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; buf_ptr = buf; buf_end = buf + buf_size; read_header: s->restart_interval = 0; ...
CVE-2011-3951
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/dpcm.c
dpcm_decode_frame
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; int predictor[2]; int ch = 0; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; int predictor[2]; int ch = 0; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { DPCMContext *s = avctx->priv_data; int in, out = 0; int predictor[2]; int channel_number = 0; short *output_samples = data; int shift[2]; unsigned char byte; short diff; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { DPCMContext *s = avctx->priv_data; int in, out = 0; int predictor[2]; int channel_number = 0; int stereo = s->channels - 1; short *output_samples = data; int shift[2]; unsi...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int stereo = s->channels - 1; int16_t *output_samples; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int stereo = s->channels - 1; int16_t *output_samples; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { DPCMContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int channel_number = 0; short *output_samples = data; int shift[2]; unsigned char byte; short d...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { DPCMContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int channel_number = 0; int stereo = s->channels - 1; short *output_samples = data; int shift[2]; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int stereo = s->channels - 1; int16_t *output_sa...
CVE-2011-3973
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
cavs_decode_frame
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; uint32_t stc = -1; if (buf_size == 0) { return 0; } buf_ptr = buf; buf_end = buf + buf_size; for(;;) { buf_ptr ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; uint32_t stc = -1; if (buf_size == 0) { return 0; } buf_ptr = buf; buf_end = buf + buf_size; for(;;) { buf_ptr ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint32_t stc = -1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (buf_size == 0) { ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint32_t stc = -1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (buf_size == 0) { ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; uint32_t stc = -1; if (buf_size == 0) { return 0; } buf_ptr = buf; buf_end = buf + buf_size; for(;;) { ...
CVE-2011-3973
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
check_for_slice
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip_bits_long(gb,24+align); h->stc = get_bits...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip_bits_long(gb,24+align); h->stc = get_bits...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip_bits_long(gb,24+align); h->stc =...
CVE-2011-3973
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
decode_mb_i
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[block]; n...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[bloc...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[block]; n...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[bloc...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; - int block, pred_mode_uv; + unsigned pred_mode_uv; + int block; uint8_t top[18]; }
CVE-2011-3973
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
decode_residual_block
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) { level = (level^mask) - mask; ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) { level = (level^mask) - mask; ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) { level = (level^mask) - mask; - ...
CVE-2011-3974
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
cavs_decode_frame
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AV...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; uint32_t stc = -1; if (buf_size == 0) { return 0; } buf_ptr = buf; buf_end = buf + buf_size; for(;;) { buf_ptr ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; uint32_t stc = -1; if (buf_size == 0) { return 0; } buf_ptr = buf; buf_end = buf + buf_size; for(;;) { buf_ptr ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint32_t stc = -1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (buf_size == 0) { ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint32_t stc = -1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (buf_size == 0) { ...
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; uint32_t stc = -1; if (buf_size == 0) { return 0; } buf_ptr = buf; buf_end = buf + buf_size; for(;;) { ...
CVE-2011-3974
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
check_for_slice
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) { return 0; } align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip_bits_long(gb,24+align); h->stc = get_bits...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip_bits_long(gb,24+align); h->stc = get_bits...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip...
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) { align = 8; } if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { skip_bits_long(gb,24+align); h->stc =...
CVE-2011-3974
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
decode_mb_i
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[block]; n...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[bloc...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[block]; n...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0; block<4; block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[bloc...
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; unsigned pred_mode_uv; int block; uint8_t top[18]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; - int block, pred_mode_uv; + unsigned pred_mode_uv; + int block; uint8_t top[18]; }
CVE-2011-3974
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
decode_residual_block
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { int i, level_code, esc_code, level, run, mask; DCTELEM level_buf[65]; uint8_t run_buf[65]; DCTELEM *block = h->block; for(i=0; i<65; i++) { ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) { level = (level^mask) - mask; ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) { level = (level^mask) - mask; ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) ...
static int decode_residual_block(AVSContext *h, GetBitContext *gb, const struct dec_2dvlc *r, int esc_golomb_order, int qp, uint8_t *dst, int stride) { for(i=0; i<65; i++) { level_code = get_ue_code(gb,r->golomb_order); if(level_code >= ESCAPE_CODE) { level = (level^mask) - mask; - ...
CVE-2011-4031
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/rtpdec_asf.c
asfrtp_parse_packet
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; int res, mflags, len_off; RTSPState *rt = s->priv_data; if (!rt->asf_ctx) { return -1; } if (len...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; int res, mflags, len_off; RTSPState *rt = s->priv_data; if (!rt->asf_ctx) { return -1; } if (len...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; int res, mflags, len_off; RTSPState *rt = s->priv_data; if (!rt->asf_ctx) { return -1; } if (len...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; int res, mflags, len_off; RTSPState *rt = s->priv_data; if (!rt->asf_ctx) { return -1; } if (len...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; if (len > 0) { int off, out_len = 0; if (len < 4) { return -1; } ffio_init_c...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; if (len > 0) { int off, out_len = 0; if (len < 4) { return -1; } ffio_init_c...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (len > 0) { int off, out_len = 0; if (len < 4) { ...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (len > 0) { int off, out_len = 0; if (len < 4) { ...
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; if (len > 0) { int off, out_len = 0; if (len < 4) { return -1; } ffi...
CVE-2011-4364
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/vmdav.c
lz_unpack
static void lz_unpack(const unsigned char *src, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned char *d; unsigned char *d_end; unsigned char queue[QUEUE_SIZE]; unsigned int qpos; unsigned int dataleft; unsigned int chainofs; unsigned int chainlen; unsigned int s...
static void lz_unpack(const unsigned char *src, int src_len, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned int s_len; unsigned char *d; unsigned char *d_end; unsigned char queue[QUEUE_SIZE]; unsigned int qpos; unsigned int dataleft; unsigned int chainofs; unsi...
static void lz_unpack(const unsigned char *src, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned char *d; unsigned char *d_end; unsigned char queue[QUEUE_SIZE]; unsigned int qpos; unsigned int dataleft; unsigned int chainofs; unsigned int chainlen; unsigned int s...
static void lz_unpack(const unsigned char *src, int src_len, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned int s_len; unsigned char *d; unsigned char *d_end; unsigned char queue[QUEUE_SIZE]; unsigned int qpos; unsigned int dataleft; unsigned int chainofs; unsi...
static void lz_unpack(const unsigned char *src, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned char *d; s = src; d = dest; d_end = d + dest_len; dataleft = AV_RL32(s); s += 4; memset(queue, 0x20, QUEUE_SIZE); if (AV_RL32(s) == 0x56781234) { s += 4; ...
static void lz_unpack(const unsigned char *src, int src_len, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned int s_len; unsigned char *d; s = src; s_len = src_len; d = dest; d_end = d + dest_len; dataleft = AV_RL32(s); s += 4; s_len -= 4; memset(queue, 0x20,...
static void lz_unpack(const unsigned char *src, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned char *d; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s = src; d = dest; d_end = d + dest_len; dataleft = AV_RL32(s); s += 4; memset(queue, 0x20, QUEUE_SIZE); if...
static void lz_unpack(const unsigned char *src, int src_len, unsigned char *dest, int dest_len) { const unsigned char *s; unsigned int s_len; unsigned char *d; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s = src; s_len = src_len; d = dest; d_end = d + dest_len; dataleft = AV_RL32(s...
-static void lz_unpack(const unsigned char *src, unsigned char *dest, int dest_len) { +static void lz_unpack(const unsigned char *src, int src_len, unsigned char *dest, int dest_len) { const unsigned char *s; + unsigned int s_len; unsigned char *d; s = src; + s_len = src_len; d = dest; d_...
CVE-2011-4364
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/vmdav.c
rle_unpack
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_len, int dest_len) { const unsigned char *ps; unsigned char *pd; int i, l; unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_len & 1) { *pd++ = *ps++; } src_len >>= 1; i = 0...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_count, int src_size, int dest_len) { const unsigned char *ps; unsigned char *pd; int i, l; unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_count & 1) { if (src_size < 1) { ...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_len, int dest_len) { const unsigned char *ps; unsigned char *pd; int i, l; unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_len & 1) { *pd++ = *ps++; } src_len >>= 1; i = 0...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_count, int src_size, int dest_len) { const unsigned char *ps; unsigned char *pd; int i, l; unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_count & 1) { if (src_size < 1) { ...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_len, int dest_len) { unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_len & 1) { *pd++ = *ps++; } src_len >>= 1; i = 0; do { l = *ps++; if (l & 0x80) { ...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_count, int src_size, int dest_len) { unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_count & 1) { if (src_size < 1) { return 0; } *pd++ = *ps++; src_size--; ...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_len, int dest_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_len & 1) { *pd++ = *ps++; } src_len >>= 1; i = 0; do { ...
static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_count, int src_size, int dest_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; if (src_count & 1) { if (src_size < 1) { return 0; ...
-static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_len, int dest_len) { +static int rle_unpack(const unsigned char *src, unsigned char *dest, int src_count, int src_size, int dest_len) { unsigned char *dest_end = dest + dest_len; ps = src; pd = dest; - if (src_len & 1) { + ...
CVE-2011-4364
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/vmdav.c
vmd_decode
static void vmd_decode(VmdVideoContext *s) { int i; unsigned int *palette32; unsigned char r, g, b; const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned char meth; unsigned char *dp; unsigned char *pp; unsigned char len; int ofs; int frame_x, frame_y; i...
static void vmd_decode(VmdVideoContext *s) { int i; unsigned int *palette32; unsigned char r, g, b; const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned int pb_size; unsigned char meth; unsigned char *dp; unsigned char *pp; unsigned char len; int ofs; i...
static void vmd_decode(VmdVideoContext *s) { int i; unsigned int *palette32; unsigned char r, g, b; const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned char meth; unsigned char *dp; unsigned char *pp; unsigned char len; int ofs; int frame_x, frame_y; i...
static void vmd_decode(VmdVideoContext *s) { int i; unsigned int *palette32; unsigned char r, g, b; const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned int pb_size; unsigned char meth; unsigned char *dp; unsigned char *pp; unsigned char len; int ofs; i...
static void vmd_decode(VmdVideoContext *s) { const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned char meth; frame_x = AV_RL16(&s->buf[6]); frame_y = AV_RL16(&s->buf[8]); frame_width = AV_RL16(&s->buf[10]) - frame_x + 1; frame_height = AV_RL16(&s->buf[12]) - frame_y + 1; ...
static void vmd_decode(VmdVideoContext *s) { const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned int pb_size; unsigned char meth; frame_x = AV_RL16(&s->buf[6]); frame_y = AV_RL16(&s->buf[8]); frame_width = AV_RL16(&s->buf[10]) - frame_x + 1; frame_height = AV_RL16(&s-...
static void vmd_decode(VmdVideoContext *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned char meth; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ frame_x = AV_RL16(&s->buf[6]); frame_y = AV_RL16(&s->buf[8]); frame_...
static void vmd_decode(VmdVideoContext *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const unsigned char *p = s->buf + 16; const unsigned char *pb; unsigned int pb_size; unsigned char meth; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ frame_x = AV_RL16(&s->buf[6]); frame_y = AV_RL...
static void vmd_decode(VmdVideoContext *s) { const unsigned char *p = s->buf + 16; const unsigned char *pb; + unsigned int pb_size; unsigned char meth; frame_x = AV_RL16(&s->buf[6]); frame_y = AV_RL16(&s->buf[8]); frame_width = AV_RL16(&s->buf[10]) - frame_x + 1; frame_height = AV...
CVE-2011-4579
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/svq1dec.c
svq1_decode_frame
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s=avctx->priv_data; uint8_t *current, *previous; int result, i, x, y, width, height; AVFrame *pict = data; svq1_pmv...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s=avctx->priv_data; uint8_t *current, *previous; int result, i, x, y, width, height; AVFrame *pict = data; svq1_pmv...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MpegEncContext *s=avctx->priv_data; uint8_t *current, *previous; int result, i, x, y, width, height; AVFrame *pict = data; init_get_bits(&s->gb,buf,buf_size*8); s->f_code = get_bit...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MpegEncContext *s=avctx->priv_data; uint8_t *current, *previous; int result, i, x, y, width, height; AVFrame *pict = data; init_get_bits(&s->gb,buf,buf_size*8); s->f_code = get_bit...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { MpegEncContext *s=avctx->priv_data; result = svq1_decode_frame_header (&s->gb, s); if (result != 0) { return result; } if(s->pict_type==AV_PICTURE_TYPE_B && s->last_picture_ptr==NULL) { ...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { MpegEncContext *s=avctx->priv_data; result = svq1_decode_frame_header (&s->gb, s); if (result != 0) { return result; } avcodec_set_dimensions(avctx, s->width, s->height); if(s->pict_type==A...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MpegEncContext *s=avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ result = svq1_decode_frame_header (&s->gb, s); if (result != 0) { /* PLACEHOLDER: DO NOT DELETE THIS C...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { MpegEncContext *s=avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ result = svq1_decode_frame_header (&s->gb, s); if (result != 0) { /* PLACEHOLDER: DO NOT DELETE THIS C...
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { MpegEncContext *s=avctx->priv_data; result = svq1_decode_frame_header (&s->gb, s); if (result != 0) { return result; } + avcodec_set_dimensions(avctx, s->width, s->height); if(s->pict...
CVE-2012-0847
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavfilter/avfilter.c
avfilter_filter_samples
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *dst = link->dstpad; int i; FF_DPRTF_START(NULL, filter_samples); ff_dlog_link(NULL, link, 1); if (!(filter_samples = dst->filter_samples)) { ...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *dst = link->dstpad; int i; FF_DPRTF_START(NULL, filter_samples); ff_dlog_link(NULL, link, 1); if (!(filter_samples = dst->filter_samples)) { ...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *dst = link->dstpad; int i; FF_DPRTF_START(NULL, filter_samples); ff_dlog_link(NULL, link, 1); if (!(filter_samples = dst->filter_samples)) { ...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *dst = link->dstpad; int i; FF_DPRTF_START(NULL, filter_samples); ff_dlog_link(NULL, link, 1); if (!(filter_samples = dst->filter_samples)) { ...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { if ((dst->min_perms & samplesref->perms) != dst->min_perms || dst->rej_perms & samplesref->perms) { link->cur_buf->audio->sample_rate = samplesref->audio->sample_rate; for (i = 0; samplesref->data[i]; i++) ...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { if ((dst->min_perms & samplesref->perms) != dst->min_perms || dst->rej_perms & samplesref->perms) { link->cur_buf->audio->sample_rate = samplesref->audio->sample_rate; for (i = 0; samplesref->data[i] && i < 8; i++) ...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((dst->min_perms & samplesref->perms) != dst->min_perms || dst->rej_perms & samplesref->perms) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ link->cur_buf->audio->samp...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((dst->min_perms & samplesref->perms) != dst->min_perms || dst->rej_perms & samplesref->perms) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ link->cur_buf->audio->samp...
void avfilter_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { if ((dst->min_perms & samplesref->perms) != dst->min_perms || dst->rej_perms & samplesref->perms) { link->cur_buf->audio->sample_rate = samplesref->audio->sample_rate; - for (i = 0; samplesref->data[i]; i++) + ...
CVE-2012-0848
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/ws-snd1.c
ws_snd_decode_frame
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { WSSndContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int in_size, out_size, ret; int sample = 128; uint8_t *samples; uint8_t *samples_end; ...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { WSSndContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int in_size, out_size, ret; int sample = 128; uint8_t *samples; uint8_t *samples_end; ...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int in_size, out_size; int sample = 128; int i; uint8_t *samples = data; if (!buf_size) { return 0; } if (buf_siz...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int in_size, out_size; int sample = 128; int i; uint8_t *samples = data; if (!buf_size) { return 0; } if (buf_siz...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; while (samples < samples_end && buf - avpkt->data < buf_size) { int code, smp, size; uint8_t count; code = *buf >> 6; count = *buf & 0x3F; ...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; while (samples < samples_end && buf - avpkt->data < buf_size) { int code, smp, size; uint8_t count; code = *buf >> 6; count = *buf & 0x3F; ...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (out_size > 0 && buf - avpkt->data < buf_size) { int code, smp, size; uint8_t count; code = (*buf...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (out_size > 0 && buf - avpkt->data < buf_size) { int code, smp, size; uint8_t count; code = (*buf...
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; while (samples < samples_end && buf - avpkt->data < buf_size) { int code, smp, size; uint8_t count; code = *buf >> 6; count = *buf & 0...
CVE-2012-0849
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/j2k_dwt.c
ff_j2k_dwt_init
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if (decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; s->type = type; for (i = 0; i < 2; i++) f...
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if ((unsigned)decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; s->type = type; for (i = 0; i < 2; i++)...
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if (decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; s->type = type; for (i = 0; i < 2; i++) f...
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if ((unsigned)decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; s->type = type; for (i = 0; i < 2; i++)...
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if (decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; }
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if ((unsigned)decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; }
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if (decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; if ((unsigned)decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_levels; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT ...
int ff_j2k_dwt_init(DWTContext *s, uint16_t border[2][2], int decomp_levels, int type) { int i, j, lev = decomp_levels, maxlen, b[2][2]; - if (decomp_levels >= FF_DWT_MAX_DECLVLS) { + if ((unsigned)decomp_levels >= FF_DWT_MAX_DECLVLS) { return AVERROR_VALIDDATA; } s->ndeclevels = decomp_l...
CVE-2012-0850
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/aacsbr.c
sbr_qmf_synthesis
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { int i, n; const float *sbr_qmf_window = div ? sbr_qmf_window_ds : sbr_qmf_window_us; float *v; for (i = 0; i < 32; i++) { if (*...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { int i, n; const float *sbr_qmf_window = div ? sbr_qmf_window_ds : sbr_qmf_window_us; float *v; for (i = 0; i < 32; i++) { if (*...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { int i, n; const float *sbr_qmf_window = div ? sbr_qmf_window_ds : sbr_qmf_window_us; float *v; for (i = 0; i < 32; i++) { if (*...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { int i, n; const float *sbr_qmf_window = div ? sbr_qmf_window_ds : sbr_qmf_window_us; float *v; for (i = 0; i < 32; i++) { if (*...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { for (i = 0; i < 32; i++) { if (*v_off == 0) { int saved_samples = (1280 - 128) >> div; memcpy(&v0[SBR_SYNTHESIS_BUF...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { for (i = 0; i < 32; i++) { if (*v_off < 128 >> div) { int saved_samples = (1280 - 128) >> div; memcpy(&v0[SBR_SYNTH...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < 32; i++) { if (*v_off == 0) { int saved_samples = (1280 - 128...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < 32; i++) { if (*v_off < 128 >> div) { int saved_samples = (12...
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct, float *out, float X[2][38][64], float mdct_buf[2][64], float *v0, int *v_off, const unsigned int div) { for (i = 0; i < 32; i++) { - if (*v_off == 0) { + if (*v_off < 128 >> div) { int saved_samples = (1280 - 128) >> div; ...
CVE-2012-0851
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/h264_ps.c
ff_h264_decode_seq_parameter_set
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; int profile_idc, level_idc, constraint_set_flags = 0; unsigned int sps_id; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); constraint_set_flags |= get_bits1(&s->gb) << 0; constraint_set_flags |= g...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; int profile_idc, level_idc, constraint_set_flags = 0; unsigned int sps_id; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); constraint_set_flags |= get_bits1(&s->gb) << 0; constraint_set_flags |= g...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; int profile_idc, level_idc; unsigned int sps_id; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1(&s->gb); get_bits(&s...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; int profile_idc, level_idc; unsigned int sps_id; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1(&s->gb); get_bits(&s...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; sps= av_mallocz(sizeof(SPS)); if(sps == NULL) { return -1; } if(sps->profile_idc >= 100) { sps->chroma_format_idc= get_ue_golomb_31(&s->gb); decode_scaling_matrices(h, sps, NULL, 1, sps->...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; sps= av_mallocz(sizeof(SPS)); if(sps == NULL) { return -1; } if(sps->profile_idc >= 100) { sps->chroma_format_idc= get_ue_golomb_31(&s->gb); if (sps->chroma_format_idc > 3U) { ...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sps= av_mallocz(sizeof(SPS)); if(sps == NULL) { return -1; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if(sps->profile_idc >= 100) { sps-...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sps= av_mallocz(sizeof(SPS)); if(sps == NULL) { return -1; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if(sps->profile_idc >= 100) { sps-...
int ff_h264_decode_seq_parameter_set(H264Context *h) { MpegEncContext * const s = &h->s; sps= av_mallocz(sizeof(SPS)); if(sps == NULL) { return -1; } if(sps->profile_idc >= 100) { sps->chroma_format_idc= get_ue_golomb_31(&s->gb); + if (sps->chroma_format_idc > 3U) { + ...
CVE-2012-0852
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/adpcm.c
adpcm_decode_frame
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; short *samples; const uint8_t *src; ...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; short *samples; const uint8_t *src; ...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; short *samples; const uint8_t *src; ...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; short *samples; const uint8_t *src; ...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; nb_samples = get_nb_samples(avctx, buf, buf_size, &coded_samples); if ((ret = avctx->get_buf...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; nb_samples = get_nb_samples(avctx, buf, buf_size, &coded_samples); if ((ret = avctx->get_buf...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ nb_samples = get_nb_samples(avctx, buf, buf_si...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ nb_samples = get_nb_samples(avctx, buf, buf_si...
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; nb_samples = get_nb_samples(avctx, buf, buf_size, &coded_samples); if ((ret = avctx->g...
CVE-2012-0853
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/atrac3.c
decodeTonalComponents
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int i,j,k,cnt; int components, coding_mode_selector, coding_mode, coded_values_per_component; int sfIndx, coded_values, max_coded_values, quant_step_index, coded_components; int band_flags[4], mantissa[8]; ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int i,j,k,cnt; int components, coding_mode_selector, coding_mode, coded_values_per_component; int sfIndx, coded_values, max_coded_values, quant_step_index, coded_components; int band_flags[4], mantissa[8]; ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int i,j,k,cnt; int components, coding_mode_selector, coding_mode, coded_values_per_component; int sfIndx, coded_values, max_coded_values, quant_step_index, coded_components; int band_flags[4], mantissa[8]; ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int i,j,k,cnt; int components, coding_mode_selector, coding_mode, coded_values_per_component; int sfIndx, coded_values, max_coded_values, quant_step_index, coded_components; int band_flags[4], mantissa[8]; ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int component_count = 0; for (i = 0; i < components; i++) { for (j = 0; j < (numBands + 1) * 4; j++) { for (k=0; k<coded_components; k++) { sfIndx = get_bits(gb,6); ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int component_count = 0; for (i = 0; i < components; i++) { for (j = 0; j < (numBands + 1) * 4; j++) { for (k=0; k<coded_components; k++) { sfIndx = get_bits(gb,6); ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int component_count = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < components; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int component_count = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < components; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent, int numBands) { int component_count = 0; for (i = 0; i < components; i++) { for (j = 0; j < (numBands + 1) * 4; j++) { for (k=0; k<coded_components; k++) { sfIndx = get_bits(gb,6); + ...
CVE-2012-0854
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/dpcm.c
dpcm_decode_frame
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; int predictor[2]; int ch = 0; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; int predictor[2]; int ch = 0; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; int predictor[2]; int ch = 0; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; int predictor[2]; int ch = 0; ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { output_samples = (int16_t *)s->frame.data[0]; switch(avctx->codec->id) { case CODEC_ID_SOL_DPCM: if (avctx->codec_tag != 3) { uint8_t *output_samples_u8 = data; while (buf <...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { output_samples = (int16_t *)s->frame.data[0]; switch(avctx->codec->id) { case CODEC_ID_SOL_DPCM: if (avctx->codec_tag != 3) { uint8_t *output_samples_u8 = output_samples; wh...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ output_samples = (int16_t *)s->frame.data[0]; switch(avctx->codec->id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case CODEC_ID_SOL_DPCM: ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ output_samples = (int16_t *)s->frame.data[0]; switch(avctx->codec->id) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case CODEC_ID_SOL_DPCM: ...
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { output_samples = (int16_t *)s->frame.data[0]; switch(avctx->codec->id) { case CODEC_ID_SOL_DPCM: if (avctx->codec_tag != 3) { - uint8_t *output_samples_u8 = data; + uint8...
CVE-2012-0855
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/j2kdec.c
get_sot
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); s->buf += 4; if (!bytestream_get_byte(&s->buf)) { J2kTile *tile = s->tile + s->curtileno; memcpy(tile->codsty, s->codsty, s->ncom...
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); if((unsigned)s->curtileno >= s->numXtiles * s->numYtiles) { s->curtileno=0; return AVERROR(EVAL); } s->buf += 4; if (!byt...
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); s->buf += 4; if (!bytestream_get_byte(&s->buf)) { J2kTile *tile = s->tile + s->curtileno; memcpy(tile->codsty, s->codsty, s->ncom...
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); if((unsigned)s->curtileno >= s->numXtiles * s->numYtiles) { s->curtileno=0; return AVERROR(EVAL); } s->buf += 4; if (!byt...
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); s->buf += 4; }
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); if((unsigned)s->curtileno >= s->numXtiles * s->numYtiles) { s->curtileno=0; return AVERROR(EVAL); } s->buf += 4; }
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); s->buf += 4; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); if((unsigned)s->curtileno >= s->numXtiles * s->numYtiles) { s->curtileno=0; return AVERROR(EVAL); } s->buf += 4; /* PLACE...
static uint8_t get_sot(J2kDecoderContext *s) { if (s->buf_end - s->buf < 4) { return AVERROR(EVAL); } s->curtileno = bytestream_get_be16(&s->buf); + if((unsigned)s->curtileno >= s->numXtiles * s->numYtiles) { + s->curtileno=0; + return AVERROR(EVAL); + } s->buf += 4; }
CVE-2012-0856
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mpegvideo.c
MPV_frame_start
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { int i; Picture *pic; s->mb_skipped = 0; assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_pictu...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { int i; Picture *pic; s->mb_skipped = 0; assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_pictu...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { int i; Picture *pic; s->mb_skipped = 0; assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_pictu...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { int i; Picture *pic; s->mb_skipped = 0; assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_pictu...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_picture_ptr && s->last_picture_ptr->f.data[0]) { ...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_picture_ptr && s->last_picture_ptr->f.data[0]) { ...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_picture...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_picture...
int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3); if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr != s->next_picture_ptr && s->last_picture_ptr->f.data[0]) { ...
CVE-2012-0858
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/shorten.c
allocate_buffers
static int allocate_buffers(ShortenContext *s) { int i, chan; int *coeffs; void *tmp_ptr; for (chan=0; chan<s->channels; chan++) { if(FFMAX(1, s->nmean) >= UT_MAX/sizeof(int32_t)) { av_log(s->avctx, AV_LOG_ERROR, "nmean too large\n"); return -1; } if(s->bl...
static int allocate_buffers(ShortenContext *s) { int i, chan; int *coeffs; void *tmp_ptr; for (chan=0; chan<s->channels; chan++) { if(FFMAX(1, s->nmean) >= UT_MAX/sizeof(int32_t)) { av_log(s->avctx, AV_LOG_ERROR, "nmean too large\n"); return -1; } if(s->bl...
static int allocate_buffers(ShortenContext *s) { int i, chan; void *tmp_ptr; for (chan=0; chan<s->channels; chan++) { if(FFMAX(1, s->nmean) >= UT_MAX/sizeof(int32_t)) { av_log(s->avctx, AV_LOG_ERROR, "nmean too large\n"); return -1; } if(s->blocksize + s->nwra...
static int allocate_buffers(ShortenContext *s) { int i, chan; void *tmp_ptr; for (chan=0; chan<s->channels; chan++) { if(FFMAX(1, s->nmean) >= UT_MAX/sizeof(int32_t)) { av_log(s->avctx, AV_LOG_ERROR, "nmean too large\n"); return -1; } if(s->blocksize + s->nwra...
static int allocate_buffers(ShortenContext *s) { for (chan=0; chan<s->channels; chan++) { s->offset[chan] = tmp_ptr; tmp_ptr = av_realloc(s->decoded[chan], sizeof(int32_t)*(s->blocksize + s->nwrap)); if (!tmp_ptr) { return AVERROR(ENOMEM); } s->decoded[chan] = tmp...
static int allocate_buffers(ShortenContext *s) { for (chan=0; chan<s->channels; chan++) { s->offset[chan] = tmp_ptr; tmp_ptr = av_realloc(s->decoded_base[chan], (s->blocksize + s->nwrap) * sizeof(s->decoded_base[0][0])); if (!tmp_ptr) { return AVERROR(ENOMEM); } s...
static int allocate_buffers(ShortenContext *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (chan=0; chan<s->channels; chan++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->offset[chan] = tmp_ptr; tmp_ptr = av_realloc(s->decoded[chan], sizeof(int32_t)*(s->blocksize + s->nwrap)); ...
static int allocate_buffers(ShortenContext *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (chan=0; chan<s->channels; chan++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->offset[chan] = tmp_ptr; tmp_ptr = av_realloc(s->decoded_base[chan], (s->blocksize + s->nwrap) * sizeof(s->d...
static int allocate_buffers(ShortenContext *s) { for (chan=0; chan<s->channels; chan++) { s->offset[chan] = tmp_ptr; - tmp_ptr = av_realloc(s->decoded[chan], sizeof(int32_t)*(s->blocksize + s->nwrap)); + tmp_ptr = av_realloc(s->decoded_base[chan], (s->blocksize + s->nwrap) * sizeof(s->decod...
CVE-2012-0859
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/vorbis.c
render_line
static void render_line(int x0, int y0, int x1, int y1, float *buf) { int dy = y1 - y0; int adx = x1 - x0; int ady = FFABS(dy); int sy = dy < 0 ? -1 : 1; buf[x0] = ff_vorbis_floor1_inverse_db_table[y0]; if (ady*2 <= adx) { render_line_unrolled(x0, y0, x1, sy, ady, adx, buf); } else {...
static void render_line(int x0, unsigned char y0, int x1, int y1, float *buf) { int dy = y1 - y0; int adx = x1 - x0; int ady = FFABS(dy); int sy = dy < 0 ? -1 : 1; buf[x0] = ff_vorbis_floor1_inverse_db_table[y0]; if (ady*2 <= adx) { render_line_unrolled(x0, y0, x1, sy, ady, adx, buf); ...
static void render_line(int x0, int y0, int x1, int y1, float *buf) { int dy = y1 - y0; int adx = x1 - x0; int ady = FFABS(dy); int sy = dy < 0 ? -1 : 1; buf[x0] = ff_vorbis_floor1_inverse_db_table[y0]; if (ady*2 <= adx) { render_line_unrolled(x0, y0, x1, sy, ady, adx, buf); } else {...
static void render_line(int x0, unsigned char y0, int x1, int y1, float *buf) { int dy = y1 - y0; int adx = x1 - x0; int ady = FFABS(dy); int sy = dy < 0 ? -1 : 1; buf[x0] = ff_vorbis_floor1_inverse_db_table[y0]; if (ady*2 <= adx) { render_line_unrolled(x0, y0, x1, sy, ady, adx, buf); ...
static void render_line(int x0, int y0, int x1, int y1, float *buf) { }
static void render_line(int x0, unsigned char y0, int x1, int y1, float *buf) { }
static void render_line(int x0, int y0, int x1, int y1, float *buf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void render_line(int x0, unsigned char y0, int x1, int y1, float *buf) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
-static void render_line(int x0, int y0, int x1, int y1, float *buf) { +static void render_line(int x0, unsigned char y0, int x1, int y1, float *buf) { }
CVE-2012-0864
glibc
https://github.com/bminor/glibc
stdio-common/vfprintf.c
vfprintf
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { wchar_t thousands_sep = L'\0'; const char *thousands_sep = NULL; const char *grouping; int done; const UCHAR_T *f; const UCHAR_T *lead_str_end; const UCHAR_T *end_of_spec; CHAR_T work_buffer[1000]; CHAR_T *workstart = NULL; ...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { wchar_t thousands_sep = L'\0'; const char *thousands_sep = NULL; const char *grouping; int done; const UCHAR_T *f; const UCHAR_T *lead_str_end; const UCHAR_T *end_of_spec; CHAR_T work_buffer[1000]; CHAR_T *workstart = NULL; ...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { wchar_t thousands_sep = L'\0'; const char *thousands_sep = NULL; const char *grouping; int done; const UCHAR_T *f; const UCHAR_T *lead_str_end; const UCHAR_T *end_of_spec; CHAR_T work_buffer[1000]; CHAR_T *workstart = NULL; ...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { wchar_t thousands_sep = L'\0'; const char *thousands_sep = NULL; const char *grouping; int done; const UCHAR_T *f; const UCHAR_T *lead_str_end; const UCHAR_T *end_of_spec; CHAR_T work_buffer[1000]; CHAR_T *workstart = NULL; ...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { CHAR_T *workstart = NULL; int readonly_format = 0; static const uint8_t jump_table[] = { 1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, 19, 19, 19, 0, 29, 0, 0, 12, 0, 0, 0, ...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { CHAR_T *workstart = NULL; int readonly_format = 0; void *args_malloced = NULL; static const uint8_t jump_table[] = { 1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, 19, 19...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ CHAR_T *workstart = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int readonly_format = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static const uint8_t jump_table[] = { 1,...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ CHAR_T *workstart = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int readonly_format = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static const uint8_t jump_table[] = { 1,...
int vfprintf (FILE *s, const CHAR_T *format, va_list ap) { CHAR_T *workstart = NULL; int readonly_format = 0; + void *args_malloced = NULL; static const uint8_t jump_table[] = { 1, 0, 0, 4, 0, 14, 0, 6, 0, 0, 7, 2, 0, 3, 9, 0, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 25, 0, ...
CVE-2012-2143
postgres
contrib/pgcrypto/crypt-des.c
px_crypt_des
char * px_crypt_des(const char *key, const char *setting) { int i; uint32 count, salt, l, r0, r1, keybuf[2]; char *p; uint8 *q; static char output[21]; if (!des_initialised) { des_init(); } q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { if ((*q++ = *key << 1...
char * px_crypt_des(const char *key, const char *setting) { int i; uint32 count, salt, l, r0, r1, keybuf[2]; char *p; uint8 *q; static char output[21]; if (!des_initialised) { des_init(); } q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { *q++ = *key << 1; ...
char * px_crypt_des(const char *key, const char *setting) { int i; uint32 count, salt, l, r0, r1, keybuf[2]; char *p; uint8 *q; static char output[21]; if (!des_initialised) { des_init(); } q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { if ((*q++ = *key << 1...
char * px_crypt_des(const char *key, const char *setting) { int i; uint32 count, salt, l, r0, r1, keybuf[2]; char *p; uint8 *q; static char output[21]; if (!des_initialised) { des_init(); } q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { *q++ = *key << 1; ...
char * px_crypt_des(const char *key, const char *setting) { q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { if ((*q++ = *key << 1)) { key++; } } if (*setting == _PASSWORD_EFMT1) { while (*key) { if (des_cipher((char *) keybuf, (char *) keybuf, 0L,...
char * px_crypt_des(const char *key, const char *setting) { q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { *q++ = *key << 1; if (*key != '\0') { key++; } } if (*setting == _PASSWORD_EFMT1) { while (*key) { if (des_cipher((char *) keybuf, ...
char * px_crypt_des(const char *key, const char *setting) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { if ((*q++ = *key << 1)) { key++; } } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (*setting == _PASSW...
char * px_crypt_des(const char *key, const char *setting) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { *q++ = *key << 1; if (*key != '\0') { key++; } } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if...
char * px_crypt_des(const char *key, const char *setting) { q = (uint8 *) keybuf; while (q - (uint8 *) keybuf - 8) { - if ((*q++ = *key << 1)) { + *q++ = *key << 1; + if (*key != '\0') { key++; } } if (*setting == _PASSWORD_EFMT1) { while (*key) {...
CVE-2012-2652
QEMU
https://github.com/qemu/qemu
block.c
bdrv_open
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret; char tmp_filename[PATH_MAX]; if (flags & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int is_protocol = 0; BlockDriver *bdrv_qcow2; QEMUOptionParameter *...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret; char tmp_filename[PATH_MAX]; if (flags & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int is_protocol = 0; BlockDriver *bdrv_qcow2; QEMUOptionParameter *...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret; char tmp_filename[PATH_MAX]; if (flags & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int is_protocol = 0; BlockDriver *bdrv_qcow2; QEMUOptionParameter *...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret; char tmp_filename[PATH_MAX]; if (flags & BDRV_O_SNAPSHOT) { BlockDriverState *bs1; int64_t total_size; int is_protocol = 0; BlockDriver *bdrv_qcow2; QEMUOptionParameter *...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { if (flags & BDRV_O_SNAPSHOT) { bdrv_delete(bs1); get_tmp_filename(tmp_filename, sizeof(tmp_filename)); if (is_protocol) { } else if (!realpath(filename, backing_filename)) { } ret...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { if (flags & BDRV_O_SNAPSHOT) { bdrv_delete(bs1); ret = get_tmp_filename(tmp_filename, sizeof(tmp_filename)); if (ret < 0) { return ret; } if (is_protocol) { } else if ...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (flags & BDRV_O_SNAPSHOT) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bdrv_delete(bs1); get_tmp_filename(tmp_filename, sizeof(tmp_filename)); ...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (flags & BDRV_O_SNAPSHOT) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bdrv_delete(bs1); ret = get_tmp_filename(tmp_filename, sizeof(tmp_filename)); ...
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { if (flags & BDRV_O_SNAPSHOT) { bdrv_delete(bs1); - get_tmp_filename(tmp_filename, sizeof(tmp_filename)); + ret = get_tmp_filename(tmp_filename, sizeof(tmp_filename)); + if (ret < 0) { + ...
CVE-2012-2652
QEMU
https://github.com/qemu/qemu
block/vvfat.c
enable_write_target
static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_malloc(1024); get_tmp_fi...
static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_malloc(1024); ret = get_...
static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_malloc(1024); get_tmp_fi...
static int enable_write_target(BDRVVVFATState *s) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_malloc(1024); ret = get_...
static int enable_write_target(BDRVVVFATState *s) { int size = sector2cluster(s, s->sector_count); s->qcow_filename = g_malloc(1024); get_tmp_filename(s->qcow_filename, 1024); bdrv_qcow = bdrv_find_format("qcow"); if (bdrv_create(bdrv_qcow, s->qcow_filename, options) < 0) { return -1; } ...
static int enable_write_target(BDRVVVFATState *s) { int size = sector2cluster(s, s->sector_count); s->qcow_filename = g_malloc(1024); ret = get_tmp_filename(s->qcow_filename, 1024); if (ret < 0) { g_free(s->qcow_filename); s->qcow_filename = NULL; return ret; } bdrv_qcow ...
static int enable_write_target(BDRVVVFATState *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int size = sector2cluster(s, s->sector_count); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->qcow_filename = g_malloc(1024); get_tmp_filename(s->qcow_filename, 1024); bdrv_qcow = bdrv_find_format...
static int enable_write_target(BDRVVVFATState *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int size = sector2cluster(s, s->sector_count); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->qcow_filename = g_malloc(1024); ret = get_tmp_filename(s->qcow_filename, 1024); if (ret < 0) { ...
static int enable_write_target(BDRVVVFATState *s) { int size = sector2cluster(s, s->sector_count); s->qcow_filename = g_malloc(1024); - get_tmp_filename(s->qcow_filename, 1024); + ret = get_tmp_filename(s->qcow_filename, 1024); + if (ret < 0) { + g_free(s->qcow_filename); + s->qcow_fil...
CVE-2012-2686
OpenSSL
https://github.com/openssl/openssl
crypto/evp/e_aes_cbc_hmac_sha1.c
aesni_cbc_hmac_sha1_cipher
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); unsigned int l; size_t plen = key->payload_length, iv = 0, sha_off = 0; size_t aes_off = 0, blocks; sha_off = SHA_CBLOCK-key->md.num; if (len%...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); unsigned int l; size_t plen = key->payload_length, iv = 0, sha_off = 0; size_t aes_off = 0, blocks; sha_off = SHA_CBLOCK-key->md.num; key->pay...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); unsigned int l; size_t plen = key->payload_length, iv = 0, sha_off = 0; size_t aes_off = 0, blocks; sha_off = SHA_CBLOCK-key->md.num; if (len%...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); unsigned int l; size_t plen = key->payload_length, iv = 0, sha_off = 0; size_t aes_off = 0, blocks; sha_off = SHA_CBLOCK-key->md.num; key->pay...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); size_t plen = key->payload_length, iv = 0, sha_off = 0; sha_off = SHA_CBLOCK-key->md.num; if (len%AES_BLOCK_SIZE) { return 0; } if (ct...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); size_t plen = key->payload_length, iv = 0, sha_off = 0; sha_off = SHA_CBLOCK-key->md.num; key->payload_length = NO_PAYLOAD_LENGTH; if (len%AES_BLO...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t plen = key->payload_length, iv = 0, sha_off = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t plen = key->payload_length, iv = 0, sha_off = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA1 *key = data(ctx); size_t plen = key->payload_length, iv = 0, sha_off = 0; sha_off = SHA_CBLOCK-key->md.num; + key->payload_length = NO_PAYLOAD_LENGTH; if (len%A...
CVE-2012-2686
OpenSSL
https://github.com/openssl/openssl
ssl/s3_cbc.c
tls1_cbc_remove_padding
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { unsigned padding_length, good, to_check, i; const char has_explicit_iv = s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION; const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size :...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { unsigned padding_length, good, to_check, i; const char has_explicit_iv = s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION; const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size :...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { unsigned padding_length, good, to_check, i; const char has_explicit_iv = s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION; const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size :...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { unsigned padding_length, good, to_check, i; const char has_explicit_iv = s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION; const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size :...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size : 0); if (overhead > rec->length) { return 0; } padding_length = rec->data[rec->length-1]; if ( (s->options&SSL_OP_TLS_...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size : 0); if (overhead > rec->length) { return 0; } if (has_explicit_iv) { rec->data += block_size; rec->input ...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size : 0); if (overhead > rec->length) { return 0; } padding_length = rec->dat...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size : 0); if (overhead > rec->length) { return 0; } if (has_explicit_iv) { ...
int tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) { const unsigned overhead = 1 + mac_size + (has_explicit_iv ? block_size : 0); if (overhead > rec->length) { return 0; + } + if (has_explicit_iv) { + rec->data += block_size; + rec...
CVE-2012-2775
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/alsdec.c
read_var_block_data
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; unsigned int k; unsigned int s[8]; unsigned int sx[8]; unsigned int sub_blocks, log2_sub_blocks, sb_length; uns...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; unsigned int k; unsigned int s[8]; unsigned int sx[8]; unsigned int sub_blocks, log2_sub_blocks, sb_length; uns...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; unsigned int k; unsigned int s[8]; unsigned int sx[8]; unsigned int sub_blocks, log2_sub_blocks, sb_length; uns...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; unsigned int k; unsigned int s[8]; unsigned int sx[8]; unsigned int sub_blocks, log2_sub_blocks, sb_length; uns...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; bd->js_blocks = get_bits1(gb); if (!sconf->bgmc && !sconf->sb_part) { log2_sub_blocks = 0; } else { if ...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; bd->js_blocks = get_bits1(gb); if (!sconf->bgmc && !sconf->sb_part) { log2_sub_blocks = 0; } else { if ...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bd->js_blocks = get_bits1(gb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bd->js_blocks = get_bits1(gb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; bd->js_blocks = get_bits1(gb); if (!sconf->bgmc && !sconf->sb_part) { log2_sub_blocks = 0; } else { ...
CVE-2012-2777
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cavsdec.c
decode_seq_header
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; h->profile = get_bits(&s->gb,8); h->level = get_bits(&s->gb,8); skip_bits1(&s->gb); s->width = get_bits(&s->gb,14); s->height = get_bits(&s->gb,14); skip_bits(&s->gb,2); skip_bits(&s->gb,3);...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; int width, height; h->profile = get_bits(&s->gb,8); h->level = get_bits(&s->gb,8); skip_bits1(&s->gb); width = get_bits(&s->gb,14); height = get_bits(&s->gb,14); if ((s->width || s->height) ...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; h->profile = get_bits(&s->gb,8); h->level = get_bits(&s->gb,8); skip_bits1(&s->gb); s->width = get_bits(&s->gb,14); s->height = get_bits(&s->gb,14); skip_bits(&s->gb,2); skip_bits(&s->gb,3);...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; int width, height; h->profile = get_bits(&s->gb,8); h->level = get_bits(&s->gb,8); skip_bits1(&s->gb); width = get_bits(&s->gb, 14); height = get_bits(&s->gb, 14); if ((s->width || s->height...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; h->profile = get_bits(&s->gb,8); skip_bits1(&s->gb); s->width = get_bits(&s->gb,14); s->height = get_bits(&s->gb,14); skip_bits(&s->gb,2); h->mb_width = (s->width + 15) >> 4; h->mb_height = ...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; int width, height; h->profile = get_bits(&s->gb,8); skip_bits1(&s->gb); width = get_bits(&s->gb,14); height = get_bits(&s->gb,14); if ((s->width || s->height) && (s->width != width || s->height ...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; h->profile = get_bits(&s->gb,8); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ skip_bits1(&s->gb); s->width = get_bits(&s->gb,14); s->height = get_bits(&s->gb,14); skip_bits(&s->gb,2); /* PL...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; int width, height; h->profile = get_bits(&s->gb,8); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ skip_bits1(&s->gb); width = get_bits(&s->gb, 14); height = get_bits(&s->gb, 14); if ((s->wid...
static int decode_seq_header(AVSContext *h) { MpegEncContext *s = &h->s; int frame_rate_code; + int width, height; h->profile = get_bits(&s->gb,8); skip_bits1(&s->gb); - s->width = get_bits(&s->gb,14); - s->height = get_bits(&s->gb,14); + width = get_bits(&s->gb,14); + height = get_b...
CVE-2012-2779
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/indeo5.c
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int result, p, b; init_get_bits(&ctx->gb, buf, buf_size * 8); ctx->frame_data = buf; ctx->frame_...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int result, p, b; init_get_bits(&ctx->gb, buf, buf_size * 8); ctx->frame_data = buf; ctx->frame_...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int result, p, b; init_get_bits(&ctx->gb, buf, buf_size * 8); ctx->frame_data = buf; ctx->frame_...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int result, p, b; init_get_bits(&ctx->gb, buf, buf_size * 8); ctx->frame_data = buf; ctx->frame_...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; result = decode_pic_hdr(ctx, avctx); if (result) { av_log(avctx, AV_LOG_ERROR, "Error while decoding picture header: %d\n", result); return -1; } if (...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; result = decode_pic_hdr(ctx, avctx); if (result || ctx->gop_invalid) { av_log(avctx, AV_LOG_ERROR, "Error while decoding picture header: %d\n", result); retur...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ result = decode_pic_hdr(ctx, avctx); if (result) { av_log(avctx, AV_LOG_ERROR, "Error while decoding picture header:...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ result = decode_pic_hdr(ctx, avctx); if (result) { av_log(avctx, AV_LOG_ERROR, "Error while decoding picture header:...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI5DecContext *ctx = avctx->priv_data; result = decode_pic_hdr(ctx, avctx); - if (result) { + if (result || ctx->gop_invalid) { av_log(avctx, AV_LOG_ERROR, "Error while decoding picture header: %d\n"...
CVE-2012-2779
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/indeo5.c
decode_pic_hdr
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (get_bits(&ctx->gb, 5) != 0x1F) { av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n"); return -1; } ctx->prev_frame_type = ctx->frame_type; ctx->frame_type = get_bits(&ctx->gb, 3); if (ctx->frame_type...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (get_bits(&ctx->gb, 5) != 0x1F) { av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n"); return -1; } ctx->prev_frame_type = ctx->frame_type; ctx->frame_type = get_bits(&ctx->gb, 3); if (ctx->frame_type...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (get_bits(&ctx->gb, 5) != 0x1F) { av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n"); return -1; } ctx->prev_frame_type = ctx->frame_type; ctx->frame_type = get_bits(&ctx->gb, 3); if (ctx->frame_type...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (get_bits(&ctx->gb, 5) != 0x1F) { av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n"); return -1; } ctx->prev_frame_type = ctx->frame_type; ctx->frame_type = get_bits(&ctx->gb, 3); if (ctx->frame_type...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (ctx->frame_type == FRAMETYPE_TRA) { if (decode_gop_header(ctx, avctx)) { return -1; } } if (ctx->frame_type != FRAMETYPE_NULL) { ctx->frame_flags = get_bits(&ctx->gb, 8); ctx->pic_hdr_size...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (ctx->frame_type == FRAMETYPE_TRA) { ctx->gop_invalid = 1; if (decode_gop_header(ctx, avctx)) { return -1; } ctx->gop_invalid = 0; } if (ctx->frame_type != FRAMETYPE_NULL) { ctx->fr...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->frame_type == FRAMETYPE_TRA) { if (decode_gop_header(ctx, avctx)) { return -1; } } if (ctx->frame_type != FRAMETYPE_NULL) { ctx->frame_flags ...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->frame_type == FRAMETYPE_TRA) { ctx->gop_invalid = 1; if (decode_gop_header(ctx, avctx)) { av_log(avctx, AV_LOG_ERROR, "Invalid GOP header, skipping frames.\n...
static int decode_pic_hdr(IVI5DecContext *ctx, AVCodecContext *avctx) { if (ctx->frame_type == FRAMETYPE_TRA) { + ctx->gop_invalid = 1; if (decode_gop_header(ctx, avctx)) { return -1; } + ctx->gop_invalid = 0; } if (ctx->frame_type != FRAMETYPE_NULL) { ...