label
int64
source_dataset
string
function_id
string
repo
string
commit_hash
string
commit_date
float64
file_path
string
function_name
string
language
string
raw_source
string
normalized_source
string
cve_id
string
cwe_ids
string
case_label
string
mentioned_in_desc
bool
1
vulnerable
fd52211dab1402d114a851c904b674d2
albertodemichelis/squirrel
23a0620658714b996d20da3d4dd1a0dcf9b0bd98
1,631,795,813
squirrel/sqclass.cpp
SQClass::NewSlot
cpp
bool SQClass::NewSlot(SQSharedState *ss,const SQObjectPtr &key,const SQObjectPtr &val,bool bstatic) { SQObjectPtr temp; bool belongs_to_static_table = sq_type(val) == OT_CLOSURE || sq_type(val) == OT_NATIVECLOSURE || bstatic; if(_locked && !belongs_to_static_table) return false; //the class already ...
bool SQClass::NewSlot(SQSharedState *ss,const SQObjectPtr &key,const SQObjectPtr &val,bool bstatic) { SQObjectPtr temp; bool belongs_to_static_table = sq_type(val) == OT_CLOSURE || sq_type(val) == OT_NATIVECLOSURE || bstatic; if(_locked && !belongs_to_static_table) return false; if(_members->Get(key,temp) && _isfield(t...
CVE-2021-41556
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1f714407f2b61a2241feb3156ed71282
vim/vim
1e56bda9048a9625bce6e660938c834c5c15b07d
1,659,097,707
src/typval.c
eval_string
c
int eval_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate) { char_u *p; char_u *end; int extra = interpolate ? 1 : 0; int off = interpolate ? 0 : 1; int len; // Find the end of the string, skipping backslashed characters. for (p = *arg + off; *p != NUL && *p != '"'; MB...
int eval_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate) { char_u *p; char_u *end; int extra = interpolate ? 1 : 0; int off = interpolate ? 0 : 1; int len; for (p = *arg + off; *p != NUL && *p != '"'; MB_PTR_ADV(p)) { if (*p == '\\' && p[1] != NUL) { ++p; if (*p == '<') extra += 5; } else if (inter...
CVE-2022-2580
CWE-122
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8aed69358032dde544e3dadc9339a9a1
v4l2loopback/v4l2loopback
e4cd225557486c420f6a34411f98c575effd43dd
1,659,524,957
v4l2loopback.c
v4l2_loopback_add
c
static int v4l2_loopback_add(struct v4l2_loopback_config *conf, int *ret_nr) { struct v4l2_loopback_device *dev; struct v4l2_ctrl_handler *hdl; struct v4l2loopback_private *vdev_priv = NULL; int err = -ENOMEM; int _max_width = DEFAULT_FROM_CONF( max_width, < V4L2LOOPBACK_SIZE_MIN_WIDTH, max_width); int _max_h...
static int v4l2_loopback_add(struct v4l2_loopback_config *conf, int *ret_nr) { struct v4l2_loopback_device *dev; struct v4l2_ctrl_handler *hdl; struct v4l2loopback_private *vdev_priv = NULL; int err = -ENOMEM; int _max_width = DEFAULT_FROM_CONF( max_width, < V4L2LOOPBACK_SIZE_MIN_WIDTH, max_width); int _max_height = DE...
CVE-2022-2652
CWE-134
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
92663be86539a5f66353dbd7c2e99f92
contiki-ng/contiki-ng
a4597001d50a04f4b9c78f323ba731e2f979802c
1,625,845,083
os/net/ipv6/uip-nd6.c
ns_input
c
static void ns_input(void) { uint8_t flags = 0; LOG_INFO("Received NS from "); LOG_INFO_6ADDR(&UIP_IP_BUF->srcipaddr); LOG_INFO_(" to "); LOG_INFO_6ADDR(&UIP_IP_BUF->destipaddr); LOG_INFO_(" with target address "); LOG_INFO_6ADDR((uip_ipaddr_t *) (&UIP_ND6_NS_BUF->tgtipaddr)); LOG_INFO_("\n"); UIP_ST...
static void ns_input(void) { uint8_t flags = 0; LOG_INFO("Received NS from "); LOG_INFO_6ADDR(&UIP_IP_BUF->srcipaddr); LOG_INFO_(" to "); LOG_INFO_6ADDR(&UIP_IP_BUF->destipaddr); LOG_INFO_(" with target address "); LOG_INFO_6ADDR((uip_ipaddr_t *) (&UIP_ND6_NS_BUF->tgtipaddr)); LOG_INFO_("\n"); UIP_STAT(++uip_stat.nd6.r...
CVE-2022-35926
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0927c7e723812269a7e5cc3f6cbd2b35
contiki-ng/contiki-ng
4fffab0e632c4d01910fa957d1fd9ef321eb87d2
1,622,810,180
os/net/routing/rpl-classic/rpl-icmp6.c
dio_input
c
static void dio_input(void) { unsigned char *buffer; uint8_t buffer_length; rpl_dio_t dio; uint8_t subopt_type; int i; int len; uip_ipaddr_t from; memset(&dio, 0, sizeof(dio)); /* Set default values in case the DIO configuration option is missing. */ dio.dag_intdoubl = RPL_DIO_INTERVAL_DOUBLINGS; ...
static void dio_input(void) { unsigned char *buffer; uint8_t buffer_length; rpl_dio_t dio; uint8_t subopt_type; int i; int len; uip_ipaddr_t from; memset(&dio, 0, sizeof(dio)); dio.dag_intdoubl = RPL_DIO_INTERVAL_DOUBLINGS; dio.dag_intmin = RPL_DIO_INTERVAL_MIN; dio.dag_redund = RPL_DIO_REDUNDANCY; dio.dag_min_hopranki...
CVE-2022-35927
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
4776203d2c4f19c4ad4996bafade38de
vim/vim
d1d8f6bacb489036d0fd479c9dd3c0102c988889
1,660,501,712
src/vim9cmds.c
compile_lock_unlock
c
static int compile_lock_unlock( lval_T *lvp, char_u *name_end, exarg_T *eap, int deep, void *coookie) { cctx_T *cctx = coookie; int cc = *name_end; char_u *p = lvp->ll_name; int ret = OK; size_t len; char_u *buf; isntype_T isn = ISN_EXEC; if (cctx->ctx_ski...
static int compile_lock_unlock( lval_T *lvp, char_u *name_end, exarg_T *eap, int deep, void *coookie) { cctx_T *cctx = coookie; int cc = *name_end; char_u *p = lvp->ll_name; int ret = OK; size_t len; char_u *buf; isntype_T isn = ISN_EXEC; if (cctx->ctx_skip == SKIP_YES) return OK; if (p[1] != ':') { char_u *end = find_...
CVE-2022-2819
CWE-122
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
aa03bb889280b28bd53136282bc720c9
luanti-org/luanti
da71e86633d0b27cd02d7aac9fdac625d141ca13
1,653,491,269
src/script/lua_api/l_settings.cpp
checkSettingSecurity
cpp
static inline int checkSettingSecurity(lua_State* L, const std::string &name) { if (ScriptApiSecurity::isSecure(L) && name.compare(0, 7, "secure.") == 0) throw LuaError("Attempt to set secure setting."); bool is_mainmenu = false; #ifndef SERVER is_mainmenu = ModApiBase::getGuiEngine(L) != nullptr; #endif if (!is...
static inline int checkSettingSecurity(lua_State* L, const std::string &name) { if (ScriptApiSecurity::isSecure(L) && name.compare(0, 7, "secure.") == 0) throw LuaError("Attempt to set secure setting."); bool is_mainmenu = false; #ifndef SERVER is_mainmenu = ModApiBase::getGuiEngine(L) != nullptr; #endif if (!is_mainme...
CVE-2022-35978
CWE-693
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d46c850000285b54b8fa417c62455a78
vim/vim
249e1b903a9c0460d618f6dcc59aeb8c03b24b20
1,660,504,982
src/testing.c
f_assert_fails
c
void f_assert_fails(typval_T *argvars, typval_T *rettv) { char_u *cmd; garray_T ga; int save_trylevel = trylevel; int called_emsg_before = called_emsg; char *wrong_arg_msg = NULL; if (check_for_string_or_number_arg(argvars, 0) == FAIL || check_for_opt_string_or_list_arg(argvars, 1) == FA...
void f_assert_fails(typval_T *argvars, typval_T *rettv) { char_u *cmd; garray_T ga; int save_trylevel = trylevel; int called_emsg_before = called_emsg; char *wrong_arg_msg = NULL; if (check_for_string_or_number_arg(argvars, 0) == FAIL || check_for_opt_string_or_list_arg(argvars, 1) == FAIL || (argvars[1].v_type != VAR_...
CVE-2022-2817
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
db47bcb5887d64be49e9e051088ed294
vim/vim
e98c88c44c308edaea5994b8ad4363e65030968c
1,660,650,713
src/edit.c
display_dollar
c
void display_dollar(colnr_T col) { colnr_T save_col; if (!redrawing()) return; cursor_off(); save_col = curwin->w_cursor.col; curwin->w_cursor.col = col; if (has_mbyte) { char_u *p; // If on the last byte of a multi-byte move to the first byte. p = ml_get_curline(); curwin->w_cursor....
void display_dollar(colnr_T col) { colnr_T save_col; if (!redrawing()) return; cursor_off(); save_col = curwin->w_cursor.col; curwin->w_cursor.col = col; if (has_mbyte) { char_u *p; p = ml_get_curline(); curwin->w_cursor.col -= (*mb_head_off)(p, p + col); } curs_columns(FALSE); if (curwin->w_wcol < curwin->w_width) { e...
CVE-2022-2845
CWE-1284
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0155dd7857aa585972e4b771efc1d0e5
vim/vim
1889f499a4f248cd84e0e0bf6d0d820016774494
1,660,667,684
src/vim9compile.c
compile_nested_function
c
static char_u * compile_nested_function(exarg_T *eap, cctx_T *cctx, garray_T *lines_to_free) { int is_global = *eap->arg == 'g' && eap->arg[1] == ':'; char_u *name_start = eap->arg; char_u *name_end = to_name_end(eap->arg, TRUE); int off; char_u *func_name; char_u *lambda_name; ufunc_T *uf...
static char_u * compile_nested_function(exarg_T *eap, cctx_T *cctx, garray_T *lines_to_free) { int is_global = *eap->arg == 'g' && eap->arg[1] == ':'; char_u *name_start = eap->arg; char_u *name_end = to_name_end(eap->arg, TRUE); int off; char_u *func_name; char_u *lambda_name; ufunc_T *ufunc; int r = FAIL; compiletype...
CVE-2022-2862
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bf1dd7468136c8756252773f4991e98f
radareorg/radare2
ced0223c7a1b3b5344af315715cd28fe7c0d9ebc
1,585,216,963
libr/core/p/core_java.c
r_cmd_java_call
c
static int r_cmd_java_call(void *user, const char *input) { RCore *core = (RCore *) user; int res = false; ut32 i = 0; if (strncmp (input, "java", 4)) { return false; } if (input[4] != ' ') { return r_cmd_java_handle_help (core, input); } for (; i < END_CMDS; i++) { //IFDBG r_cons_printf ("Checking cmd: %...
static int r_cmd_java_call(void *user, const char *input) { RCore *core = (RCore *) user; int res = false; ut32 i = 0; if (strncmp (input, "java", 4)) { return false; } if (input[4] != ' ') { return r_cmd_java_handle_help (core, input); } for (; i < END_CMDS; i++) { IFDBG r_cons_printf ("Checking cmd: %s %d\n", JAVA_CM...
CVE-2020-27793
CWE-193
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bbfce7591a413b0584113fe64b188dd7
radareorg/radare2
cb8b683758edddae2d2f62e8e63a738c39f92683
1,585,218,530
libr/core/core.c
r_core_fini
c
R_API void r_core_fini(RCore *c) { if (!c) { return; } r_core_task_break_all (&c->tasks); r_core_task_join (&c->tasks, NULL, -1); r_core_wait (c); /* TODO: it leaks as shit */ //update_sdb (c); // avoid double free r_list_free (c->ropchain); r_event_free (c->ev); free (c->cmdlog); free (c->lastsearch); R...
R_API void r_core_fini(RCore *c) { if (!c) { return; } r_core_task_break_all (&c->tasks); r_core_task_join (&c->tasks, NULL, -1); r_core_wait (c); r_list_free (c->ropchain); r_event_free (c->ev); free (c->cmdlog); free (c->lastsearch); R_FREE (c->cons->pager); free (c->cmdqueue); free (c->lastcmd); free (c->stkcmd); r_...
CVE-2020-27794
CWE-415
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
647fe1c5e5bedfe338650bd24c96d9a9
rpm-software-management/rpm
bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8
1,632,977,970
rpmio/rpmpgp.c
pgpPrtParams
c
int pgpPrtParams(const uint8_t * pkts, size_t pktlen, unsigned int pkttype, pgpDigParams * ret) { const uint8_t *p = pkts; const uint8_t *pend = pkts + pktlen; pgpDigParams digp = NULL; struct pgpPkt pkt; int rc = -1; /* assume failure */ while (p < pend) { if (decodePkt(p, (pend - p), &pkt...
int pgpPrtParams(const uint8_t * pkts, size_t pktlen, unsigned int pkttype, pgpDigParams * ret) { const uint8_t *p = pkts; const uint8_t *pend = pkts + pktlen; pgpDigParams digp = NULL; struct pgpPkt pkt; int rc = -1; while (p < pend) { if (decodePkt(p, (pend - p), &pkt)) break; if (digp == NULL) { if (pkttype && pkt.t...
CVE-2021-3521
CWE-347
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
2c3eb75b89e684f91fe7938163f34238
latchset/mod_auth_mellon
42a11261b9dad2e48d70bdff7c53dd57a12db6f5
1,625,597,844
auth_mellon_util.c
am_check_url
c
int am_check_url(request_rec *r, const char *url) { const char *i; for (i = url; *i; i++) { if (*i >= 0 && *i < ' ') { /* Deny all control-characters. */ AM_LOG_RERROR(APLOG_MARK, APLOG_ERR, HTTP_BAD_REQUEST, r, "Control character detected in URL."); ...
int am_check_url(request_rec *r, const char *url) { const char *i; for (i = url; *i; i++) { if (*i >= 0 && *i < ' ') { AM_LOG_RERROR(APLOG_MARK, APLOG_ERR, HTTP_BAD_REQUEST, r, "Control character detected in URL."); return HTTP_BAD_REQUEST; } if (*i == '\\') { AM_LOG_RERROR(APLOG_MARK, APLOG_ERR, HTTP_BAD_REQUEST, r, "...
CVE-2021-3639
CWE-601
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fb4cc448a97d0a7ed21e4d51745948c7
CrowCpp/Crow
0aa3ab94be66248ee33ad9f12a33521c65d8e376
1,661,110,683
include/crow/parser.h
on_message_begin
cpp
static int on_message_begin(http_parser* self_) { HTTPParser* self = static_cast<HTTPParser*>(self_); return 0; }
static int on_message_begin(http_parser* self_) { HTTPParser* self = static_cast<HTTPParser*>(self_); return 0; }
CVE-2022-38667
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3bdd192f6975d2125218b7c84e7f358b
CrowCpp/Crow
d17a88af696b9de62504adf2a4657d381733b9e2
1,661,075,037
include/crow/http_connection.h
do_write_static
cpp
void do_write_static() { is_writing = true; asio::write(adaptor_.socket(), buffers_); if (res.file_info.statResult == 0) { std::ifstream is(res.file_info.path.c_str(), std::ios::in | std::ios::binary); char buf[16384]; ...
void do_write_static() { is_writing = true; asio::write(adaptor_.socket(), buffers_); if (res.file_info.statResult == 0) { std::ifstream is(res.file_info.path.c_str(), std::ios::in | std::ios::binary); char buf[16384]; while (is.read(buf, sizeof(buf)).gcount() > 0) { std::vector<asio::const_buffer> buffers; buffers.pus...
CVE-2022-38668
CWE-908
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
2eaa10990ac8d6fb7fc2544c31f4f1f4
vim/vim
6669de1b235843968e88844ca6d3c8dec4b01a9e
1,661,103,227
src/spellfile.c
sug_filltree
c
static int sug_filltree(spellinfo_T *spin, slang_T *slang) { char_u *byts; idx_T *idxs; int depth; idx_T arridx[MAXWLEN]; int curi[MAXWLEN]; char_u tword[MAXWLEN]; char_u tsalword[MAXWLEN]; int c; idx_T n; unsigned words_done = 0; int wordcount[MAXWLEN]; // We use si...
static int sug_filltree(spellinfo_T *spin, slang_T *slang) { char_u *byts; idx_T *idxs; int depth; idx_T arridx[MAXWLEN]; int curi[MAXWLEN]; char_u tword[MAXWLEN]; char_u tsalword[MAXWLEN]; int c; idx_T n; unsigned words_done = 0; int wordcount[MAXWLEN]; spin->si_foldroot = wordtree_alloc(spin); if (spin->si_foldroot =...
CVE-2022-2923
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d54888916901776bfe8dcaa3cd31182d
AcademySoftwareFoundation/openexr
85fd638ae0d5fa132434f4cbf32590261c1dba97
1,602,027,539
OpenEXR/IlmImf/ImfB44Compressor.cpp
B44Compressor::B44Compressor
cpp
B44Compressor::B44Compressor (const Header &hdr, size_t maxScanLineSize, size_t numScanLines, bool optFlatFields) : Compressor (hdr), _maxScanLineSize (maxScanLineSize), _optFlatFields (optFlatFields), _format (XDR), _numScanLines (numScanLines), _tmpBuffer (0), _outBuffer...
B44Compressor::B44Compressor (const Header &hdr, size_t maxScanLineSize, size_t numScanLines, bool optFlatFields) : Compressor (hdr), _maxScanLineSize (maxScanLineSize), _optFlatFields (optFlatFields), _format (XDR), _numScanLines (numScanLines), _tmpBuffer (0), _outBuffer (0), _numChans (0), _channels (hdr.channels())...
CVE-2021-20298
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c05110bf33818c364e6f6c5b70a32b35
samba-team/samba
e1ab0c43629686d1d2c0b0b2bcdc90057a792049
1,632,802,843
source4/ldap_server/ldap_server.c
ldapsrv_load_limits
c
static int ldapsrv_load_limits(struct ldapsrv_connection *conn) { TALLOC_CTX *tmp_ctx; const char *attrs[] = { "configurationNamingContext", NULL }; const char *attrs2[] = { "lDAPAdminLimits", NULL }; struct ldb_message_element *el; struct ldb_result *res = NULL; struct ldb_dn *basedn; struct ldb_dn *conf_dn; s...
static int ldapsrv_load_limits(struct ldapsrv_connection *conn) { TALLOC_CTX *tmp_ctx; const char *attrs[] = { "configurationNamingContext", NULL }; const char *attrs2[] = { "lDAPAdminLimits", NULL }; struct ldb_message_element *el; struct ldb_result *res = NULL; struct ldb_dn *basedn; struct ldb_dn *conf_dn; struct ld...
CVE-2021-3670
CWE-400
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
513fac844122479672ea87bbf0f351d6
samba-team/samba
2b3af3b560c9617a233c131376c870fce146c002
1,637,202,428
source4/ldap_server/ldap_backend.c
ldapsrv_SearchRequest
c
static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call) { struct ldap_SearchRequest *req = &call->request->r.SearchRequest; struct ldap_Result *done; struct ldapsrv_reply *done_r; TALLOC_CTX *local_ctx; struct ldapsrv_context *callback_ctx = NULL; struct ldb_context *samdb = talloc_get_type(call->conn->l...
static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call) { struct ldap_SearchRequest *req = &call->request->r.SearchRequest; struct ldap_Result *done; struct ldapsrv_reply *done_r; TALLOC_CTX *local_ctx; struct ldapsrv_context *callback_ctx = NULL; struct ldb_context *samdb = talloc_get_type(call->conn->ldb, st...
CVE-2021-3670
CWE-400
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6f7467e7c4849ddffaffa0a5b65aabb3
GNOME/glib
3529bb4450a51995
1,581,091,823
glib/libcharset/localcharset.c
_g_locale_get_charset_aliases
c
const char * _g_locale_get_charset_aliases (void) { const char *cp; cp = charset_aliases; if (cp == NULL) { #if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) FILE *fp; const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to ov...
const char * _g_locale_get_charset_aliases (void) { const char *cp; cp = charset_aliases; if (cp == NULL) { #if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) FILE *fp; const char *dir; const char *base = "charset.alias"; char *file_name; dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0'...
CVE-2021-3800
CWE-200;CWE-552
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8644ae16129b932cf93218743fa61953
DPDK/dpdk
6442c329b9d2ded0f44b27d2016aaba8ba5844c5
1,644,823,957
lib/vhost/vhost_user.c
vhost_user_check_and_alloc_queue_pair
c
static int vhost_user_check_and_alloc_queue_pair(struct virtio_net *dev, struct vhu_msg_context *ctx) { uint32_t vring_idx; switch (ctx->msg.request.master) { case VHOST_USER_SET_VRING_KICK: case VHOST_USER_SET_VRING_CALL: case VHOST_USER_SET_VRING_ERR: vring_idx = ctx->msg.payload.u64 & VHOST_USER_VRING_IDX...
static int vhost_user_check_and_alloc_queue_pair(struct virtio_net *dev, struct vhu_msg_context *ctx) { uint32_t vring_idx; switch (ctx->msg.request.master) { case VHOST_USER_SET_VRING_KICK: case VHOST_USER_SET_VRING_CALL: case VHOST_USER_SET_VRING_ERR: vring_idx = ctx->msg.payload.u64 & VHOST_USER_VRING_IDX_MASK; brea...
CVE-2021-3839
CWE-125;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
89926e089992523745f708e1427ac573
openvswitch/ovs
803ed12e31b0377c37d7aa8c94b3b92f2081e349
1,633,450,724
lib/ipf.c
ipf_extract_frags_from_batch
c
static void ipf_extract_frags_from_batch(struct ipf *ipf, struct dp_packet_batch *pb, ovs_be16 dl_type, uint16_t zone, long long now, uint32_t hash_basis) { const size_t pb_cnt = dp_packet_batch_size(pb); int pb_idx; /* Index in a packet batch. */ st...
static void ipf_extract_frags_from_batch(struct ipf *ipf, struct dp_packet_batch *pb, ovs_be16 dl_type, uint16_t zone, long long now, uint32_t hash_basis) { const size_t pb_cnt = dp_packet_batch_size(pb); int pb_idx; struct dp_packet *pkt; DP_PACKET_BATCH_REFILL_FOR_EACH (pb_idx, pb_cnt, pkt, pb) { if (OVS_UNLIKELY((dl...
CVE-2021-3905
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e5b7fb6f3de3a931d215a86cfa5e9137
vim/vim
adce965162dd89bf29ee0e5baf53652e7515762c
1,661,175,345
src/tag.c
do_tag
c
int do_tag( char_u *tag, // tag (pattern) to jump to int type, int count, int forceit, // :ta with ! int verbose) // print "tag not found" message { taggy_T *tagstack = curwin->w_tagstack; int tagstackidx = curwin->w_tagstackidx; int tagstacklen = curwin->w_tagstacklen; int c...
int do_tag( char_u *tag, int type, int count, int forceit, int verbose) { taggy_T *tagstack = curwin->w_tagstack; int tagstackidx = curwin->w_tagstackidx; int tagstacklen = curwin->w_tagstacklen; int cur_match = 0; int cur_fnum = curbuf->b_fnum; int oldtagstackidx = tagstackidx; int prevtagstackidx = tagstackidx; int p...
CVE-2022-2946
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bd6a06bbb5aeb3fadbe75211e4f1a173
glibc
84d2d0fe20bdf94feed82b21b4d7d136db471f03
1,643,040,401
stdlib/canonicalize.c
realpath_stk
c
static char * realpath_stk (const char *name, char *resolved, struct scratch_buffer *rname_buf) { char *dest; char const *start; char const *end; int num_links = 0; if (name == NULL) { /* As per Single Unix Specification V2 we must return an error if either parameter is a nul...
static char * realpath_stk (const char *name, char *resolved, struct scratch_buffer *rname_buf) { char *dest; char const *start; char const *end; int num_links = 0; if (name == NULL) { __set_errno (EINVAL); return NULL; } if (name[0] == '\0') { __set_errno (ENOENT); return NULL; } struct scratch_buffer extra_buffer, li...
CVE-2021-3998
CWE-252;CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
927ffd7ca95dd4cf84ea3a9f2634f4c4
glibc
23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
1,642,788,176
sysdeps/posix/getcwd.c
__getcwd_generic
c
GETCWD_RETURN_TYPE __getcwd_generic (char *buf, size_t size) { /* Lengths of big file name components and entire file names, and a deep level of file name nesting. These numbers are not upper bounds; they are merely large values suitable for initial allocations, designed to be large enough for most re...
GETCWD_RETURN_TYPE __getcwd_generic (char *buf, size_t size) { enum { BIG_FILE_NAME_COMPONENT_LENGTH = 255, BIG_FILE_NAME_LENGTH = MIN (4095, PATH_MAX - 1), DEEP_NESTING = 100 }; #if HAVE_OPENAT_SUPPORT int fd = AT_FDCWD; bool fd_needs_closing = false; #else char dots[DEEP_NESTING * sizeof ".." + BIG_FILE_NAME_COMPONEN...
CVE-2021-3999
CWE-193
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0f490ec47b524e365fe2933f30c0ea47
qemu-project/qemu
9bd6565ccee68f72d5012e24646e12a1c662827e
1,640,097,944
hw/acpi/pcihp.c
pci_write
c
static void pci_write(void *opaque, hwaddr addr, uint64_t data, unsigned int size) { int slot; PCIBus *bus; BusChild *kid, *next; AcpiPciHpState *s = opaque; s->acpi_index = 0; switch (addr) { case PCI_AIDX_BASE: /* * fetch acpi-index for specified slo...
static void pci_write(void *opaque, hwaddr addr, uint64_t data, unsigned int size) { int slot; PCIBus *bus; BusChild *kid, *next; AcpiPciHpState *s = opaque; s->acpi_index = 0; switch (addr) { case PCI_AIDX_BASE: slot = ctz32(data); if (s->hotplug_select >= ACPI_PCIHP_MAX_HOTPLUG_BUS) { break; } bus = acpi_pcihp_find_h...
CVE-2021-4158
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5e80125facd4d8ecc9d14063a0dbd896
gnutls/gnutls
3db352734472d851318944db13be73da61300568
1,640,160,745
lib/nettle/mac.c
wrap_nettle_hash_fast
c
static int wrap_nettle_hash_fast(gnutls_digest_algorithm_t algo, const void *text, size_t text_size, void *digest) { struct nettle_hash_ctx ctx; int ret; ret = _ctx_init(algo, &ctx); if (ret < 0) return gnutls_assert_val(ret); ctx.update(&ctx, text_size, text); ctx.digest(&ctx, ctx.length, digest); ...
static int wrap_nettle_hash_fast(gnutls_digest_algorithm_t algo, const void *text, size_t text_size, void *digest) { struct nettle_hash_ctx ctx; int ret; ret = _ctx_init(algo, &ctx); if (ret < 0) return gnutls_assert_val(ret); ctx.update(&ctx, text_size, text); ctx.digest(&ctx, ctx.length, digest); return 0; }
CVE-2021-4209
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
40f894cc5088164845458c2df105c7cc
rpm-software-management/rpm
25a435e90844ea98fe5eb7bef22c1aecf3a9c033
1,644,838,173
lib/fsm.c
rpmPackageFilesInstall
c
int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files, rpmpsm psm, char ** failedFile) { FD_t payload = rpmtePayload(te); rpmfi fi = NULL; rpmfs fs = rpmteGetFileStates(te); rpmPlugins plugins = rpmtsPlugins(ts); int rc = 0; int fx = -1; int fc = rpmfilesFC(files); ...
int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files, rpmpsm psm, char ** failedFile) { FD_t payload = rpmtePayload(te); rpmfi fi = NULL; rpmfs fs = rpmteGetFileStates(te); rpmPlugins plugins = rpmtsPlugins(ts); int rc = 0; int fx = -1; int fc = rpmfilesFC(files); int nodigest = (rpmtsFlags(ts) & RPMTRANS_FLAG...
CVE-2021-35938
CWE-59
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
07e6ec40102de2404de310010cd1fc23
qemu-project/qemu
736b01642d85be832385
1,639,734,241
hw/nvme/ctrl.c
nvme_map_addr
c
static uint16_t nvme_map_addr(NvmeCtrl *n, NvmeSg *sg, hwaddr addr, size_t len) { bool cmb = false, pmr = false; if (!len) { return NVME_SUCCESS; } trace_pci_nvme_map_addr(addr, len); if (nvme_addr_is_cmb(n, addr)) { cmb = true; } else if (nvme_addr_is_pmr(n, addr)) { ...
static uint16_t nvme_map_addr(NvmeCtrl *n, NvmeSg *sg, hwaddr addr, size_t len) { bool cmb = false, pmr = false; if (!len) { return NVME_SUCCESS; } trace_pci_nvme_map_addr(addr, len); if (nvme_addr_is_cmb(n, addr)) { cmb = true; } else if (nvme_addr_is_pmr(n, addr)) { pmr = true; } if (cmb || pmr) { if (sg->flags & NVM...
CVE-2021-3929
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b2b609fe7bba76fcebb9c09efb709b54
binutils-gdb
45d92439aebd0386ef8af76e1796d08cfe457e1d
1,660,635,144
bfd/elf.c
rewrite_elf_program_header
c
static bool rewrite_elf_program_header (bfd *ibfd, bfd *obfd, bfd_vma maxpagesize) { Elf_Internal_Ehdr *iehdr; struct elf_segment_map *map; struct elf_segment_map *map_first; struct elf_segment_map **pointer_to_map; Elf_Internal_Phdr *segment; asection *section; unsigned int i; unsigned int num_segments...
static bool rewrite_elf_program_header (bfd *ibfd, bfd *obfd, bfd_vma maxpagesize) { Elf_Internal_Ehdr *iehdr; struct elf_segment_map *map; struct elf_segment_map *map_first; struct elf_segment_map **pointer_to_map; Elf_Internal_Phdr *segment; asection *section; unsigned int i; unsigned int num_segments; bool phdr_incl...
CVE-2022-38533
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
80664a411d95ce81542076fce48aacc2
ImageMagick/ImageMagick6
cd7f9fb7751b0d59d5a74b12d971155caad5a792
1,618,357,294
coders/tiff.c
ReadTIFFImage
c
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define MaxPixelChannels 32 #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantu...
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define MaxPixelChannels 32 #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQ...
CVE-2021-3574
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8f494e852614b36c123c4898262c5bb5
ImageMagick/ImageMagick
c6ad94fbb7b280f39c2fbbdc1c140e51b1b466e9
1,618,357,303
coders/tiff.c
ReadTIFFImage
c
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQuantumInfo(qua...
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQuantumInfo(quantum_info); \ ...
CVE-2021-3574
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ed8f4f34f2e37a9260666184f3131335
ArtifexSoftware/mupdf
22c47acbd52949421f8c7cb46ea1556827d0fcbf
1,642,530,790
source/tools/muraster.c
initialise_banding
c
static void initialise_banding(fz_context *ctx, render_details *render, int color) { size_t min_band_mem; int bpp, h, w, reps; render->colorspace = output_cs; render->format = output_format; #if GREY_FALLBACK != 0 if (color == 0) { if (render->colorspace == CS_RGB) { /* Fallback from PPM to PGM */ rend...
static void initialise_banding(fz_context *ctx, render_details *render, int color) { size_t min_band_mem; int bpp, h, w, reps; render->colorspace = output_cs; render->format = output_format; #if GREY_FALLBACK != 0 if (color == 0) { if (render->colorspace == CS_RGB) { render->colorspace = CS_GRAY; render->format = OUT_P...
CVE-2021-4216
CWE-369
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3ea259ba081c185a73a19a9b2c4d9e17
virglrenderer
7899e057327848300b18d8f03aa3789e00ed0221
1,608,862,467
src/vrend_renderer.c
vrend_renderer_resource_create
c
struct pipe_resource * vrend_renderer_resource_create(const struct vrend_renderer_resource_create_args *args, void *image_oes) { struct vrend_resource *gr; gr = vrend_resource_create(args); if (!gr) return NULL; if (args->target == PIPE_BUFFER) { if (args->bind =...
struct pipe_resource * vrend_renderer_resource_create(const struct vrend_renderer_resource_create_args *args, void *image_oes) { struct vrend_resource *gr; gr = vrend_resource_create(args); if (!gr) return NULL; if (args->target == PIPE_BUFFER) { if (args->bind == VIRGL_BIND_CUSTOM) { gr->storage_bits |= VREND_STORAGE_...
CVE-2022-0175
CWE-909
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
dfde16c9df625c1b2b839209d51e3f81
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
1,638,263,846
src/vrend_renderer.c
vrend_renderer_transfer_write_iov
c
static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx, struct vrend_resource *res, const struct iovec *iov, int num_iovs, const struct vrend_transfer_info *info) { v...
static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx, struct vrend_resource *res, const struct iovec *iov, int num_iovs, const struct vrend_transfer_info *info) { void *data; if ((is_only_bit(res->storage_bits, VREND_STORAGE_GUEST_MEMORY) || has_bit(res->storage_bits, VREND_STORAGE_HOST_SYSTEM_MEMORY)...
CVE-2022-0175
CWE-909
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
77f01e5308cc1f73d7d7197b91f8f60b
the-tcpdump-group/tcpdump
a152aebfd1114376ba266ed30416be596ef9d806
1,508,240,082
print-vrrp.c
vrrp_print
c
void vrrp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, register const u_char *bp2, int ttl) { int version, type, auth_type = VRRP_AUTH_NONE; /* keep compiler happy */ const char *type_s; ND_TCHECK(bp[0]); version = (bp[0] & 0xf0) >> 4; type = bp[0] & 0x0f; t...
void vrrp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, register const u_char *bp2, int ttl) { int version, type, auth_type = VRRP_AUTH_NONE; const char *type_s; ND_TCHECK(bp[0]); version = (bp[0] & 0xf0) >> 4; type = bp[0] & 0x0f; type_s = tok2str(type2str, "unknown type (%u)", type); N...
CVE-2019-15167
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
284d0b30e135bd3342460b93f1e2207b
ImageMagick/ImageMagick
e50f19fd73c792ebe912df8ab83aa51a243a3da7
1,642,623,972
coders/xpm.c
WritePICONImage
c
static MagickBooleanType WritePICONImage(const ImageInfo *image_info, Image *image,ExceptionInfo *exception) { #define ColormapExtent 155 #define GraymapExtent 95 #define PiconGeometry "48x48>" static unsigned char Colormap[]= { 0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x06, 0x00, 0x05, 0x00, 0xf4, 0x0...
static MagickBooleanType WritePICONImage(const ImageInfo *image_info, Image *image,ExceptionInfo *exception) { #define ColormapExtent 155 #define GraymapExtent 95 #define PiconGeometry "48x48>" static unsigned char Colormap[]= { 0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x06, 0x00, 0x05, 0x00, 0xf4, 0x05, 0x00, 0x00, 0x00, 0...
CVE-2022-0284
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
872e675216aafcdad96c73b826353173
samba-team/samba
1a5dc817c0c9379bbaab14c676681b42b0039a3c
1,642,456,965
source4/dsdb/samdb/ldb_modules/samldb.c
samldb_spn_uniqueness_check
c
static int samldb_spn_uniqueness_check(struct samldb_ctx *ac, struct ldb_message_element *spn_el) { struct ldb_context *ldb = ldb_module_get_ctx(ac->module); int ret; const char *spn = NULL; size_t i; TALLOC_CTX *tmp_ctx = talloc_new(ac->msg); if (tmp_ctx == NULL) { return ldb_oom(ldb); } for (i =...
static int samldb_spn_uniqueness_check(struct samldb_ctx *ac, struct ldb_message_element *spn_el) { struct ldb_context *ldb = ldb_module_get_ctx(ac->module); int ret; const char *spn = NULL; size_t i; TALLOC_CTX *tmp_ctx = talloc_new(ac->msg); if (tmp_ctx == NULL) { return ldb_oom(ldb); } for (i = 0; i < spn_el->num_va...
CVE-2022-0336
CWE-276
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
4d0b9589f70b8072a4e465fa53052175
qemu-project/qemu
449e8171f96a6a944d1f3b7d3627ae059eae21ca
1,643,136,674
tools/virtiofsd/passthrough_ll.c
main
c
int main(int argc, char *argv[]) { struct fuse_args args = FUSE_ARGS_INIT(argc, argv); struct fuse_session *se; struct fuse_cmdline_opts opts; struct lo_data lo = { .sandbox = SANDBOX_NAMESPACE, .debug = 0, .writeback = 0, .posix_lock = 0, .allow_direct_io = 0, ...
int main(int argc, char *argv[]) { struct fuse_args args = FUSE_ARGS_INIT(argc, argv); struct fuse_session *se; struct fuse_cmdline_opts opts; struct lo_data lo = { .sandbox = SANDBOX_NAMESPACE, .debug = 0, .writeback = 0, .posix_lock = 0, .allow_direct_io = 0, .proc_self_fd = -1, .user_killpriv_v2 = -1, .user_posix_ac...
CVE-2022-0358
CWE-273
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ad3ffad2725660e3aabcb88adc2221f1
openscad/openscad
770e3234cbfe66edbc0333f796b46d36a74aa652
1,642,300,809
src/dxfdata.cc
DxfData::DxfData
cpp
DxfData::DxfData(double fn, double fs, double fa, const std::string &filename, const std::string &layername, double xorigin, double yorigin, double scale) { std::ifstream stream(filename.c_str()); if (!stream.good()) { LOG(message_group::Warning,Location::NONE,"","Can't open DXF file '%1$s'.",fi...
DxfData::DxfData(double fn, double fs, double fa, const std::string &filename, const std::string &layername, double xorigin, double yorigin, double scale) { std::ifstream stream(filename.c_str()); if (!stream.good()) { LOG(message_group::Warning,Location::NONE,"","Can't open DXF file '%1$s'.",filename); return; } Grid2...
CVE-2022-0496
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
20d80592ad61ef432017a6c411a1042e
openscad/openscad
b81369dffc3f385257a9b1f5c271118a88671d6d
1,641,743,862
src/comment.cc
getComment
cpp
static std::string getComment(const std::string &fulltext, int line) { if (line < 1) return ""; // Locate line unsigned int start = 0; for (; start<fulltext.length() ; ++start) { if (line <= 1) break; if (fulltext[start] == '\n') line--; } int end = start + 1; while (fulltext[end] != '\n') end++; std::st...
static std::string getComment(const std::string &fulltext, int line) { if (line < 1) return ""; unsigned int start = 0; for (; start<fulltext.length() ; ++start) { if (line <= 1) break; if (fulltext[start] == '\n') line--; } int end = start + 1; while (fulltext[end] != '\n') end++; std::string comment = fulltext.substr...
CVE-2022-0497
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ba89f0090c516a79cc9f971e2f1c64e8
torvalds/linux
a30f895ad3239f45012e860d4f94c1a388b36d14
1,629,485,639
fs/io_uring.c
io_register_personality
c
static int io_register_personality(struct io_ring_ctx *ctx) { const struct cred *creds; u32 id; int ret; creds = get_current_cred(); ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, XA_LIMIT(0, USHRT_MAX), &ctx->pers_next, GFP_KERNEL); if (!ret) return id; put_cred(creds); return ret; }
static int io_register_personality(struct io_ring_ctx *ctx) { const struct cred *creds; u32 id; int ret; creds = get_current_cred(); ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, XA_LIMIT(0, USHRT_MAX), &ctx->pers_next, GFP_KERNEL); if (!ret) return id; put_cred(creds); return ret; }
CVE-2022-1043
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6593df8284770fd74872624936f49e50
ImageMagick/ImageMagick
c8718305f120293d8bf13724f12eed885d830b09
1,647,990,707
coders/tiff.c
ReadTIFFImage
c
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQuantumInfo(qua...
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQuantumInfo(quantum_info); \ ...
CVE-2022-1115
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8d7193a42fa05199596d7a2096175dea
ImageMagick/ImageMagick6
1f860f52bd8d58737ad883072203391096b30b51
1,647,990,687
coders/tiff.c
ReadTIFFImage
c
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define MaxPixelChannels 32 #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantu...
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define MaxPixelChannels 32 #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQ...
CVE-2022-1115
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
09995d7e42f5c39a09cb2dd2794cf245
torvalds/linux
efe4186e6a1b54bf38b9e05450d43b0da1fd7739
1,645,058,583
drivers/net/hamradio/6pack.c
sixpack_close
c
static void sixpack_close(struct tty_struct *tty) { struct sixpack *sp; write_lock_irq(&disc_data_lock); sp = tty->disc_data; tty->disc_data = NULL; write_unlock_irq(&disc_data_lock); if (!sp) return; /* * We have now ensured that nobody can start using ap from now on, but * we have to wait for all exist...
static void sixpack_close(struct tty_struct *tty) { struct sixpack *sp; write_lock_irq(&disc_data_lock); sp = tty->disc_data; tty->disc_data = NULL; write_unlock_irq(&disc_data_lock); if (!sp) return; if (!refcount_dec_and_test(&sp->refcnt)) wait_for_completion(&sp->dead); netif_stop_queue(sp->dev); del_timer_sync(&sp-...
CVE-2022-1198
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
374d66731ad846d167c4922ca7365bcd
torvalds/linux
71171ac8eb34ce7fe6b3267dce27c313ab3cb3ac
1,646,723,543
net/ax25/af_ax25.c
ax25_kill_by_device
c
static void ax25_kill_by_device(struct net_device *dev) { ax25_dev *ax25_dev; ax25_cb *s; struct sock *sk; if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) return; spin_lock_bh(&ax25_list_lock); again: ax25_for_each(s, &ax25_list) { if (s->ax25_dev == ax25_dev) { sk = s->sk; sock_hold(sk); spin_unlo...
static void ax25_kill_by_device(struct net_device *dev) { ax25_dev *ax25_dev; ax25_cb *s; struct sock *sk; if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) return; spin_lock_bh(&ax25_list_lock); again: ax25_for_each(s, &ax25_list) { if (s->ax25_dev == ax25_dev) { sk = s->sk; sock_hold(sk); spin_unlock_bh(&ax25_list_lock...
CVE-2022-1199
CWE-416;CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
818dab73ae28ba56d183f945277968f5
torvalds/linux
4e0f718daf97d47cf7dec122da1be970f145c809
1,643,341,635
net/ax25/af_ax25.c
ax25_kill_by_device
c
static void ax25_kill_by_device(struct net_device *dev) { ax25_dev *ax25_dev; ax25_cb *s; if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) return; spin_lock_bh(&ax25_list_lock); again: ax25_for_each(s, &ax25_list) { if (s->ax25_dev == ax25_dev) { spin_unlock_bh(&ax25_list_lock); lock_sock(s->sk); s->...
static void ax25_kill_by_device(struct net_device *dev) { ax25_dev *ax25_dev; ax25_cb *s; if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) return; spin_lock_bh(&ax25_list_lock); again: ax25_for_each(s, &ax25_list) { if (s->ax25_dev == ax25_dev) { spin_unlock_bh(&ax25_list_lock); lock_sock(s->sk); s->ax25_dev = NULL; rel...
CVE-2022-1199
CWE-416;CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
dd2728f9942e7adf5b265604d60e5c15
torvalds/linux
7ec02f5ac8a5be5a3f20611731243dc5e1d9ba10
1,644,331,200
net/ax25/af_ax25.c
ax25_kill_by_device
c
static void ax25_kill_by_device(struct net_device *dev) { ax25_dev *ax25_dev; ax25_cb *s; struct sock *sk; if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) return; spin_lock_bh(&ax25_list_lock); again: ax25_for_each(s, &ax25_list) { if (s->ax25_dev == ax25_dev) { sk = s->sk; sock_hold(sk); spin_unlo...
static void ax25_kill_by_device(struct net_device *dev) { ax25_dev *ax25_dev; ax25_cb *s; struct sock *sk; if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) return; spin_lock_bh(&ax25_list_lock); again: ax25_for_each(s, &ax25_list) { if (s->ax25_dev == ax25_dev) { sk = s->sk; sock_hold(sk); spin_unlock_bh(&ax25_list_lock...
CVE-2022-1199
CWE-416;CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
56df892618a04ea2b417bb9883973261
vim/vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
1,661,795,116
src/quickfix.c
qf_fill_buffer
c
static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid) { linenr_T lnum; qfline_T *qfp; int old_KeyTyped = KeyTyped; list_T *qftf_list = NULL; listitem_T *qftf_li = NULL; if (old_last == NULL) { if (buf != curbuf) { internal_error("qf_fill_buffer()")...
static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid) { linenr_T lnum; qfline_T *qfp; int old_KeyTyped = KeyTyped; list_T *qftf_list = NULL; listitem_T *qftf_li = NULL; if (old_last == NULL) { if (buf != curbuf) { internal_error("qf_fill_buffer()"); return; } while ((curbuf->b_ml.ml_f...
CVE-2022-3037
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
073620b99884c24f2d993cd32b46dabc
torvalds/linux
82e31755e55fbcea6a9dfaae5fe4860ade17cbc0
1,648,465,215
net/ax25/af_ax25.c
ax25_release
c
static int ax25_release(struct socket *sock) { struct sock *sk = sock->sk; ax25_cb *ax25; ax25_dev *ax25_dev; if (sk == NULL) return 0; sock_hold(sk); lock_sock(sk); sock_orphan(sk); ax25 = sk_to_ax25(sk); ax25_dev = ax25->ax25_dev; if (sk->sk_type == SOCK_SEQPACKET) { switch (ax25->state) { case AX2...
static int ax25_release(struct socket *sock) { struct sock *sk = sock->sk; ax25_cb *ax25; ax25_dev *ax25_dev; if (sk == NULL) return 0; sock_hold(sk); lock_sock(sk); sock_orphan(sk); ax25 = sk_to_ax25(sk); ax25_dev = ax25->ax25_dev; if (sk->sk_type == SOCK_SEQPACKET) { switch (ax25->state) { case AX25_STATE_0: release_...
CVE-2022-1205
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9f21bd87354aee78173555eda06ceed5
torvalds/linux
5593473a1e6c743764b08e3b6071cb43b5cfa6c4
1,649,258,022
virt/kvm/kvm_main.c
kvm_vcpu_destroy
c
static void kvm_vcpu_destroy(struct kvm_vcpu *vcpu) { kvm_dirty_ring_free(&vcpu->dirty_ring); kvm_arch_vcpu_destroy(vcpu); /* * No need for rcu_read_lock as VCPU_RUN is the only place that changes * the vcpu->pid pointer, and at destruction time all file descriptors * are already gone. */ put_pid(rcu_deref...
static void kvm_vcpu_destroy(struct kvm_vcpu *vcpu) { kvm_dirty_ring_free(&vcpu->dirty_ring); kvm_arch_vcpu_destroy(vcpu); put_pid(rcu_dereference_protected(vcpu->pid, 1)); free_page((unsigned long)vcpu->run); kmem_cache_free(kvm_vcpu_cache, vcpu); }
CVE-2022-1263
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0617260a21e0a6d213aa1690b2ebfbfc
torvalds/linux
4071bf121d59944d5cd2238de0642f3d7995a997
1,651,636,727
net/nfc/netlink.c
nfc_genl_fw_download_done
c
int nfc_genl_fw_download_done(struct nfc_dev *dev, const char *firmware_name, u32 result) { struct sk_buff *msg; void *hdr; msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); if (!msg) return -ENOMEM; hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, NFC_CMD_FW_DOWNLOAD); if (!hdr) goto free_msg...
int nfc_genl_fw_download_done(struct nfc_dev *dev, const char *firmware_name, u32 result) { struct sk_buff *msg; void *hdr; msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); if (!msg) return -ENOMEM; hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, NFC_CMD_FW_DOWNLOAD); if (!hdr) goto free_msg; if (nla_put_string(msg, ...
CVE-2022-1975
CWE-248
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
32011371abc135a05486f24fcbf6c7ed
torvalds/linux
7ec37d1cbe17d8189d9562178d8b29167fe1c31a
1,648,210,898
arch/x86/kvm/hyperv.c
synic_set_irq
c
static int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint) { struct kvm_vcpu *vcpu = hv_synic_to_vcpu(synic); struct kvm_lapic_irq irq; int ret, vector; if (sint >= ARRAY_SIZE(synic->sint)) return -EINVAL; vector = synic_get_sint_vector(synic_read_sint(synic, sint)); if (vector < 0) return -ENOENT;...
static int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint) { struct kvm_vcpu *vcpu = hv_synic_to_vcpu(synic); struct kvm_lapic_irq irq; int ret, vector; if (sint >= ARRAY_SIZE(synic->sint)) return -EINVAL; vector = synic_get_sint_vector(synic_read_sint(synic, sint)); if (vector < 0) return -ENOENT; memset(&irq...
CVE-2022-2153
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
10aa35ed2964d3f3c700a05d0d4777e6
torvalds/linux
00b5f37189d24ac3ed46cb7f11742094778c46ce
1,648,210,899
arch/x86/kvm/lapic.c
kvm_irq_delivery_to_apic_fast
c
bool kvm_irq_delivery_to_apic_fast(struct kvm *kvm, struct kvm_lapic *src, struct kvm_lapic_irq *irq, int *r, struct dest_map *dest_map) { struct kvm_apic_map *map; unsigned long bitmap; struct kvm_lapic **dst = NULL; int i; bool ret; *r = -1; if (irq->shorthand == APIC_DEST_SELF) { *r = kvm_apic_set_irq(s...
bool kvm_irq_delivery_to_apic_fast(struct kvm *kvm, struct kvm_lapic *src, struct kvm_lapic_irq *irq, int *r, struct dest_map *dest_map) { struct kvm_apic_map *map; unsigned long bitmap; struct kvm_lapic **dst = NULL; int i; bool ret; *r = -1; if (irq->shorthand == APIC_DEST_SELF) { *r = kvm_apic_set_irq(src->vcpu, irq...
CVE-2022-2153
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
713a826623be76f808d7af73f27f51fc
torvalds/linux
ba953a9d89a00c078b85f4b190bc1dde66fe16b5
1,659,600,226
net/key/af_key.c
pfkey_register
c
static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) { struct pfkey_sock *pfk = pfkey_sk(sk); struct sk_buff *supp_skb; if (hdr->sadb_msg_satype > SADB_SATYPE_MAX) return -EINVAL; if (hdr->sadb_msg_satype != SADB_SATYPE_UNSPEC) { if (pfk->register...
static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) { struct pfkey_sock *pfk = pfkey_sk(sk); struct sk_buff *supp_skb; if (hdr->sadb_msg_satype > SADB_SATYPE_MAX) return -EINVAL; if (hdr->sadb_msg_satype != SADB_SATYPE_UNSPEC) { if (pfk->registered&(1<<hdr...
CVE-2022-3028
CWE-362;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bda19882a99aa74dd3c9a95818505e70
wolfSSL/wolfssl
06022e85a3535ec8f98f5f7efa5f611b1c56c60b
1,660,837,420
src/ssl.c
wolfSSL_DupSession
c
int wolfSSL_DupSession(const WOLFSSL_SESSION* input, WOLFSSL_SESSION* output, int avoidSysCalls) { #ifdef HAVE_SESSION_TICKET int ticLenAlloc = 0; byte *ticBuff = NULL; #endif const size_t copyOffset = OFFSETOF(WOLFSSL_SESSION, heap) + sizeof(input->heap); int ret = WOLFSSL_SUCCESS; (void...
int wolfSSL_DupSession(const WOLFSSL_SESSION* input, WOLFSSL_SESSION* output, int avoidSysCalls) { #ifdef HAVE_SESSION_TICKET int ticLenAlloc = 0; byte *ticBuff = NULL; #endif const size_t copyOffset = OFFSETOF(WOLFSSL_SESSION, heap) + sizeof(input->heap); int ret = WOLFSSL_SUCCESS; (void)avoidSysCalls; input = ClientS...
CVE-2022-38153
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f9b6f3858bee220cf342caed5ccb4f28
contiki-ng/contiki-ng
9cdec6e19865d7b0d8caf61f1a34001f64d565b0
1,631,277,903
os/net/ipv6/uipbuf.c
uipbuf_get_next_header
c
uint8_t * uipbuf_get_next_header(uint8_t *buffer, uint16_t size, uint8_t *protocol, bool start) { int curr_hdr_len = 0; int next_hdr_len = 0; uint8_t *next_header = NULL; struct uip_ip_hdr *ipbuf = NULL; struct uip_ext_hdr *curr_ext = NULL; struct uip_ext_hdr *next_ext = NULL; if(start) { /* protocol...
uint8_t * uipbuf_get_next_header(uint8_t *buffer, uint16_t size, uint8_t *protocol, bool start) { int curr_hdr_len = 0; int next_hdr_len = 0; uint8_t *next_header = NULL; struct uip_ip_hdr *ipbuf = NULL; struct uip_ext_hdr *curr_ext = NULL; struct uip_ext_hdr *next_ext = NULL; if(start) { ipbuf = (struct uip_ip_hdr *)b...
CVE-2022-36052
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e2469b703f6ebad9fd8c2981b89b989e
LibRaw/LibRaw
a6937d4046a7c4742b683a04c8564605fd9be4fb
1,586,362,644
src/decoders/decoders_dcraw.cpp
LibRaw::ljpeg_start
cpp
int LibRaw::ljpeg_start(struct jhead *jh, int info_only) { ushort c, tag, len; int cnt = 0; uchar data[0x10000]; const uchar *dp; memset(jh, 0, sizeof *jh); jh->restart = INT_MAX; if ((fgetc(ifp), fgetc(ifp)) != 0xd8) return 0; do { if (feof(ifp)) return 0; if (cnt++ > 1024) r...
int LibRaw::ljpeg_start(struct jhead *jh, int info_only) { ushort c, tag, len; int cnt = 0; uchar data[0x10000]; const uchar *dp; memset(jh, 0, sizeof *jh); jh->restart = INT_MAX; if ((fgetc(ifp), fgetc(ifp)) != 0xd8) return 0; do { if (feof(ifp)) return 0; if (cnt++ > 1024) return 0; if (!fread(data, 2, 2, ifp)) retur...
CVE-2020-35533
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8c2bfd9bbd210590b9a820a5be036763
torvalds/linux
e02f0d3970404bfea385b6edb86f2d936db0ea2b
1,661,151,999
net/netfilter/nf_tables_api.c
nft_verdict_init
c
static int nft_verdict_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) { u8 genmask = nft_genmask_next(ctx->net); struct nlattr *tb[NFTA_VERDICT_MAX + 1]; struct nft_chain *chain; int err; err = nla_parse_nested_deprecated(tb, NFTA_VERDICT_MAX, n...
static int nft_verdict_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) { u8 genmask = nft_genmask_next(ctx->net); struct nlattr *tb[NFTA_VERDICT_MAX + 1]; struct nft_chain *chain; int err; err = nla_parse_nested_deprecated(tb, NFTA_VERDICT_MAX, nla, nft_verdi...
CVE-2022-39190
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
73789b0c47b6093dc34ba9056a4f6559
vim/vim
35d21c6830fc2d68aca838424a0e786821c5891c
1,662,126,436
src/ex_docmd.c
do_cmdline
c
int do_cmdline( char_u *cmdline, char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie, // argument for fgetline() int flags) { char_u *next_cmdline; // next cmd to execute char_u *cmdline_copy = NULL; // copy of cmd line int used_getline = FALSE; // used "fgetline" to obtai...
int do_cmdline( char_u *cmdline, char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie, int flags) { char_u *next_cmdline; char_u *cmdline_copy = NULL; int used_getline = FALSE; static int recursive = 0; int msg_didout_before_start = 0; int count = 0; int did_inc = FALSE; int retval = OK; #ifdef FEAT_EVAL ...
CVE-2022-3099
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3ecc503eb21b01596accaffd6de6dea3
syoyo/tinygltf
52ff00a38447f06a17eab1caa2cf0730a119c751
1,660,640,925
tiny_gltf.h
ExpandFilePath
cpp
std::string ExpandFilePath(const std::string &filepath, void *) { #ifdef _WIN32 // Assume input `filepath` is encoded in UTF-8 std::wstring wfilepath = UTF8ToWchar(filepath); DWORD wlen = ExpandEnvironmentStringsW(wfilepath.c_str(), nullptr, 0); wchar_t *wstr = new wchar_t[wlen]; ExpandEnvironmentStringsW(wfi...
std::string ExpandFilePath(const std::string &filepath, void *) { #ifdef _WIN32 std::wstring wfilepath = UTF8ToWchar(filepath); DWORD wlen = ExpandEnvironmentStringsW(wfilepath.c_str(), nullptr, 0); wchar_t *wstr = new wchar_t[wlen]; ExpandEnvironmentStringsW(wfilepath.c_str(), wstr, wlen); std::wstring ws(wstr); delet...
CVE-2022-3008
CWE-77
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9c8b8c43358d898846708653bab56d04
fribidi/fribidi
ad3a19e6372b1e667128ed1ea2f49919884587e1
1,645,083,012
bin/fribidi-main.c
main
c
int main ( int argc, char *argv[] ) { int exit_val; fribidi_boolean file_found; char *s; FILE *IN; text_width = default_text_width; do_break = true; do_pad = true; do_mirror = true; do_clean = false; do_reorder_nsm = false; show_input = false; show_visual = true; show_basedir = false; s...
int main ( int argc, char *argv[] ) { int exit_val; fribidi_boolean file_found; char *s; FILE *IN; text_width = default_text_width; do_break = true; do_pad = true; do_mirror = true; do_clean = false; do_reorder_nsm = false; show_input = false; show_visual = true; show_basedir = false; show_ltov = false; show_vtol = fal...
CVE-2022-25308
CWE-121;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ada86b25692a53df4455b585f94e8807
rizinorg/rizin
556ca2f9eef01ec0f4a76d1fbacfcf3a87a44810
1,660,740,782
librz/bin/format/mach0/dyldcache.c
get_rebase_infos
c
static RzDyldRebaseInfos *get_rebase_infos(RzDyldCache *cache) { RzDyldRebaseInfos *result = RZ_NEW0(RzDyldRebaseInfos); if (!result) { return NULL; } if (!cache->hdr->slideInfoOffset || !cache->hdr->slideInfoSize) { ut32 total_slide_infos = 0; ut32 n_slide_infos[MAX_N_HDR]; ut32 i; for (i = 0; i < cach...
static RzDyldRebaseInfos *get_rebase_infos(RzDyldCache *cache) { RzDyldRebaseInfos *result = RZ_NEW0(RzDyldRebaseInfos); if (!result) { return NULL; } if (!cache->hdr->slideInfoOffset || !cache->hdr->slideInfoSize) { ut32 total_slide_infos = 0; ut32 n_slide_infos[MAX_N_HDR]; ut32 i; for (i = 0; i < cache->n_hdr && i < ...
CVE-2022-36042
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
baaccdee8a1bb7bb4b20c61059b542dc
rizinorg/rizin
68948017423a12786704e54227b8b2f918c2fd27
1,661,183,419
librz/bin/format/pyc/marshal.c
get_complex_object
c
static pyc_object *get_complex_object(RzBinPycObj *pyc, RzBuffer *buffer) { pyc_object *ret = NULL; bool error = false; ut32 size = 0; ut32 n1 = 0; ut32 n2 = 0; ret = RZ_NEW0(pyc_object); if (!ret) { return NULL; } if ((pyc->magic_int & 0xffff) <= 62061) { n1 = get_ut8(buffer, &error); } else { n1 = g...
static pyc_object *get_complex_object(RzBinPycObj *pyc, RzBuffer *buffer) { pyc_object *ret = NULL; bool error = false; ut32 size = 0; ut32 n1 = 0; ut32 n2 = 0; ret = RZ_NEW0(pyc_object); if (!ret) { return NULL; } if ((pyc->magic_int & 0xffff) <= 62061) { n1 = get_ut8(buffer, &error); } else { n1 = get_st32(buffer, &e...
CVE-2022-36040
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c89a82ab4779c3e235f99011830affba
rizinorg/rizin
7323e64d68ecccfb0ed3ee480f704384c38676b2
1,661,179,646
librz/bin/format/mach0/mach0.c
reconstruct_chained_fixup
c
static bool reconstruct_chained_fixup(struct MACH0_(obj_t) * bin) { if (!bin->dyld_info) { return false; } if (!bin->nsegs) { return false; } bin->nchained_starts = bin->nsegs; bin->chained_starts = RZ_NEWS0(struct rz_dyld_chained_starts_in_segment *, bin->nchained_starts); if (!bin->chained_starts) { retu...
static bool reconstruct_chained_fixup(struct MACH0_(obj_t) * bin) { if (!bin->dyld_info) { return false; } if (!bin->nsegs) { return false; } bin->nchained_starts = bin->nsegs; bin->chained_starts = RZ_NEWS0(struct rz_dyld_chained_starts_in_segment *, bin->nchained_starts); if (!bin->chained_starts) { return false; } s...
CVE-2022-36041
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7c73d0537182a92b69bb34001c398c9b
rizinorg/rizin
a3d50c1ea185f3f642f2d8180715f82d98840784
1,661,185,097
librz/bin/p/bin_qnx.c
relocs
c
static RzList *relocs(RzBinFile *bf) { rz_return_val_if_fail(bf && bf->o, NULL); QnxObj *qo = bf->o->bin_obj; return rz_list_clone(qo->fixups); }
static RzList *relocs(RzBinFile *bf) { rz_return_val_if_fail(bf && bf->o, NULL); QnxObj *qo = bf->o->bin_obj; return rz_list_clone(qo->fixups); }
CVE-2022-36043
CWE-415
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
be893c07f1e58b3bc6f56b1ad2c8c42a
vim/vim
1540d334a04d874c2aa9d26b82dbbcd4bc5a78de
1,662,553,226
src/testing.c
f_assert_fails
c
void f_assert_fails(typval_T *argvars, typval_T *rettv) { char_u *cmd; garray_T ga; int save_trylevel = trylevel; int called_emsg_before = called_emsg; char *wrong_arg_msg = NULL; char_u *tofree = NULL; if (check_for_string_or_number_arg(argvars, 0) == FAIL || check_for_opt_string_or...
void f_assert_fails(typval_T *argvars, typval_T *rettv) { char_u *cmd; garray_T ga; int save_trylevel = trylevel; int called_emsg_before = called_emsg; char *wrong_arg_msg = NULL; char_u *tofree = NULL; if (check_for_string_or_number_arg(argvars, 0) == FAIL || check_for_opt_string_or_list_arg(argvars, 1) == FAIL || (ar...
CVE-2022-3153
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3f8b4e117ffabfd391c9d164e665c6a6
Singular/Singular
5f28fbf066626fa9c4a8f0e6408c0bb362fb386c
1,653,375,752
Singular/sdb.cc
sdb_edit
cpp
void sdb_edit(procinfo *pi) { char * filename = omStrDup("/tmp/sd000000"); sprintf(filename+7,"%d",getpid()); FILE *fp=fopen(filename,"w"); if (fp==NULL) { Print("cannot open %s\n",filename); omFree(filename); return; } if (pi->language!= LANG_SINGULAR) { Print("cannot edit type %d\n",pi...
void sdb_edit(procinfo *pi) { char * filename = omStrDup("/tmp/sd000000"); sprintf(filename+7,"%d",getpid()); FILE *fp=fopen(filename,"w"); if (fp==NULL) { Print("cannot open %s\n",filename); omFree(filename); return; } if (pi->language!= LANG_SINGULAR) { Print("cannot edit type %d\n",pi->language); fclose(fp); fp=NULL...
CVE-2022-40299
CWE-330
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e6845fe15288d2b7953e4ad3fc0aaa86
torvalds/linux
9cb636b5f6a8cc6d1b50809ec8f8d33ae0c84c95
1,662,559,634
drivers/firmware/efi/capsule-loader.c
efi_capsule_release
c
static int efi_capsule_release(struct inode *inode, struct file *file) { struct capsule_info *cap_info = file->private_data; kfree(cap_info->pages); kfree(cap_info->phys); kfree(file->private_data); file->private_data = NULL; return 0; }
static int efi_capsule_release(struct inode *inode, struct file *file) { struct capsule_info *cap_info = file->private_data; kfree(cap_info->pages); kfree(cap_info->phys); kfree(file->private_data); file->private_data = NULL; return 0; }
CVE-2022-40307
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3fabf3be53dc8e86618c08e5346b4635
torvalds/linux
690b2549b19563ec5ad53e5c82f6a944d910086e
1,654,160,538
drivers/i2c/busses/i2c-ismt.c
ismt_access
c
static int ismt_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { int ret; unsigned long time_left; dma_addr_t dma_addr = 0; /* address of the data buffer */ u8 dma_size = 0; enum dma_data_direction dma_direction ...
static int ismt_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { int ret; unsigned long time_left; dma_addr_t dma_addr = 0; u8 dma_size = 0; enum dma_data_direction dma_direction = 0; struct ismt_desc *desc; struct ismt_priv *priv = i2...
CVE-2022-3077
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
12cce5e5ccd8e9a51731a448c2df9207
gpac/gpac
77510778516803b7f7402d7423c6d6bef50254c3
1,662,968,815
src/isomedia/box_code_base.c
xtra_box_read
c
GF_Err xtra_box_read(GF_Box *s, GF_BitStream *bs) { GF_XtraBox *ptr = (GF_XtraBox *)s; while (ptr->size) { GF_XtraTag *tag; u32 prop_type = 0; char *data=NULL, *data2=NULL; ISOM_DECREASE_SIZE_NO_ERR(ptr, 8) s32 tag_size = gf_bs_read_u32(bs); u32 name_size = gf_bs_read_u32(bs); if (tag_size < 8) return ...
GF_Err xtra_box_read(GF_Box *s, GF_BitStream *bs) { GF_XtraBox *ptr = (GF_XtraBox *)s; while (ptr->size) { GF_XtraTag *tag; u32 prop_type = 0; char *data=NULL, *data2=NULL; ISOM_DECREASE_SIZE_NO_ERR(ptr, 8) s32 tag_size = gf_bs_read_u32(bs); u32 name_size = gf_bs_read_u32(bs); if (tag_size < 8) return GF_ISOM_INVALID_F...
CVE-2022-3178
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
18f3739a56838a381ab7abe81efc5921
torvalds/linux
5934d9a0383619c14df91af8fd76261dc3de2f5f
1,661,518,870
sound/core/control.c
get_ctl_id_hash
c
static unsigned long get_ctl_id_hash(const struct snd_ctl_elem_id *id) { int i; unsigned long h; h = id->iface; h = MULTIPLIER * h + id->device; h = MULTIPLIER * h + id->subdevice; for (i = 0; id->name[i] && i < SNDRV_CTL_ELEM_ID_NAME_MAXLEN; i++) h = MULTIPLIER * h + id->name[i]; h = MULTIPLIER * h + id->ind...
static unsigned long get_ctl_id_hash(const struct snd_ctl_elem_id *id) { int i; unsigned long h; h = id->iface; h = MULTIPLIER * h + id->device; h = MULTIPLIER * h + id->subdevice; for (i = 0; id->name[i] && i < SNDRV_CTL_ELEM_ID_NAME_MAXLEN; i++) h = MULTIPLIER * h + id->name[i]; h = MULTIPLIER * h + id->index; h &= L...
CVE-2022-3170
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7e7450d11bf4757df863a135963503f3
libexpat/libexpat
4a32da87e931ba54393d465bb77c40b5c33d343b
1,660,749,978
expat/lib/xmlparse.c
internalEntityProcessor
c
static enum XML_Error PTRCALL internalEntityProcessor(XML_Parser parser, const char *s, const char *end, const char **nextPtr) { ENTITY *entity; const char *textStart, *textEnd; const char *next; enum XML_Error result; OPEN_INTERNAL_ENTITY *openEntity = parser->m_openInternalEntities; ...
static enum XML_Error PTRCALL internalEntityProcessor(XML_Parser parser, const char *s, const char *end, const char **nextPtr) { ENTITY *entity; const char *textStart, *textEnd; const char *next; enum XML_Error result; OPEN_INTERNAL_ENTITY *openEntity = parser->m_openInternalEntities; if (! openEntity) return XML_ERROR...
CVE-2022-40674
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6069c17a62cb76694ef821943c9bb591
torvalds/linux
a53046291020ec41e09181396c1e829287b48d47
1,647,953,957
fs/jfs/inode.c
jfs_evict_inode
c
void jfs_evict_inode(struct inode *inode) { struct jfs_inode_info *ji = JFS_IP(inode); jfs_info("In jfs_evict_inode, inode = 0x%p", inode); if (!inode->i_nlink && !is_bad_inode(inode)) { dquot_initialize(inode); if (JFS_IP(inode)->fileset == FILESYSTEM_I) { truncate_inode_pages_final(&inode->i_data); i...
void jfs_evict_inode(struct inode *inode) { struct jfs_inode_info *ji = JFS_IP(inode); jfs_info("In jfs_evict_inode, inode = 0x%p", inode); if (!inode->i_nlink && !is_bad_inode(inode)) { dquot_initialize(inode); if (JFS_IP(inode)->fileset == FILESYSTEM_I) { truncate_inode_pages_final(&inode->i_data); if (test_cflag(COM...
CVE-2022-3202
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ba04658bf915bf67d9a561f6fb83b94a
axiomatic-systems/Bento4
5b7cc2500d514717a64675fcf631939494c074ce
1,663,535,424
Source/C++/Core/Ap4UuidAtom.cpp
AP4_UnknownUuidAtom::AP4_UnknownUuidAtom
cpp
AP4_UnknownUuidAtom::AP4_UnknownUuidAtom(AP4_UI64 size, const AP4_UI08* uuid, AP4_ByteStream& stream) : AP4_UuidAtom(size, uuid) { // store the data m_Data.SetDataSize((AP4_Size)size-GetHeaderSize()); stream.Read(m_Data.UseData(), m_Data.GetDataSize()); }
AP4_UnknownUuidAtom::AP4_UnknownUuidAtom(AP4_UI64 size, const AP4_UI08* uuid, AP4_ByteStream& stream) : AP4_UuidAtom(size, uuid) { m_Data.SetDataSize((AP4_Size)size-GetHeaderSize()); stream.Read(m_Data.UseData(), m_Data.GetDataSize()); }
CVE-2022-40438
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
742d42ee17dd94b225452698eceec777
nginx/njs
b9aea5854bcf6f2de8f7a7f1550874e392b94be2
1,661,988,958
src/njs_string.c
njs_string_trim
c
uint32_t njs_string_trim(const njs_value_t *value, njs_string_prop_t *string, unsigned mode) { uint32_t cp, trim; const u_char *p, *prev, *start, *end; njs_unicode_decode_t ctx; trim = 0; njs_string_prop(string, value); start = string->start; end = string->start...
uint32_t njs_string_trim(const njs_value_t *value, njs_string_prop_t *string, unsigned mode) { uint32_t cp, trim; const u_char *p, *prev, *start, *end; njs_unicode_decode_t ctx; trim = 0; njs_string_prop(string, value); start = string->start; end = string->start + string->size; if (njs_is_byte_or_ascii_string(string)) ...
CVE-2022-38890
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8fb057b39a67b2dafff0049940ff2318
scylladb/scylladb
1c2eef384da439b0457b6d71c7e37d7268e471cb
1,652,967,917
transport/server.cc
cql_server::connection::read_and_decompress_frame
cpp
future<fragmented_temporary_buffer> cql_server::connection::read_and_decompress_frame(size_t length, uint8_t flags) { using namespace compression_buffers; if (flags & cql_frame_flags::compression) { if (_compression == cql_compression::lz4) { if (length < 4) { throw std::runt...
future<fragmented_temporary_buffer> cql_server::connection::read_and_decompress_frame(size_t length, uint8_t flags) { using namespace compression_buffers; if (flags & cql_frame_flags::compression) { if (_compression == cql_compression::lz4) { if (length < 4) { throw std::runtime_error(fmt::format("CQL frame truncated: ...
CVE-2022-29240
CWE-908
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1aed03a3abd485f356d1a399982262d1
tensorflow/tensorflow
61f0f9b94df8c0411f0ad0ecc2fec2d3f3c33555
1,653,010,308
tensorflow/core/kernels/reshape_op.h
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const Tensor& sizes = context->input(1); // Preliminary validation of sizes. OP_REQUIRES( context, (TensorShapeUtils::IsVector(sizes.shape()) || // TODO(rmlarsen): Disallow legacy use of s...
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const Tensor& sizes = context->input(1); OP_REQUIRES( context, (TensorShapeUtils::IsVector(sizes.shape()) || TensorShapeUtils::IsScalar(sizes.shape())), errors::InvalidArgument("sizes input must be 1-D, not ", sizes.shape().Debug...
CVE-2022-35934
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
551d7079646405320cacabeeba0b00e2
tensorflow/tensorflow
c65c67f88ad770662e8f191269a907bf2b94b1bf
1,657,737,786
tensorflow/core/kernels/sobol_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { int32_t dim = context->input(0).scalar<int32_t>()(); int32_t num_results = context->input(1).scalar<int32_t>()(); int32_t skip = context->input(2).scalar<int32_t>()(); OP_REQUIRES(context, dim >= 1, errors::InvalidArgument("dim must be a...
void Compute(OpKernelContext* context) override { int32_t dim = context->input(0).scalar<int32_t>()(); int32_t num_results = context->input(1).scalar<int32_t>()(); int32_t skip = context->input(2).scalar<int32_t>()(); OP_REQUIRES(context, dim >= 1, errors::InvalidArgument("dim must be at least one")); OP_REQUIRES(conte...
CVE-2022-35935
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
69c205d8b278ba1c0924382f3f24a87a
tensorflow/tensorflow
37cefa91bee4eace55715eeef43720b958a01192
1,658,181,824
tensorflow/core/kernels/ragged_range_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& starts_in = context->input(0); const Tensor& limits_in = context->input(1); const Tensor& deltas_in = context->input(2); // Check input tensor shapes. OP_REQUIRES(context, starts_in.shape().dims() <= 1, InvalidArgument(...
void Compute(OpKernelContext* context) override { const Tensor& starts_in = context->input(0); const Tensor& limits_in = context->input(1); const Tensor& deltas_in = context->input(2); OP_REQUIRES(context, starts_in.shape().dims() <= 1, InvalidArgument("starts must be a scalar or vector")); OP_REQUIRES(context, limits_...
CVE-2022-35940
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9ac109a0ca66aa7473ffc341b62d01ad
tensorflow/tensorflow
3a6ac52664c6c095aa2b114e742b0aa17fdce78f
1,658,174,691
tensorflow/core/kernels/avgpooling_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& tensor_in_shape = context->input(0); const Tensor& out_backprop = context->input(1); // For avgpooling, tensor_in_shape should have 1 dimension, and 4 elements. OP_REQUIRES( context, tensor_in_shape.dims() == 1 && tensor_in_...
void Compute(OpKernelContext* context) override { const Tensor& tensor_in_shape = context->input(0); const Tensor& out_backprop = context->input(1); OP_REQUIRES( context, tensor_in_shape.dims() == 1 && tensor_in_shape.NumElements() == 4, errors::InvalidArgument("out_backprop must be 1-dimensional and 4 " "elements")); ...
CVE-2022-35941
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
aec5851fb72d96b6a87c0193bbe711f5
tensorflow/tensorflow
9178ac9d6389bdc54638ab913ea0e419234d14eb
1,657,914,576
tensorflow/compiler/tf2xla/xla_op_kernel.cc
XlaOpKernelContext::ConstantInputAsShape
cpp
Status XlaOpKernelContext::ConstantInputAsShape(int index, TensorShape* shape, xla::ValueInferenceMode mode) { xla::Literal literal; TF_RETURN_IF_ERROR(ConstantInput(index, &literal, mode)); std::vector<int64_t> dims; TF_RETURN_IF_ERROR(LiteralToInt64Vector(litera...
Status XlaOpKernelContext::ConstantInputAsShape(int index, TensorShape* shape, xla::ValueInferenceMode mode) { xla::Literal literal; TF_RETURN_IF_ERROR(ConstantInput(index, &literal, mode)); std::vector<int64_t> dims; TF_RETURN_IF_ERROR(LiteralToInt64Vector(literal, &dims)); *shape = TensorShape(dims); return OkStatus(...
CVE-2022-35959
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e045daa0d5cfe76d58c679168fcaa8fe
tensorflow/tensorflow
03a659d7be9a1154fdf5eeac221e5950fec07dad
1,658,368,519
tensorflow/core/kernels/fractional_avg_pool_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { // Here's the basic idea: // Batch and depth dimension are independent from row and col dimension. And // because FractionalAvgPool currently only support pooling along row and // col, we can basically think of this 4D tensor backpropagation as // op...
void Compute(OpKernelContext* context) override { typedef Eigen::Map<const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>> ConstEigenMatrixMap; typedef Eigen::Map<Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>> EigenDoubleMatrixMap; const Tensor& orig_input_tensor_shape = context->input(0); OP_REQUIRES(context...
CVE-2022-35963
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bd9f8b537da7f884026d90b74696019e
tensorflow/tensorflow
2a458fc4866505be27c62f81474ecb2b870498fa
1,658,631,978
tensorflow/core/kernels/rnn/lstm_ops.cc
Compute
cpp
void Compute(OpKernelContext* ctx) override { const Tensor* x_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("x", &x_tensor)); const Tensor* cs_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("cs_prev", &cs_prev_tensor)); const Tensor* h_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->...
void Compute(OpKernelContext* ctx) override { const Tensor* x_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("x", &x_tensor)); const Tensor* cs_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("cs_prev", &cs_prev_tensor)); const Tensor* h_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("h_prev", &h_prev_te...
CVE-2022-35964
CWE-20
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9eb5a4f5f0b4fb5dcf41b3cdc3fa4eef
tensorflow/tensorflow
bce3717eaef4f769019fd18e990464ca4a2efeea
1,657,806,559
tensorflow/core/kernels/searchsorted_op.cc
Compute
cpp
void Compute(OpKernelContext* ctx) override { const Tensor& sorted_inputs_t = ctx->input(0); const Tensor& values_t = ctx->input(1); // inputs must be at least a matrix OP_REQUIRES( ctx, sorted_inputs_t.shape().dims() >= 2, errors::InvalidArgument("sorted input argument must be a matrix...
void Compute(OpKernelContext* ctx) override { const Tensor& sorted_inputs_t = ctx->input(0); const Tensor& values_t = ctx->input(1); OP_REQUIRES( ctx, sorted_inputs_t.shape().dims() >= 2, errors::InvalidArgument("sorted input argument must be a matrix")); OP_REQUIRES(ctx, sorted_inputs_t.dim_size(0) == values_t.dim_siz...
CVE-2022-35965
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bee8d6eff366204eee45adb47e0db8e9
tensorflow/tensorflow
8741e57d163a079db05a7107a7609af70931def4
1,658,174,249
tensorflow/core/kernels/fractional_max_pool_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { // There are two steps when calculating gradient for FractionalMaxPool. // 1) Walk through the process of calculating fractional pooling given // pooling region; however, in the process, keep track of where the max // element comes from. (arg_max) ...
void Compute(OpKernelContext* context) override { typedef Eigen::Map<const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>> ConstEigenMatrixMap; typedef Eigen::Map<Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>> EigenMatrixMap; typedef Eigen::Map<Eigen::Matrix<int64, Eigen::Dynamic, Eigen::Dynamic>> EigenIndexMatrix...
CVE-2022-35981
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
4ae7281ee128c20c005137d365400c78
tensorflow/tensorflow
72180be03447a10810edca700cbc9af690dfeb51
1,655,955,003
tensorflow/core/kernels/parameterized_truncated_normal_op.cc
Compute
cpp
void Compute(OpKernelContext* ctx) override { const Tensor& shape_tensor = ctx->input(0); const Tensor& means_tensor = ctx->input(1); const Tensor& stddevs_tensor = ctx->input(2); const Tensor& minvals_tensor = ctx->input(3); const Tensor& maxvals_tensor = ctx->input(4); OP_REQUIRES( ct...
void Compute(OpKernelContext* ctx) override { const Tensor& shape_tensor = ctx->input(0); const Tensor& means_tensor = ctx->input(1); const Tensor& stddevs_tensor = ctx->input(2); const Tensor& minvals_tensor = ctx->input(3); const Tensor& maxvals_tensor = ctx->input(4); OP_REQUIRES( ctx, TensorShapeUtils::IsVector(sha...
CVE-2022-35984
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ae957131b91f85aecd3e290828e40cde
tensorflow/tensorflow
bd90b3efab4ec958b228cd7cfe9125be1c0cf255
1,657,723,608
tensorflow/core/kernels/lrn_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& in_grads = context->input(0); const Tensor& in_image = context->input(1); const Tensor& out_image = context->input(2); OP_REQUIRES(context, in_grads.dims() == 4 && in_image.dims() == 4, errors::InvalidArgument("inputs must ...
void Compute(OpKernelContext* context) override { const Tensor& in_grads = context->input(0); const Tensor& in_image = context->input(1); const Tensor& out_image = context->input(2); OP_REQUIRES(context, in_grads.dims() == 4 && in_image.dims() == 4, errors::InvalidArgument("inputs must be 4-dimensional")); const int64_...
CVE-2022-35985
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c83bf549fb6fb3646f4bc25cee2bd44b
tensorflow/tensorflow
bf4c14353c2328636a18bfad1e151052c81d5f43
1,657,746,793
tensorflow/core/kernels/bincount_op.cc
Compile
cpp
void Compile(XlaOpKernelContext* ctx) override { int64_t output_size; xla::XlaOp output_size_param = ctx->Input("size"); StatusOr<xla::Shape> output_shape_or = ctx->builder()->GetShape(output_size_param); OP_REQUIRES_OK(ctx, output_shape_or.status()); auto output_shape_param = output_shape_o...
void Compile(XlaOpKernelContext* ctx) override { int64_t output_size; xla::XlaOp output_size_param = ctx->Input("size"); StatusOr<xla::Shape> output_shape_or = ctx->builder()->GetShape(output_size_param); OP_REQUIRES_OK(ctx, output_shape_or.status()); auto output_shape_param = output_shape_or.ValueOrDie(); auto output_...
CVE-2022-35987
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
19c8302f8661156f04ffe68d9dc95627
tensorflow/tensorflow
c55b476aa0e0bd4ee99d0f3ad18d9d706cd1260a
1,658,339,964
tensorflow/core/kernels/linalg/svd_op_gpu.cu.cc
ComputeAsync
cpp
void ComputeAsync(OpKernelContext* context, DoneCallback done) final { const Tensor& input = context->input(0); const int ndims = input.dims(); // Validate inputs. OP_REQUIRES_ASYNC( context, ndims >= 2, errors::InvalidArgument("Input must have rank >= 2, got ", ndims), done); ...
void ComputeAsync(OpKernelContext* context, DoneCallback done) final { const Tensor& input = context->input(0); const int ndims = input.dims(); OP_REQUIRES_ASYNC( context, ndims >= 2, errors::InvalidArgument("Input must have rank >= 2, got ", ndims), done); const int64 m = input.dim_size(ndims - 2); const int64 n = inp...
CVE-2022-35988
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ea3f6f0a0db159fffee792229a8f7382
tensorflow/tensorflow
f3cf67ac5705f4f04721d15e485e192bb319feed
1,658,461,381
tensorflow/core/kernels/fake_quant_ops.cc
Compute
cpp
void Compute(OpKernelContext* context) override { CHECK_EQ(4, context->num_inputs()); const Tensor& gradient = context->input(0); const Tensor& input = context->input(1); OP_REQUIRES(context, input.IsSameSize(gradient), InvalidArgument("gradient and input must be the same size")); co...
void Compute(OpKernelContext* context) override { CHECK_EQ(4, context->num_inputs()); const Tensor& gradient = context->input(0); const Tensor& input = context->input(1); OP_REQUIRES(context, input.IsSameSize(gradient), InvalidArgument("gradient and input must be the same size")); const int depth = input.dim_size(input...
CVE-2022-35990
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
04c3950fae219bb71a700cca1822a307
tensorflow/tensorflow
cf70b79d2662c0d3c6af74583641e345fc939467
1,657,724,048
tensorflow/core/kernels/set_kernels.cc
SparseTensorFromContext
cpp
Status SparseTensorFromContext(OpKernelContext* ctx, const int32_t base_index, const bool validate_indices, sparse::SparseTensor* tensor) { // Assume row-major order. TensorShape shape; TF_RETURN_IF_ERROR(TensorShape::BuildTensorShape( ctx->input...
Status SparseTensorFromContext(OpKernelContext* ctx, const int32_t base_index, const bool validate_indices, sparse::SparseTensor* tensor) { TensorShape shape; TF_RETURN_IF_ERROR(TensorShape::BuildTensorShape( ctx->input(base_index + 2).vec<int64_t>(), &shape)); CheckRankAtLeast2(ctx, shape); std::vector<int64_t> order(...
CVE-2022-35993
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
13187bfddb7450d1dad25aba9ab5735e
tensorflow/tensorflow
c1f491817dec39a26be3c574e86a88c30f3c4770
1,657,739,596
tensorflow/core/kernels/collective_ops.cc
ComputeAsyncImpl
cpp
void ComputeAsyncImpl(OpKernelContext* c, CollectiveExecutor* col_exec, DoneCallback done) override { // Allocate output on the first pass through this function. This must be // done immediately, while we're still in the executor thread. Otherwise // the memory is not guaranteed to...
void ComputeAsyncImpl(OpKernelContext* c, CollectiveExecutor* col_exec, DoneCallback done) override { if (c->mutable_output(0) == nullptr) { Tensor* output = nullptr; OP_REQUIRES_OK_ASYNC(c, c->forward_input_or_allocate_output( {0}, 0, col_params_->instance.shape, &output), done); } if (!CanProceedWithCompute(c, col_ex...
CVE-2022-35994
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
57834d1a9643ec3b18ae37b215b19f2b
tensorflow/tensorflow
bf6b45244992e2ee543c258e519489659c99fb7f
1,657,744,668
tensorflow/core/kernels/summary_audio_op.cc
Compute
cpp
void Compute(OpKernelContext* c) override { const Tensor& tag = c->input(0); const Tensor& tensor = c->input(1); OP_REQUIRES(c, TensorShapeUtils::IsScalar(tag.shape()), errors::InvalidArgument("Tag must be a scalar")); OP_REQUIRES(c, tensor.dims() >= 2 && tensor.dims() <= 3, ...
void Compute(OpKernelContext* c) override { const Tensor& tag = c->input(0); const Tensor& tensor = c->input(1); OP_REQUIRES(c, TensorShapeUtils::IsScalar(tag.shape()), errors::InvalidArgument("Tag must be a scalar")); OP_REQUIRES(c, tensor.dims() >= 2 && tensor.dims() <= 3, errors::InvalidArgument("Tensor must be 3-D ...
CVE-2022-35995
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
288c12ff73fda7ef2cc03c53f26c6209
tensorflow/tensorflow
611d80db29dd7b0cfb755772c69d60ae5bca05f9
1,658,777,736
tensorflow/core/kernels/conv_ops.cc
Compute
cpp
void Compute(OpKernelContext* context) override { // Input tensor is of the following dimensions: // [ batch, in_rows, in_cols, in_depth ] const Tensor& input = context->input(0); // Input filter is of the following dimensions: // [ filter_rows, filter_cols, in_depth, out_depth] const Tensor& f...
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const Tensor& filter = context->input(1); Conv2DDimensions dimensions; OP_REQUIRES_OK(context, ComputeConv2DDimension(params_, input, filter, &dimensions)); TensorShape out_shape = ShapeFromFormat( params_.data_format, dimensions...
CVE-2022-35996
CWE-369
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
71c1ddac1fde8846fbdba4fc78a8954b
tensorflow/tensorflow
c8ba76d48567aed347508e0552a257641931024d
1,658,242,135
tensorflow/core/kernels/list_kernels.cc
TensorShapeFromTensor
cpp
Status TensorShapeFromTensor(const Tensor& t, PartialTensorShape* out) { if (t.shape() == TensorShape({})) { if ((t.dtype() == DT_INT32 && t.scalar<int32>()() == -1) || (t.dtype() == DT_INT64 && t.scalar<int64_t>()() == -1)) { *out = PartialTensorShape(); return OkStatus(); } return er...
Status TensorShapeFromTensor(const Tensor& t, PartialTensorShape* out) { if (t.shape() == TensorShape({})) { if ((t.dtype() == DT_INT32 && t.scalar<int32>()() == -1) || (t.dtype() == DT_INT64 && t.scalar<int64_t>()() == -1)) { *out = PartialTensorShape(); return OkStatus(); } return errors::InvalidArgument( "The only v...
CVE-2022-35998
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8ab75973eca45f7300382bd415948ef1
tensorflow/tensorflow
27a65a43cf763897fecfa5cdb5cc653fc5dd0346
1,658,341,958
tensorflow/core/kernels/conv_grad_input_ops.h
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& input_sizes = context->input(0); const Tensor& filter = context->input(1); const Tensor& out_backprop = context->input(2); TensorShape input_shape; OP_REQUIRES_OK(context, Conv2DBackpropComputeInputShape(input_sizes,...
void Compute(OpKernelContext* context) override { const Tensor& input_sizes = context->input(0); const Tensor& filter = context->input(1); const Tensor& out_backprop = context->input(2); TensorShape input_shape; OP_REQUIRES_OK(context, Conv2DBackpropComputeInputShape(input_sizes, filter.shape(), out_backprop.shape(), d...
CVE-2022-35999
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
a3a2a7e24ccb703d547aecb0e0e15d63
tensorflow/tensorflow
da0d65cdc1270038e72157ba35bf74b85d9bda11
1,658,202,066
tensorflow/core/kernels/image/draw_bounding_box_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& images = context->input(0); const Tensor& boxes = context->input(1); const int64_t depth = images.dim_size(3); OP_REQUIRES(context, images.dims() == 4, errors::InvalidArgument("The rank of the images should be 4")); OP_...
void Compute(OpKernelContext* context) override { const Tensor& images = context->input(0); const Tensor& boxes = context->input(1); const int64_t depth = images.dim_size(3); OP_REQUIRES(context, images.dims() == 4, errors::InvalidArgument("The rank of the images should be 4")); OP_REQUIRES( context, boxes.dims() == 3,...
CVE-2022-36001
CWE-617
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5b0882d514e03f348039175330883fb9
tensorflow/tensorflow
4419d10d576adefa36b0e0a9425d2569f7c0189f
1,658,159,317
tensorflow/core/kernels/batch_kernels.cc
Compute
cpp
Status Compute(OpKernelContext* context, AsyncOpKernel::DoneCallback done) { const Tensor& data_t = context->input(0); const Tensor& batch_index_t = context->input(1); if (batch_index_t.shape().dim_size(0) > data_t.shape().dim_size(0)) { return errors::InvalidArgument( "Wrong shape for inde...
Status Compute(OpKernelContext* context, AsyncOpKernel::DoneCallback done) { const Tensor& data_t = context->input(0); const Tensor& batch_index_t = context->input(1); if (batch_index_t.shape().dim_size(0) > data_t.shape().dim_size(0)) { return errors::InvalidArgument( "Wrong shape for index tensor. Expected 0th dimens...
CVE-2022-36002
CWE-617
SINGLE_FUNCTION_NO_MENTION
false