label int64 | source_dataset string | function_id string | repo string | commit_hash string | commit_date int64 | 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 | 6578853c86117061d576d7ec36be4458 | pcmacdon/jsish | 852f75d792cc9b15ca2e5d39e4724f8a656398eb | 1,640,559,104 | src/jsiCmds.c | consoleInputCmd | c | static Jsi_RC consoleInputCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this,
Jsi_Value **ret, Jsi_Func *funcPtr)
{
char buf[1024];
char *cp, *p = buf;
buf[0] = 0;
Jsi_Value *v = Jsi_ValueArrayIndex(interp, args, 0);
if (v) {
if (interp->isSafe)
return Jsi_LogError("li... | static Jsi_RC consoleInputCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { char buf[1024]; char *cp, *p = buf; buf[0] = 0; Jsi_Value *v = Jsi_ValueArrayIndex(interp, args, 0); if (v) { if (interp->isSafe) return Jsi_LogError("line edit not available in safe mode"); if (Js... | CVE-2021-46481 | CWE-401 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b436e78a72eb35c59f0bd8247600569e | pcmacdon/jsish | e65cad64f992b4cb2b7fb5f8a1e4b6ae13acf1be | 1,640,560,997 | src/jsiRegexp.c | RegExp_constructor | c | static Jsi_RC RegExp_constructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this,
Jsi_Value **ret, Jsi_Func *funcPtr)
{
Jsi_Value *target;
if (Jsi_FunctionIsConstructor(funcPtr))
target = _this;
else {
Jsi_Obj *o = Jsi_ObjNewType(interp, JSI_OT_REGEXP);
Jsi_ValueMakeOb... | static Jsi_RC RegExp_constructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { Jsi_Value *target; if (Jsi_FunctionIsConstructor(funcPtr)) target = _this; else { Jsi_Obj *o = Jsi_ObjNewType(interp, JSI_OT_REGEXP); Jsi_ValueMakeObject(interp, ret, o); target = *ret; } Jsi_Va... | CVE-2021-46483 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d486a95995853dc40536c1725dfc81e9 | vim/vim | fe6fb267e6ee5c5da2f41889e4e0e0ac5bf4b89d | 1,643,044,572 | src/eval.c | eval7 | c | static int
eval7(
char_u **arg,
typval_T *rettv,
evalarg_T *evalarg,
int want_string) // after "." operator
{
int evaluate = evalarg != NULL
&& (evalarg->eval_flags & EVAL_EVALUATE);
int len;
char_u *s;
char_u *name_start = NULL;
char_u *start_leader, *end_leader;
in... | static int eval7( char_u **arg, typval_T *rettv, evalarg_T *evalarg, int want_string) { int evaluate = evalarg != NULL && (evalarg->eval_flags & EVAL_EVALUATE); int len; char_u *s; char_u *name_start = NULL; char_u *start_leader, *end_leader; int ret = OK; char_u *alias; rettv->v_type = VAR_UNKNOWN; start_leader = *arg... | CVE-2022-0351 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a3926ae3f203b2422bc7547099990e5b | vim/vim | 85b6747abc15a7a81086db31289cf1b8b17e6cb1 | 1,643,108,102 | src/ex_getln.c | init_ccline | c | static int
init_ccline(int firstc, int indent)
{
ccline.overstrike = FALSE; // always start in insert mode
/*
* set some variables for redrawcmd()
*/
ccline.cmdfirstc = (firstc == '@' ? 0 : firstc);
ccline.cmdindent = (firstc > 0 ? indent : 0);
// alloc initial ccline.cmdbuff
al... | static int init_ccline(int firstc, int indent) { ccline.overstrike = FALSE; ccline.cmdfirstc = (firstc == '@' ? 0 : firstc); ccline.cmdindent = (firstc > 0 ? indent : 0); alloc_cmdbuff(exmode_active ? 250 : indent + 1); if (ccline.cmdbuff == NULL) return FAIL; ccline.cmdlen = ccline.cmdpos = 0; ccline.cmdbuff[0] = NUL;... | CVE-2022-0359 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e9062d1d6e8eb7242f4b3d787d45ced1 | vim/vim | dc5490e2cbc8c16022a23b449b48c1bd0083f366 | 1,643,115,173 | src/ex_cmds.c | ex_copy | c | void
ex_copy(linenr_T line1, linenr_T line2, linenr_T n)
{
linenr_T count;
char_u *p;
count = line2 - line1 + 1;
if ((cmdmod.cmod_flags & CMOD_LOCKMARKS) == 0)
{
curbuf->b_op_start.lnum = n + 1;
curbuf->b_op_end.lnum = n + count;
curbuf->b_op_start.col = curbuf->b_op_end.col = 0;
}
/*
... | void ex_copy(linenr_T line1, linenr_T line2, linenr_T n) { linenr_T count; char_u *p; count = line2 - line1 + 1; if ((cmdmod.cmod_flags & CMOD_LOCKMARKS) == 0) { curbuf->b_op_start.lnum = n + 1; curbuf->b_op_end.lnum = n + count; curbuf->b_op_start.col = curbuf->b_op_end.col = 0; } if (u_save(n, n + 1) == FAIL) return;... | CVE-2022-0361 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8145436cca0d222d329c8cc855e78399 | pjsip/pjproject | 077b465c33f0aec05a49cd2ca456f9a1b112e896 | 1,643,171,337 | pjlib-util/src/pjlib-util/scanner.c | pj_scan_get_char | c | PJ_DEF(int) pj_scan_get_char( pj_scanner *scanner )
{
int chr = *scanner->curptr;
if (!chr) {
pj_scan_syntax_err(scanner);
return 0;
}
++scanner->curptr;
if (PJ_SCAN_IS_PROBABLY_SPACE(*scanner->curptr) && scanner->skip_ws) {
pj_scan_skip_whitespace(scanner);
}
return chr;
} | PJ_DEF(int) pj_scan_get_char( pj_scanner *scanner ) { int chr = *scanner->curptr; if (!chr) { pj_scan_syntax_err(scanner); return 0; } ++scanner->curptr; if (PJ_SCAN_IS_PROBABLY_SPACE(*scanner->curptr) && scanner->skip_ws) { pj_scan_skip_whitespace(scanner); } return chr; } | CVE-2022-21723 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c5501cc8bcb137c1d689c3ef9916a6eb | pcmacdon/jsish | 95baccfd6d0a5bb7ef661cb350aec8a065209549 | 1,640,569,389 | src/jsiRegexp.c | RegexpExecCmd | c | static Jsi_RC RegexpExecCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this,
Jsi_Value **ret, Jsi_Func *funcPtr)
{
int skip = 0;
Jsi_Value *v;
ChkRegexp(_this, funcPtr, v);
/* TODO: add lastIndex support. */
int slen;
char *str = Jsi_ValueString(interp,Jsi_ValueArrayIndex(interp, args,... | static Jsi_RC RegexpExecCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { int skip = 0; Jsi_Value *v; ChkRegexp(_this, funcPtr, v); int slen; char *str = Jsi_ValueString(interp,Jsi_ValueArrayIndex(interp, args, skip), &slen); if (!str) return Jsi_LogError("expected string"... | CVE-2021-46487 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 71facccf2284df188435f866d8f48df1 | pcmacdon/jsish | 597d5eb2985acc543714cfc819c5421e15104313 | 1,640,573,044 | src/jsiEval.c | jsi_ValueObjKeyAssign | c | static Jsi_RC jsi_ValueObjKeyAssign(Jsi_Interp *interp, Jsi_Value *target, Jsi_Value *keyval, Jsi_Value *value, int flag)
{
/* TODO: array["1"] also extends the length of array? */
const char *kstr = NULL;
int arrayindex = -1;
if (keyval->vt == JSI_VT_NUMBER && Jsi_NumberIsInteger(keyval->d.num) &&... | static Jsi_RC jsi_ValueObjKeyAssign(Jsi_Interp *interp, Jsi_Value *target, Jsi_Value *keyval, Jsi_Value *value, int flag) { const char *kstr = NULL; int arrayindex = -1; if (keyval->vt == JSI_VT_NUMBER && Jsi_NumberIsInteger(keyval->d.num) && keyval->d.num >= 0) { arrayindex = (int)keyval->d.num; if (arrayindex >= 0 &&... | CVE-2021-46494 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b4a1a8600eecb12de4e4db140363dcf6 | pcmacdon/jsish | 779c601c6645353bab7a8d1acba2197ddf79d26f | 1,640,650,797 | src/jsiInterp.c | jsiInterpDelete | c | static Jsi_RC jsiInterpDelete(Jsi_Interp* interp, void *unused)
{
SIGASSERT(interp,INTERP);
bool isMainInt = (interp == jsiIntData.mainInterp);
int mainFlag = (isMainInt ? 2 : 1);
if (isMainInt)
DeleteAllInterps();
if (interp->opts.initProc)
(*interp->opts.initProc)(interp, mainFlag)... | static Jsi_RC jsiInterpDelete(Jsi_Interp* interp, void *unused) { SIGASSERT(interp,INTERP); bool isMainInt = (interp == jsiIntData.mainInterp); int mainFlag = (isMainInt ? 2 : 1); if (isMainInt) DeleteAllInterps(); if (interp->opts.initProc) (*interp->opts.initProc)(interp, mainFlag); jsiIntData.delInterp = interp; if ... | CVE-2021-46495 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3d40e579f23c1b5d721fc70824c63e55 | pcmacdon/jsish | 1b2a9e2f35ecd5041e1c40b376a3d2959df73c24 | 1,640,620,286 | src/jsiNumber.c | NumberConstructor | c | static Jsi_RC NumberConstructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this,
Jsi_Value **ret, Jsi_Func *funcPtr)
{
if (Jsi_FunctionIsConstructor(funcPtr)) {
Jsi_Number nv = 0.0;
Jsi_Value *v = Jsi_ValueArrayIndex(interp, args, 0);
if (v) {
Jsi_ValueToNumber(interp, ... | static Jsi_RC NumberConstructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { if (Jsi_FunctionIsConstructor(funcPtr)) { Jsi_Number nv = 0.0; Jsi_Value *v = Jsi_ValueArrayIndex(interp, args, 0); if (v) { Jsi_ValueToNumber(interp, v); nv = v->d.num; } Jsi_ValueToObject(inter... | CVE-2021-46497 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b43b6bfa218944ccec27ba04d3001afe | pcmacdon/jsish | 571601956737c6e53f641f774f59a3ed68b2fb32 | 1,640,649,270 | src/jsiUserObj.c | jsi_UserObjDelete | c | Jsi_RC jsi_UserObjDelete(Jsi_Interp *interp, void *data)
{
UserObjReg* ptr = (UserObjReg*)data;
SIGASSERT(ptr, USER_REG);
Jsi_Hash *tblPtr = ptr->hashPtr;
Jsi_HashEntry *hPtr;
Jsi_HashSearch search;
for (hPtr = Jsi_HashSearchFirst(tblPtr, &search);
hPtr != NULL; hPtr = Jsi_HashSearchNext... | Jsi_RC jsi_UserObjDelete(Jsi_Interp *interp, void *data) { UserObjReg* ptr = (UserObjReg*)data; SIGASSERT(ptr, USER_REG); Jsi_Hash *tblPtr = ptr->hashPtr; Jsi_HashEntry *hPtr; Jsi_HashSearch search; for (hPtr = Jsi_HashSearchFirst(tblPtr, &search); hPtr != NULL; hPtr = Jsi_HashSearchNext(&search)) { void *dptr; Jsi_Obj... | CVE-2021-46498 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | cd5d09a46157ceb332e1613c45523b69 | pcmacdon/jsish | afe90f9e724320e307788f00570c59692041cb41 | 1,640,551,819 | src/jsiString.c | StringReplaceCmd | c | static Jsi_RC StringReplaceCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this,
Jsi_Value **ret, Jsi_Func *funcPtr)
{
/* Now handles perl regex flag extensions.*/
const char *source_str;
int source_len, bLen;
const char *replace_str = NULL;
int replace_len;
int regexec_flags = 0;
J... | static Jsi_RC StringReplaceCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { const char *source_str; int source_len, bLen; const char *replace_str = NULL; int replace_len; int regexec_flags = 0; Jsi_Value *seq, *strVal; Jsi_DString dStr = {}; regex_t *regex; Jsi_Regex *re;... | CVE-2021-46502 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5af3a43263222a2d02b7ce71e0711a80 | pcmacdon/jsish | 7df22ab2fad6bf7cecf96465caede6401b9b451c | 1,640,548,639 | src/jsiString.c | StringConstructor | c | static Jsi_RC StringConstructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this,
Jsi_Value **ret, Jsi_Func *funcPtr)
{
if (Jsi_FunctionIsConstructor(funcPtr)) {
const char *nv = "";
int len = -1;
if (Jsi_ValueGetLength(interp, args) > 0) {
Jsi_Value *v = Jsi_ValueArrayI... | static Jsi_RC StringConstructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { if (Jsi_FunctionIsConstructor(funcPtr)) { const char *nv = ""; int len = -1; if (Jsi_ValueGetLength(interp, args) > 0) { Jsi_Value *v = Jsi_ValueArrayIndex(interp, args, 0); if (v) { nv = Jsi_Val... | CVE-2021-46503 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5c8706a4309f24fdd268a6d209af50b8 | pcmacdon/jsish | 48b86dbeb287dca8e5451cb6d6a60e98156c5c8b | 1,640,557,225 | src/jsiEval.c | jsiEvalSubscript | c | static Jsi_RC jsiEvalSubscript(Jsi_Interp *interp, Jsi_Value *src, Jsi_Value *idx, jsi_OpCode *ip, jsi_OpCode *end,
Jsi_Value *currentScope)
{
Jsi_RC rc = JSI_OK;
Jsi_String *str = jsi_ValueString(src);
// A string index "abc"[1]
if (str && Jsi_ValueIsNumber(interp, idx)) {
int bLen, cLen;
... | static Jsi_RC jsiEvalSubscript(Jsi_Interp *interp, Jsi_Value *src, Jsi_Value *idx, jsi_OpCode *ip, jsi_OpCode *end, Jsi_Value *currentScope) { Jsi_RC rc = JSI_OK; Jsi_String *str = jsi_ValueString(src); if (str && Jsi_ValueIsNumber(interp, idx)) { int bLen, cLen; char bbuf[10], *cp = Jsi_ValueString(interp, src, &bLen)... | CVE-2021-46504 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 16dd752e149e686678e3319c63dac6f1 | vim/vim | 806d037671e133bd28a7864248763f643967973a | 1,643,139,916 | src/edit.c | bracketed_paste | c | int
bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
{
int c;
char_u buf[NUMBUFLEN + MB_MAXBYTES];
int idx = 0;
char_u *end = find_termcode((char_u *)"PE");
int ret_char = -1;
int save_allow_keys = allow_keys;
int save_paste = p_paste;
// If the end code is too long we c... | int bracketed_paste(paste_mode_T mode, int drop, garray_T *gap) { int c; char_u buf[NUMBUFLEN + MB_MAXBYTES]; int idx = 0; char_u *end = find_termcode((char_u *)"PE"); int ret_char = -1; int save_allow_keys = allow_keys; int save_paste = p_paste; if (end != NULL && STRLEN(end) >= NUMBUFLEN) end = NULL; ++no_mapping; al... | CVE-2022-0392 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 6419dbb51ec4e6d0addc6d65ddde53a9 | vim/vim | a4bc2dd7cccf5a4a9f78b58b6f35a45d17164323 | 1,643,308,036 | src/getchar.c | delete_buff_tail | c | static void
delete_buff_tail(buffheader_T *buf, int slen)
{
int len = (int)STRLEN(buf->bh_curr->b_str);
if (len >= slen)
{
buf->bh_curr->b_str[len - slen] = NUL;
buf->bh_space += slen;
}
} | static void delete_buff_tail(buffheader_T *buf, int slen) { int len = (int)STRLEN(buf->bh_curr->b_str); if (len >= slen) { buf->bh_curr->b_str[len - slen] = NUL; buf->bh_space += slen; } } | CVE-2022-0393 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e4cef4c9408355551d3b1b11fd2d8fbd | vim/vim | 44db8213d38c39877d2148eff6a72f4beccfb94e | 1,643,142,377 | src/register.c | yank_copy_line | c | static int
yank_copy_line(struct block_def *bd, long y_idx, int exclude_trailing_space)
{
char_u *pnew;
if (exclude_trailing_space)
bd->endspaces = 0;
if ((pnew = alloc(bd->startspaces + bd->endspaces + bd->textlen + 1))
== NULL)
return FAIL;
y_current->y_array[y_idx] = pnew;
vim_me... | static int yank_copy_line(struct block_def *bd, long y_idx, int exclude_trailing_space) { char_u *pnew; if (exclude_trailing_space) bd->endspaces = 0; if ((pnew = alloc(bd->startspaces + bd->endspaces + bd->textlen + 1)) == NULL) return FAIL; y_current->y_array[y_idx] = pnew; vim_memset(pnew, ' ', (size_t)bd->startspac... | CVE-2022-0407 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3b21a283354449c06e1da507eaf4ff78 | vim/vim | 06f15416bb8d5636200a10776f1752c4d6e49f31 | 1,643,449,919 | src/spellsuggest.c | suggest_trie_walk | c | static void
suggest_trie_walk(
suginfo_T *su,
langp_T *lp,
char_u *fword,
int soundfold)
{
char_u tword[MAXWLEN]; // good word collected so far
trystate_T stack[MAXWLEN];
char_u preword[MAXWLEN * 3]; // word found with proper case;
// concatenation of prefix compound
... | static void suggest_trie_walk( suginfo_T *su, langp_T *lp, char_u *fword, int soundfold) { char_u tword[MAXWLEN]; trystate_T stack[MAXWLEN]; char_u preword[MAXWLEN * 3]; char_u compflags[MAXWLEN]; trystate_T *sp; int newscore; int score; char_u *byts, *fbyts, *pbyts; idx_T *idxs, *fidxs, *pidxs; int depth; int c, c2, c... | CVE-2022-0408 | CWE-121;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5234788e9fd4f3e7418063bac7caa130 | vim/vim | 37f47958b8a2a44abc60614271d9537e7f14e51a | 1,643,462,511 | src/ex_cmds.c | ex_substitute | c | void
ex_substitute(exarg_T *eap)
{
linenr_T lnum;
long i = 0;
regmmatch_T regmatch;
static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE,
FALSE, FALSE, 0};
#ifdef FEAT_EVAL
subflags_T subflags_save;
#endif
int save_do_all; // remember user specified 'g' flag
int sav... | void ex_substitute(exarg_T *eap) { linenr_T lnum; long i = 0; regmmatch_T regmatch; static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, 0}; #ifdef FEAT_EVAL subflags_T subflags_save; #endif int save_do_all; int save_do_ask; char_u *pat = NULL, *sub = NULL; int delimiter; int sublen; int got_qu... | CVE-2022-0413 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7bd253bf3dd75ced7b5cd2a0018b32f8 | radareorg/radare2 | feaa4e7f7399c51ee6f52deb84dc3f795b4035d6 | 1,643,589,170 | libr/bin/p/bin_xnu_kernelcache.c | load_buffer | c | static bool load_buffer(RBinFile *bf, void **bin_obj, RBuffer *buf, ut64 loadaddr, Sdb *sdb) {
RBuffer *fbuf = r_buf_ref (buf);
struct MACH0_(opts_t) opts;
MACH0_(opts_set_default) (&opts, bf);
struct MACH0_(obj_t) *main_mach0 = MACH0_(new_buf) (fbuf, &opts);
if (!main_mach0) {
return false;
}
RRebaseInfo *re... | static bool load_buffer(RBinFile *bf, void **bin_obj, RBuffer *buf, ut64 loadaddr, Sdb *sdb) { RBuffer *fbuf = r_buf_ref (buf); struct MACH0_(opts_t) opts; MACH0_(opts_set_default) (&opts, bf); struct MACH0_(obj_t) *main_mach0 = MACH0_(new_buf) (fbuf, &opts); if (!main_mach0) { return false; } RRebaseInfo *rebase_info ... | CVE-2022-0419 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | cad2220e7eb4c72473fba03d038400eb | luanti-org/luanti | b5956bde259faa240a81060ff4e598e25ad52dae | 1,611,847,957 | src/itemstackmetadata.cpp | ItemStackMetadata::setString | cpp | bool ItemStackMetadata::setString(const std::string &name, const std::string &var)
{
bool result = Metadata::setString(name, var);
if (name == TOOLCAP_KEY)
updateToolCapabilities();
return result;
} | bool ItemStackMetadata::setString(const std::string &name, const std::string &var) { bool result = Metadata::setString(name, var); if (name == TOOLCAP_KEY) updateToolCapabilities(); return result; } | CVE-2022-24300 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0bfaaab97219435b013257ff7b413278 | luanti-org/luanti | 3693b6871eba268ecc79b3f52d00d3cefe761131 | 1,598,708,463 | src/network/serverpackethandler.cpp | Server::handleCommand_InventoryAction | cpp | void Server::handleCommand_InventoryAction(NetworkPacket* pkt)
{
session_t peer_id = pkt->getPeerId();
RemotePlayer *player = m_env->getPlayer(peer_id);
if (player == NULL) {
errorstream <<
"Server::ProcessData(): Canceling: No player for peer_id=" <<
peer_id << " disconnecting peer!" << std::endl;
Discon... | void Server::handleCommand_InventoryAction(NetworkPacket* pkt) { session_t peer_id = pkt->getPeerId(); RemotePlayer *player = m_env->getPlayer(peer_id); if (player == NULL) { errorstream << "Server::ProcessData(): Canceling: No player for peer_id=" << peer_id << " disconnecting peer!" << std::endl; DisconnectPeer(peer_... | CVE-2022-24301 | CWE-276 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ad1797124c68112d0253cd248dd1db82 | tensorflow/tensorflow | 23968a8bf65b009120c43b5ebcceaf52dbc9e943 | 1,637,388,971 | tensorflow/core/kernels/dequantize_op.cc | Compute | cpp | void Compute(OpKernelContext* ctx) override {
const Tensor& input = ctx->input(0);
const Tensor& input_min_tensor = ctx->input(1);
const Tensor& input_max_tensor = ctx->input(2);
int num_slices = 1;
if (axis_ > -1) {
num_slices = input.dim_size(axis_);
}
OP_REQUIRES(ctx, input_min_ten... | void Compute(OpKernelContext* ctx) override { const Tensor& input = ctx->input(0); const Tensor& input_min_tensor = ctx->input(1); const Tensor& input_max_tensor = ctx->input(2); int num_slices = 1; if (axis_ > -1) { num_slices = input.dim_size(axis_); } OP_REQUIRES(ctx, input_min_tensor.NumElements() == num_slices, er... | CVE-2022-21726 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5ad437988df05f481d0b90cd7767295a | tensorflow/tensorflow | 002408c3696b173863228223d535f9de72a101a9 | 1,638,503,834 | 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-21730 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 09388b62b05d165fe358830d3ad1930d | tensorflow/tensorflow | f68fdab93fb7f4ddb4eb438c8fe052753c9413e8 | 1,638,316,170 | tensorflow/core/kernels/string_ngrams_op.cc | Compute | cpp | void Compute(tensorflow::OpKernelContext* context) override {
for (int ngram_width : ngram_widths_) {
OP_REQUIRES(
context, ngram_width > 0,
errors::InvalidArgument("ngram_widths must contain positive values"));
}
const tensorflow::Tensor* data;
OP_REQUIRES_OK(context, context... | void Compute(tensorflow::OpKernelContext* context) override { for (int ngram_width : ngram_widths_) { OP_REQUIRES( context, ngram_width > 0, errors::InvalidArgument("ngram_widths must contain positive values")); } const tensorflow::Tensor* data; OP_REQUIRES_OK(context, context->input("data", &data)); const auto& input_... | CVE-2022-21733 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ce792eb3cdcfe762593311080c6c6714 | tensorflow/tensorflow | 965b97e4a9650495cda5a8c210ef6684b4b9eceb | 1,639,090,151 | tensorflow/core/kernels/data/sparse_tensor_slice_dataset_op.cc | MakeDataset | cpp | void MakeDataset(OpKernelContext* ctx, DatasetBase** output) override {
// Create a new SparseTensorSliceDatasetOp::Dataset, insert it in
// the step container, and return it as the output.
const Tensor* indices;
OP_REQUIRES_OK(ctx, ctx->input("indices", &indices));
const Tensor* values;
OP_REQU... | void MakeDataset(OpKernelContext* ctx, DatasetBase** output) override { const Tensor* indices; OP_REQUIRES_OK(ctx, ctx->input("indices", &indices)); const Tensor* values; OP_REQUIRES_OK(ctx, ctx->input("values", &values)); const Tensor* dense_shape; OP_REQUIRES_OK(ctx, ctx->input("dense_shape", &dense_shape)); OP_REQUI... | CVE-2022-21736 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 268967d9f4ebfb2fa863e02e479e9e85 | tensorflow/tensorflow | 1b54cadd19391b60b6fcccd8d076426f7221d5e8 | 1,639,154,799 | tensorflow/core/kernels/sparse_dense_binary_op_shared.cc | Compute | cpp | void Compute(OpKernelContext *ctx) override {
const Tensor *indices_t, *values_t, *shape_t, *dense_t;
OP_REQUIRES_OK(ctx, ctx->input("sp_indices", &indices_t));
OP_REQUIRES_OK(ctx, ctx->input("sp_values", &values_t));
OP_REQUIRES_OK(ctx, ctx->input("sp_shape", &shape_t));
OP_REQUIRES_OK(ctx, ctx->in... | void Compute(OpKernelContext *ctx) override { const Tensor *indices_t, *values_t, *shape_t, *dense_t; OP_REQUIRES_OK(ctx, ctx->input("sp_indices", &indices_t)); OP_REQUIRES_OK(ctx, ctx->input("sp_values", &values_t)); OP_REQUIRES_OK(ctx, ctx->input("sp_shape", &shape_t)); OP_REQUIRES_OK(ctx, ctx->input("dense", &dense_... | CVE-2022-23567 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 69d389c7a4bd426ff8431c2c28dc75d6 | tensorflow/tensorflow | e952a89b7026b98fe8cbe626514a93ed68b7c510 | 1,639,154,808 | tensorflow/core/kernels/sparse_dense_binary_op_shared.cc | Compute | cpp | void Compute(OpKernelContext *ctx) override {
const Tensor *indices_t, *values_t, *shape_t, *dense_t;
OP_REQUIRES_OK(ctx, ctx->input("sp_indices", &indices_t));
OP_REQUIRES_OK(ctx, ctx->input("sp_values", &values_t));
OP_REQUIRES_OK(ctx, ctx->input("sp_shape", &shape_t));
OP_REQUIRES_OK(ctx, ctx->in... | void Compute(OpKernelContext *ctx) override { const Tensor *indices_t, *values_t, *shape_t, *dense_t; OP_REQUIRES_OK(ctx, ctx->input("sp_indices", &indices_t)); OP_REQUIRES_OK(ctx, ctx->input("sp_values", &values_t)); OP_REQUIRES_OK(ctx, ctx->input("sp_shape", &shape_t)); OP_REQUIRES_OK(ctx, ctx->input("dense", &dense_... | CVE-2022-23567 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dd04aead72263e967392bc8279d3fa97 | tensorflow/tensorflow | f57315566d7094f322b784947093406c2aea0d7d | 1,638,496,678 | tensorflow/core/kernels/map_stage_op.cc | Compute | cpp | void Compute(OpKernelContext* ctx) override {
StagingMap<Ordered>* map = nullptr;
OP_REQUIRES_OK(ctx, GetStagingMap(ctx, def(), &map));
core::ScopedUnref scope(map);
// Pop a random (key, value) off the map
typename StagingMap<Ordered>::KeyType key;
typename StagingMap<Ordered>::Tuple tuple;
... | void Compute(OpKernelContext* ctx) override { StagingMap<Ordered>* map = nullptr; OP_REQUIRES_OK(ctx, GetStagingMap(ctx, def(), &map)); core::ScopedUnref scope(map); typename StagingMap<Ordered>::KeyType key; typename StagingMap<Ordered>::Tuple tuple; const Tensor* indices_tensor; OP_REQUIRES_OK(ctx, ctx->input("indice... | CVE-2022-21734 | CWE-843 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 583311ead4f541e461fd5b5e1c89d2ef | tensorflow/tensorflow | 6f4d3e8139ec724dbbcb40505891c81dd1052c4a | 1,638,932,642 | tensorflow/core/kernels/count_ops.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& indices = context->input(0);
const Tensor& values = context->input(1);
const Tensor& shape = context->input(2);
const Tensor& weights = context->input(3);
bool use_weights = weights.NumElements() > 0;
OP_REQUIRES(context, TensorSha... | void Compute(OpKernelContext* context) override { const Tensor& indices = context->input(0); const Tensor& values = context->input(1); const Tensor& shape = context->input(2); const Tensor& weights = context->input(3); bool use_weights = weights.NumElements() > 0; OP_REQUIRES(context, TensorShapeUtils::IsMatrix(indices... | CVE-2022-21738 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9f372dce521d01cf23edd4f45e1528de | tensorflow/tensorflow | 2b7100d6cdff36aa21010a82269bc05a6d1cc74a | 1,638,930,978 | tensorflow/core/kernels/count_ops.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& indices = context->input(0);
const Tensor& values = context->input(1);
const Tensor& shape = context->input(2);
const Tensor& weights = context->input(3);
bool use_weights = weights.NumElements() > 0;
OP_REQUIRES(context, TensorSha... | void Compute(OpKernelContext* context) override { const Tensor& indices = context->input(0); const Tensor& values = context->input(1); const Tensor& shape = context->input(2); const Tensor& weights = context->input(3); bool use_weights = weights.NumElements() > 0; OP_REQUIRES(context, TensorShapeUtils::IsMatrix(indices... | CVE-2022-21740 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 216598f4ed1e078c3d4b70110e3cf889 | tensorflow/tensorflow | adbbabdb0d3abb3cdeac69e38a96de1d678b24b3 | 1,638,931,473 | tensorflow/core/kernels/count_ops.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& indices = context->input(0);
const Tensor& values = context->input(1);
const Tensor& shape = context->input(2);
const Tensor& weights = context->input(3);
bool use_weights = weights.NumElements() > 0;
OP_REQUIRES(context, TensorSha... | void Compute(OpKernelContext* context) override { const Tensor& indices = context->input(0); const Tensor& values = context->input(1); const Tensor& shape = context->input(2); const Tensor& weights = context->input(3); bool use_weights = weights.NumElements() > 0; OP_REQUIRES(context, TensorShapeUtils::IsMatrix(indices... | CVE-2022-21740 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 828bf12d82c011a8186e980090eebdc1 | tensorflow/tensorflow | e5b0eec199c2d03de54fd6a7fd9275692218e2bc | 1,639,526,659 | tensorflow/lite/kernels/depthwise_conv.cc | Prepare | cpp | TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
auto* params =
reinterpret_cast<TfLiteDepthwiseConvParams*>(node->builtin_data);
OpData* data = reinterpret_cast<OpData*>(node->user_data);
bool has_bias = NumInputs(node) == 3;
TF_LITE_ENSURE(context, has_bias || NumInputs(node) == 2);
... | TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { auto* params = reinterpret_cast<TfLiteDepthwiseConvParams*>(node->builtin_data); OpData* data = reinterpret_cast<OpData*>(node->user_data); bool has_bias = NumInputs(node) == 3; TF_LITE_ENSURE(context, has_bias || NumInputs(node) == 2); const TfLiteTensor... | CVE-2022-21741 | CWE-369 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1bfa6e30b86326e09503d15bce918347 | gpac/gpac | 71f9871fc210e60df041b58c84572782b4849de9 | 1,643,382,018 | 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, 18)
s32 tag_size = gf_bs_read_u32(bs);
u32 name_size = gf_bs_read_u32(bs);
tag_size -= 8;
if (na... | 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, 18) s32 tag_size = gf_bs_read_u32(bs); u32 name_size = gf_bs_read_u32(bs); tag_size -= 8; if (name_size >= (u32)0xFF... | CVE-2022-24249 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f542be6dbc6d7753b21f083e18b49332 | gpac/gpac | 64a2e1b799352ac7d7aad1989bc06e7b0f2b01db | 1,643,722,103 | src/isomedia/box_code_base.c | gitn_box_del | c | void gitn_box_del(GF_Box *s)
{
u32 i;
GroupIdToNameBox *ptr = (GroupIdToNameBox *)s;
if (ptr == NULL) return;
for (i=0; i<ptr->nb_entries; i++) {
if (ptr->entries[i].name) gf_free(ptr->entries[i].name);
}
if (ptr->entries) gf_free(ptr->entries);
gf_free(ptr);
} | void gitn_box_del(GF_Box *s) { u32 i; GroupIdToNameBox *ptr = (GroupIdToNameBox *)s; if (ptr == NULL) return; for (i=0; i<ptr->nb_entries; i++) { if (ptr->entries[i].name) gf_free(ptr->entries[i].name); } if (ptr->entries) gf_free(ptr->entries); gf_free(ptr); } | CVE-2021-4043 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0e1c1ac60b44f9ed20a7dba1ae350078 | mruby/mruby | ae3c99767a27f5c6c584162e2adc6a5d0eb2c54e | 1,643,848,805 | mrbgems/mruby-compiler/core/codegen.c | gen_hash | c | static int
gen_hash(codegen_scope *s, node *tree, int val, int limit)
{
int slimit = GEN_VAL_STACK_MAX;
if (cursp() >= GEN_LIT_ARY_MAX) slimit = INT16_MAX;
int len = 0;
mrb_bool update = FALSE;
while (tree) {
if (nint(tree->car->car->car) == NODE_KW_REST_ARGS) {
if (len > 0) {
pop_n(len*2);... | static int gen_hash(codegen_scope *s, node *tree, int val, int limit) { int slimit = GEN_VAL_STACK_MAX; if (cursp() >= GEN_LIT_ARY_MAX) slimit = INT16_MAX; int len = 0; mrb_bool update = FALSE; while (tree) { if (nint(tree->car->car->car) == NODE_KW_REST_ARGS) { if (len > 0) { pop_n(len*2); if (!update) { genop_2(s, OP... | CVE-2022-0481 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e5466de8bee183eca6d6146644885b78 | tensorflow/tensorflow | 1de49725a5fc4e48f1a3b902ec3599ee99283043 | 1,640,101,691 | tensorflow/lite/kernels/embedding_lookup_sparse.cc | Eval | cpp | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
auto* params =
reinterpret_cast<TfLiteEmbeddingLookupSparseParams*>(node->builtin_data);
TfLiteTensor* output;
TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, 0, &output));
const TfLiteTensor* ids;
TF_LITE_ENSURE_OK(context, GetInputS... | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { auto* params = reinterpret_cast<TfLiteEmbeddingLookupSparseParams*>(node->builtin_data); TfLiteTensor* output; TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, 0, &output)); const TfLiteTensor* ids; TF_LITE_ENSURE_OK(context, GetInputSafe(context, nod... | CVE-2022-23559 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1181994cd5f8c0c33edd416d97d4c8aa | tensorflow/tensorflow | a4e401da71458d253b05e41f28637b65baf64be4 | 1,640,117,211 | tensorflow/lite/kernels/embedding_lookup_sparse.cc | Eval | cpp | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
auto* params =
reinterpret_cast<TfLiteEmbeddingLookupSparseParams*>(node->builtin_data);
TfLiteTensor* output;
TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, 0, &output));
const TfLiteTensor* ids;
TF_LITE_ENSURE_OK(context, GetInputS... | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { auto* params = reinterpret_cast<TfLiteEmbeddingLookupSparseParams*>(node->builtin_data); TfLiteTensor* output; TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, 0, &output)); const TfLiteTensor* ids; TF_LITE_ENSURE_OK(context, GetInputSafe(context, nod... | CVE-2022-23559 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 90ad782a7457d5352292d16c2b5381ab | tensorflow/tensorflow | 6c0b2b70eeee588591680f5b7d5d38175fd7cdf6 | 1,640,101,837 | tensorflow/lite/kernels/fully_connected.cc | EvalFloat | cpp | TfLiteStatus EvalFloat(TfLiteContext* context, TfLiteNode* node,
TfLiteFullyConnectedParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* output) {
float output_activation_min, ... | TfLiteStatus EvalFloat(TfLiteContext* context, TfLiteNode* node, TfLiteFullyConnectedParams* params, OpData* data, const TfLiteTensor* input, const TfLiteTensor* filter, const TfLiteTensor* bias, TfLiteTensor* output) { float output_activation_min, output_activation_max; CalculateActivationRange(params->activation, &ou... | CVE-2022-23561 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a050bab3a20d2e7ebe5374da396edbe6 | tensorflow/tensorflow | c2b31ff2d3151acb230edc3f5b1832d2c713a9e0 | 1,636,391,650 | tensorflow/core/framework/op_def_util.cc | RepeatedAttrDefEqual | cpp | bool RepeatedAttrDefEqual(
const protobuf::RepeatedPtrField<OpDef::AttrDef>& a1,
const protobuf::RepeatedPtrField<OpDef::AttrDef>& a2) {
std::unordered_map<string, const OpDef::AttrDef*> a1_set;
for (const OpDef::AttrDef& def : a1) {
DCHECK(a1_set.find(def.name()) == a1_set.end())
<< "AttrDef na... | bool RepeatedAttrDefEqual( const protobuf::RepeatedPtrField<OpDef::AttrDef>& a1, const protobuf::RepeatedPtrField<OpDef::AttrDef>& a2) { std::unordered_map<string, const OpDef::AttrDef*> a1_set; for (const OpDef::AttrDef& def : a1) { DCHECK(a1_set.find(def.name()) == a1_set.end()) << "AttrDef names must be unique, but ... | CVE-2022-23565 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 66bcd2d6c55c4f376673b97066246c16 | tensorflow/tensorflow | 97282c6d0d34476b6ba033f961590b783fa184cd | 1,636,375,720 | tensorflow/core/grappler/costs/graph_properties.cc | SetUnknownShape | cpp | Status SetUnknownShape(const NodeDef* node, int output_port) {
shape_inference::ShapeHandle shape =
GetUnknownOutputShape(node, output_port);
InferenceContext* ctx = GetContext(node);
if (ctx == nullptr) {
return errors::InvalidArgument("Missing context");
}
ctx->set_output(output_port... | Status SetUnknownShape(const NodeDef* node, int output_port) { shape_inference::ShapeHandle shape = GetUnknownOutputShape(node, output_port); InferenceContext* ctx = GetContext(node); if (ctx == nullptr) { return errors::InvalidArgument("Missing context"); } ctx->set_output(output_port, shape); return Status::OK(); } | CVE-2022-23566 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5d6a198ed1cc9a05889c4d64c16b8492 | tensorflow/tensorflow | 8a513cec4bec15961fbfdedcaa5376522980455c | 1,636,392,947 | tensorflow/core/framework/full_type_util.cc | SpecializeType | cpp | StatusOr<FullTypeDef> SpecializeType(const AttrSlice& attrs,
const OpDef& op_def) {
FullTypeDef ft;
ft.set_type_id(TFT_PRODUCT);
for (int i = 0; i < op_def.output_arg_size(); i++) {
auto* t = ft.add_args();
*t = op_def.output_arg(i).experimental_full_type();
// ... | StatusOr<FullTypeDef> SpecializeType(const AttrSlice& attrs, const OpDef& op_def) { FullTypeDef ft; ft.set_type_id(TFT_PRODUCT); for (int i = 0; i < op_def.output_arg_size(); i++) { auto* t = ft.add_args(); *t = op_def.output_arg(i).experimental_full_type(); for (int j = 0; j < t->args_size(); j++) { auto* arg = t->mut... | CVE-2022-23570 | CWE-476;CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e62b47cd8ea9fd8354ed45fdb92c5f2f | tensorflow/tensorflow | 5b491cd5e41ad63735161cec9c2a568172c8b6a3 | 1,636,390,288 | tensorflow/core/framework/tensor.cc | Tensor::FromProto | cpp | bool Tensor::FromProto(Allocator* a, const TensorProto& proto) {
CHECK_NOTNULL(a);
TensorBuffer* p = nullptr;
if (!TensorShape::IsValid(proto.tensor_shape())) return false;
if (proto.dtype() == DT_INVALID) return false;
TensorShape shape(proto.tensor_shape());
const int64_t N = shape.num_elements();
if (N... | bool Tensor::FromProto(Allocator* a, const TensorProto& proto) { CHECK_NOTNULL(a); TensorBuffer* p = nullptr; if (!TensorShape::IsValid(proto.tensor_shape())) return false; if (proto.dtype() == DT_INVALID) return false; TensorShape shape(proto.tensor_shape()); const int64_t N = shape.num_elements(); if (N > 0 && proto.... | CVE-2022-23571 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4b7f0d527a0b9512eb22728e0117a16e | tensorflow/tensorflow | cb164786dc891ea11d3a900e90367c339305dc7b | 1,636,392,514 | tensorflow/core/framework/shape_inference.cc | InferenceContext::PreInputInit | cpp | void InferenceContext::PreInputInit(
const OpDef& op_def, const std::vector<const Tensor*>& input_tensors,
const std::vector<ShapeHandle>& input_tensors_as_shapes) {
// TODO(mdan): This is also done at graph construction. Run only here instead?
const auto ret = full_type::SpecializeType(attrs_, op_def);
D... | void InferenceContext::PreInputInit( const OpDef& op_def, const std::vector<const Tensor*>& input_tensors, const std::vector<ShapeHandle>& input_tensors_as_shapes) { const auto ret = full_type::SpecializeType(attrs_, op_def); DCHECK(ret.status().ok()) << "while instantiating types: " << ret.status(); ret_types_ = ret.V... | CVE-2022-23572 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 412a637f3b7bdc9b4364365abc99e147 | tensorflow/tensorflow | ef1d027be116f25e25bb94a60da491c2cf55bd0b | 1,636,481,044 | tensorflow/core/kernels/assign_op.h | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& rhs = context->input(1);
// We always return the input ref.
context->forward_ref_input_to_ref_output(0, 0);
// We can't always know how this value will be used downstream, so make
// conservative assumptions in specifying constraints ... | void Compute(OpKernelContext* context) override { const Tensor& rhs = context->input(1); context->forward_ref_input_to_ref_output(0, 0); AllocatorAttributes attr; if (!relax_constraints_) { attr.set_gpu_compatible(true); attr.set_nic_compatible(true); } { mutex_lock l(*context->input_ref_mutex(0)); const Tensor& old_lh... | CVE-2022-23573 | CWE-908 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a816cd71fb80deab609c68fc5360107d | tensorflow/tensorflow | 92dba16749fae36c246bec3f9ba474d9ddeb7662 | 1,636,652,609 | tensorflow/core/grappler/optimizers/dependency_optimizer.cc | DependencyOptimizer::SafeToRemoveIdentity | cpp | bool DependencyOptimizer::SafeToRemoveIdentity(const NodeDef& node) const {
if (!IsIdentity(node) && !IsIdentityN(node)) {
return true;
}
if (nodes_to_preserve_.find(node.name()) != nodes_to_preserve_.end()) {
return false;
}
if (!fetch_nodes_known_) {
// The output values of this node may be nee... | bool DependencyOptimizer::SafeToRemoveIdentity(const NodeDef& node) const { if (!IsIdentity(node) && !IsIdentityN(node)) { return true; } if (nodes_to_preserve_.find(node.name()) != nodes_to_preserve_.end()) { return false; } if (!fetch_nodes_known_) { return false; } if (node.input_size() < 1) { return false; } const ... | CVE-2022-23579 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7bb03111cb706769356941065a16e080 | tensorflow/tensorflow | 1361fb7e29449629e1df94d44e0427ebec8c83c7 | 1,636,584,777 | tensorflow/core/framework/shape_inference.cc | InferenceContext::InternalMakeShapeFromTensor | cpp | Status InferenceContext::InternalMakeShapeFromTensor(
bool treat_unknown_scalar_tensor_as_unknown_shape, const Tensor* t,
ShapeHandle tensor_shape, ShapeHandle* out) {
// Only callers who have set
if (!treat_unknown_scalar_tensor_as_unknown_shape) {
TF_RETURN_IF_ERROR(WithRank(tensor_shape, 1, &tensor_s... | Status InferenceContext::InternalMakeShapeFromTensor( bool treat_unknown_scalar_tensor_as_unknown_shape, const Tensor* t, ShapeHandle tensor_shape, ShapeHandle* out) { if (!treat_unknown_scalar_tensor_as_unknown_shape) { TF_RETURN_IF_ERROR(WithRank(tensor_shape, 1, &tensor_shape)); } if (t == nullptr) { if (Rank(tensor... | CVE-2022-23580 | CWE-1284 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 291357a48683584a490c39e0e967021b | tensorflow/tensorflow | a7c02f1a9bbc35473969618a09ee5f9f5d3e52d9 | 1,636,701,879 | tensorflow/core/kernels/cwise_ops_common.h | Compute | cpp | void Compute(OpKernelContext* ctx) override {
const Tensor& input_0 = ctx->input(0);
const Tensor& input_1 = ctx->input(1);
const Device& eigen_device = ctx->eigen_device<Device>();
bool error = false;
bool* const error_ptr = Functor::has_errors ? &error : nullptr;
// NOTE: Handle three simple ... | void Compute(OpKernelContext* ctx) override { const Tensor& input_0 = ctx->input(0); const Tensor& input_1 = ctx->input(1); const Device& eigen_device = ctx->eigen_device<Device>(); bool error = false; bool* const error_ptr = Functor::has_errors ? &error : nullptr; if (input_0.shape() == input_1.shape()) { Tensor* out;... | CVE-2022-23583 | CWE-843 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 554d79432ac9f93161a82586ff553c91 | tensorflow/tensorflow | e746adbfcfee15e9cfdb391ff746c765b99bdf9b | 1,636,683,139 | tensorflow/core/kernels/image/decode_image_op.cc | DecodePngV2 | cpp | void DecodePngV2(OpKernelContext* context, StringPiece input) {
int channel_bits = (data_type_ == DataType::DT_UINT8) ? 8 : 16;
png::DecodeContext decode;
OP_REQUIRES(
context, png::CommonInitDecode(input, channels_, channel_bits, &decode),
errors::InvalidArgument("Invalid PNG. Failed to ini... | void DecodePngV2(OpKernelContext* context, StringPiece input) { int channel_bits = (data_type_ == DataType::DT_UINT8) ? 8 : 16; png::DecodeContext decode; OP_REQUIRES( context, png::CommonInitDecode(input, channels_, channel_bits, &decode), errors::InvalidArgument("Invalid PNG. Failed to initialize decoder.")); const i... | CVE-2022-23584 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9041968ee6b1b6f6c9e95e376fd3540b | tensorflow/tensorflow | ab51e5b813573dc9f51efa335aebcf2994125ee9 | 1,636,683,872 | tensorflow/core/kernels/image/decode_image_op.cc | DecodePngV2 | cpp | void DecodePngV2(OpKernelContext* context, StringPiece input) {
int channel_bits = (data_type_ == DataType::DT_UINT8) ? 8 : 16;
png::DecodeContext decode;
OP_REQUIRES(
context, png::CommonInitDecode(input, channels_, channel_bits, &decode),
errors::InvalidArgument("Invalid PNG. Failed to ini... | void DecodePngV2(OpKernelContext* context, StringPiece input) { int channel_bits = (data_type_ == DataType::DT_UINT8) ? 8 : 16; png::DecodeContext decode; OP_REQUIRES( context, png::CommonInitDecode(input, channels_, channel_bits, &decode), errors::InvalidArgument("Invalid PNG. Failed to initialize decoder.")); const i... | CVE-2022-23585 | CWE-401 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 194692f70797eabffdb61f0d3e8e5729 | tensorflow/tensorflow | dcc21c7bc972b10b6fb95c2fb0f4ab5a59680ec2 | 1,636,730,378 | tensorflow/core/framework/function.cc | BuildInputArgIndex | cpp | Status BuildInputArgIndex(const OpDef::ArgDef& arg_def, AttrSlice attr_values,
const FunctionDef::ArgAttrs* arg_attrs,
bool ints_on_device,
int64_t resource_arg_unique_id) {
bool is_type_list;
DataTypeVector dtypes;
TF_RETUR... | Status BuildInputArgIndex(const OpDef::ArgDef& arg_def, AttrSlice attr_values, const FunctionDef::ArgAttrs* arg_attrs, bool ints_on_device, int64_t resource_arg_unique_id) { bool is_type_list; DataTypeVector dtypes; TF_RETURN_IF_ERROR( ArgNumType(attr_values, arg_def, &is_type_list, &dtypes)); if (dtypes.size() < size_... | CVE-2022-23586 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f6a20c9906b5ebc3524279bc6a053fdf | tensorflow/tensorflow | 3d89911481ba6ebe8c88c1c0b595412121e6c645 | 1,636,729,925 | tensorflow/core/framework/function.cc | BuildInputArgIndex | cpp | Status BuildInputArgIndex(const OpDef::ArgDef& arg_def, AttrSlice attr_values,
const FunctionDef::ArgAttrs* arg_attrs,
bool ints_on_device,
int64_t resource_arg_unique_id) {
bool is_type_list;
DataTypeVector dtypes;
TF_RETUR... | Status BuildInputArgIndex(const OpDef::ArgDef& arg_def, AttrSlice attr_values, const FunctionDef::ArgAttrs* arg_attrs, bool ints_on_device, int64_t resource_arg_unique_id) { bool is_type_list; DataTypeVector dtypes; TF_RETURN_IF_ERROR( ArgNumType(attr_values, arg_def, &is_type_list, &dtypes)); CHECK_GE(dtypes.size(), s... | CVE-2022-23586 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9a8406d50e33b1defff23adab9872af2 | tensorflow/tensorflow | 0aaaae6eca5a7175a193696383f582f53adab23f | 1,636,816,745 | tensorflow/core/grappler/costs/op_level_cost_estimator.cc | OpLevelCostEstimator::PredictCropAndResize | cpp | Status OpLevelCostEstimator::PredictCropAndResize(const OpContext& op_context,
NodeCosts* node_costs) const {
bool found_unknown_shapes = false;
const auto method = op_context.op_info.attr().find("method");
bool use_bilinear_interp;
if (method == op_context.op_... | Status OpLevelCostEstimator::PredictCropAndResize(const OpContext& op_context, NodeCosts* node_costs) const { bool found_unknown_shapes = false; const auto method = op_context.op_info.attr().find("method"); bool use_bilinear_interp; if (method == op_context.op_info.attr().end() || method->second.s() == "bilinear") { us... | CVE-2022-23587 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 920050a2b5769d06b12f23c9498f1ffd | tensorflow/tensorflow | 955059813cc325dc1db5e2daa6221271406d4439 | 1,636,730,277 | tensorflow/core/graph/graph.cc | AddNode | cpp | Node* Graph::AddNode(NodeDef node_def, Status* status) {
const OpRegistrationData* op_reg_data;
status->Update(ops_.LookUp(node_def.op(), &op_reg_data));
if (!status->ok()) return nullptr;
DataTypeVector inputs;
DataTypeVector outputs;
status->Update(
InOutTypesForNode(node_def, op_reg_data->op_def, ... | Node* Graph::AddNode(NodeDef node_def, Status* status) { const OpRegistrationData* op_reg_data; status->Update(ops_.LookUp(node_def.op(), &op_reg_data)); if (!status->ok()) return nullptr; DataTypeVector inputs; DataTypeVector outputs; status->Update( InOutTypesForNode(node_def, op_reg_data->op_def, &inputs, &outputs))... | CVE-2022-23590 | CWE-754 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 471ff296ccf7ef49e5d22bc19109404e | tensorflow/tensorflow | 448a16182065bd08a202d9057dd8ca541e67996c | 1,638,920,972 | tensorflow/cc/saved_model/loader.cc | ValidateSavedTensors | cpp | static Status ValidateSavedTensors(const GraphDef& graph_def) {
for (const auto& node : graph_def.node()) {
TF_RETURN_IF_ERROR(ValidateNode(node));
}
if (graph_def.has_library()) {
const FunctionDefLibrary& library = graph_def.library();
for (const auto& function : library.function()) {
for (co... | static Status ValidateSavedTensors(const GraphDef& graph_def) { for (const auto& node : graph_def.node()) { TF_RETURN_IF_ERROR(ValidateNode(node)); } if (graph_def.has_library()) { const FunctionDefLibrary& library = graph_def.library(); for (const auto& function : library.function()) { for (const auto& node : function... | CVE-2022-23591 | CWE-674 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 6d67f20907a06f2631982005e86ca80e | tensorflow/tensorflow | c99d98cd189839dcf51aee94e7437b54b31f8abd | 1,636,764,150 | tensorflow/core/graph/graph.cc | Node::RunForwardTypeInference | cpp | void Node::RunForwardTypeInference() {
VLOG(4) << "Forward type inference: " << props_->node_def.DebugString();
if (props_->fwd_type_fn == nullptr) {
return;
}
std::vector<Node*> input_nodes(props_->input_types.size(), nullptr);
std::vector<int> input_idx(props_->input_types.size(), 0);
for (const aut... | void Node::RunForwardTypeInference() { VLOG(4) << "Forward type inference: " << props_->node_def.DebugString(); if (props_->fwd_type_fn == nullptr) { return; } std::vector<Node*> input_nodes(props_->input_types.size(), nullptr); std::vector<int> input_idx(props_->input_types.size(), 0); for (const auto& edge : in_edges... | CVE-2022-23592 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a8fd0979336aca05de88f10dd760635e | tensorflow/tensorflow | e21af685e1828f7ca65038307df5cc06de4479e8 | 1,641,597,627 | tensorflow/compiler/jit/xla_platform_info.cc | BuildXlaCompilationCache | cpp | Status BuildXlaCompilationCache(DeviceBase* device, FunctionLibraryRuntime* flr,
const XlaPlatformInfo& platform_info,
XlaCompilationCache** cache) {
if (platform_info.xla_device_metadata()) {
*cache = new XlaCompilationCache(
platform_info.x... | Status BuildXlaCompilationCache(DeviceBase* device, FunctionLibraryRuntime* flr, const XlaPlatformInfo& platform_info, XlaCompilationCache** cache) { if (platform_info.xla_device_metadata()) { *cache = new XlaCompilationCache( platform_info.xla_device_metadata()->client(), platform_info.xla_device_metadata()->jit_devic... | CVE-2022-23595 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5ec4d28a1b7848799e2a1a2df413275f | ruby/cgi | c728632c1c09d46cfd4ecbff9caaa3651dd1002a | 1,630,658,422 | ext/cgi/escape/escape.c | optimized_escape_html | c | static VALUE
optimized_escape_html(VALUE str)
{
VALUE vbuf;
char *buf = ALLOCV_N(char, vbuf, RSTRING_LEN(str) * HTML_ESCAPE_MAX_LEN);
const char *cstr = RSTRING_PTR(str);
const char *end = cstr + RSTRING_LEN(str);
char *dest = buf;
while (cstr < end) {
const unsigned char c = *cstr++;
... | static VALUE optimized_escape_html(VALUE str) { VALUE vbuf; char *buf = ALLOCV_N(char, vbuf, RSTRING_LEN(str) * HTML_ESCAPE_MAX_LEN); const char *cstr = RSTRING_PTR(str); const char *end = cstr + RSTRING_LEN(str); char *dest = buf; while (cstr < end) { const unsigned char c = *cstr++; uint8_t len = html_escape_table[c]... | CVE-2021-41816 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 51f707653a6bc0774421657f1cf0ba0a | ruby/cgi | 3a62e20f76ea42ff0b4d45f2952479eab266ae1c | 1,559,723,331 | ext/cgi/escape/escape.c | optimized_escape_html | c | static VALUE
optimized_escape_html(VALUE str)
{
long i, len, beg = 0;
VALUE dest = 0;
const char *cstr;
len = RSTRING_LEN(str);
cstr = RSTRING_PTR(str);
for (i = 0; i < len; i++) {
switch (cstr[i]) {
case '\'':
case '&':
case '"':
case '<':
... | static VALUE optimized_escape_html(VALUE str) { long i, len, beg = 0; VALUE dest = 0; const char *cstr; len = RSTRING_LEN(str); cstr = RSTRING_PTR(str); for (i = 0; i < len; i++) { switch (cstr[i]) { case '\'': case '&': case '"': case '<': case '>': if (!dest) { dest = rb_str_buf_new(len); } rb_str_cat(dest, cstr + be... | CVE-2021-41816 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f3080cab35cb5378df418353c5ac6c1d | FISCO-BCOS/FISCO-BCOS | 7eb4a2c6272c6727595b974f24843cf7785c62b0 | 1,641,916,598 | bcos-pbft/bcos-pbft/pbft/engine/PBFTEngine.cpp | PBFTEngine::handleViewChangeMsg | cpp | bool PBFTEngine::handleViewChangeMsg(ViewChangeMsgInterface::Ptr _viewChangeMsg)
{
if (!isValidViewChangeMsg(_viewChangeMsg->from(), _viewChangeMsg))
{
return false;
}
m_cacheProcessor->addViewChangeReq(_viewChangeMsg);
// try to trigger fast view change if receive more than (f+1) valid view... | bool PBFTEngine::handleViewChangeMsg(ViewChangeMsgInterface::Ptr _viewChangeMsg) { if (!isValidViewChangeMsg(_viewChangeMsg->from(), _viewChangeMsg)) { return false; } m_cacheProcessor->addViewChangeReq(_viewChangeMsg); if (_viewChangeMsg->generatedFrom() == m_config->getLeader()) { auto view = m_cacheProcessor->tryToT... | CVE-2021-46359 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 117c7db888480b653a08e753573f6a4a | radareorg/radare2 | 9650e3c352f675687bf6c6f65ff2c4a3d0e288fa | 1,644,261,681 | shlr/java/class.c | r_bin_java_inner_classes_attr_new | c | R_API RBinJavaAttrInfo *r_bin_java_inner_classes_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) {
RBinJavaClassesAttribute *icattr;
RBinJavaAttrInfo *attr = NULL;
RBinJavaCPTypeObj *obj;
ut32 i = 0;
ut64 offset = 0, curpos;
attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset);
offs... | R_API RBinJavaAttrInfo *r_bin_java_inner_classes_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { RBinJavaClassesAttribute *icattr; RBinJavaAttrInfo *attr = NULL; RBinJavaCPTypeObj *obj; ut32 i = 0; ut64 offset = 0, curpos; attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); offset += 6... | CVE-2022-0518 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | da4a135c4514535d5d37a0eb200d79bf | radareorg/radare2 | 8525ad0b9fd596f4b251bb3d7b114e6dc7ce1ee8 | 1,644,262,554 | libr/bin/format/pyc/marshal.c | get_object | c | static pyc_object *get_object(RBuffer *buffer) {
bool error = false;
pyc_object *ret = NULL;
ut8 code = get_ut8 (buffer, &error);
bool flag = (code & FLAG_REF);
RListIter *ref_idx = NULL;
ut8 type = (code & ~FLAG_REF);
if (error) {
return NULL;
}
if (flag) {
pyc_object *noneret = get_none_object ();
if... | static pyc_object *get_object(RBuffer *buffer) { bool error = false; pyc_object *ret = NULL; ut8 code = get_ut8 (buffer, &error); bool flag = (code & FLAG_REF); RListIter *ref_idx = NULL; ut8 type = (code & ~FLAG_REF); if (error) { return NULL; } if (flag) { pyc_object *noneret = get_none_object (); if (noneret) { ref_... | CVE-2022-0520 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c754d80db272f72f7cca5f9df708b8e5 | mruby/mruby | 0849a2885f81cfd82134992c06df3ccd59052ac7 | 1,644,288,396 | mrbgems/mruby-compiler/core/codegen.c | gen_assignment | c | static void
gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val)
{
int idx;
int type = nint(tree->car);
switch (type) {
case NODE_GVAR:
case NODE_ARG:
case NODE_LVAR:
case NODE_IVAR:
case NODE_CVAR:
case NODE_CONST:
case NODE_NIL:
case NODE_MASGN:
if (rhs) {
codegen(... | static void gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val) { int idx; int type = nint(tree->car); switch (type) { case NODE_GVAR: case NODE_ARG: case NODE_LVAR: case NODE_IVAR: case NODE_CVAR: case NODE_CONST: case NODE_NIL: case NODE_MASGN: if (rhs) { codegen(s, rhs, VAL); pop(); sp = cursp()... | CVE-2022-0525 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9937aece483c545e62fe2314f7521e79 | vim/vim | e3537aec2f8d6470010547af28dcbd83d41461b8 | 1,644,329,120 | src/buffer.c | do_buffer_ext | c | static int
do_buffer_ext(
int action,
int start,
int dir, // FORWARD or BACKWARD
int count, // buffer number or number of buffers
int flags) // DOBUF_FORCEIT etc.
{
buf_T *buf;
buf_T *bp;
int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL
|| action == DOBUF_WIPE || a... | static int do_buffer_ext( int action, int start, int dir, int count, int flags) { buf_T *buf; buf_T *bp; int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL || action == DOBUF_WIPE || action == DOBUF_WIPE_REUSE); switch (start) { case DOBUF_FIRST: buf = firstbuf; break; case DOBUF_LAST: buf = lastbuf; break; de... | CVE-2022-0554 | CWE-823;CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f31ba82f8b8356ea03889a006b755a56 | torvalds/linux | 89f3594d0de58e8a57d92d497dea9fee3d4b9cda | 1,640,967,697 | drivers/usb/gadget/legacy/inode.c | dev_config | c | static ssize_t
dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
{
struct dev_data *dev = fd->private_data;
ssize_t value, length = len;
unsigned total;
u32 tag;
char *kbuf;
spin_lock_irq(&dev->lock);
if (dev->state > STATE_DEV_OPENED) {
value = ep0_write(fd, buf, len, ptr)... | static ssize_t dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr) { struct dev_data *dev = fd->private_data; ssize_t value, length = len; unsigned total; u32 tag; char *kbuf; spin_lock_irq(&dev->lock); if (dev->state > STATE_DEV_OPENED) { value = ep0_write(fd, buf, len, ptr); spin_unlock_irq(... | CVE-2022-24958 | CWE-763 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d226fed2a82026bd08642f76930dd7d6 | torvalds/linux | 501e38a5531efbd77d5c73c0ba838a889bfc1d74 | 1,640,967,698 | drivers/usb/gadget/legacy/inode.c | dev_config | c | static ssize_t
dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
{
struct dev_data *dev = fd->private_data;
ssize_t value, length = len;
unsigned total;
u32 tag;
char *kbuf;
spin_lock_irq(&dev->lock);
if (dev->state > STATE_DEV_OPENED) {
value = ep0_write(fd, buf, len, ptr)... | static ssize_t dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr) { struct dev_data *dev = fd->private_data; ssize_t value, length = len; unsigned total; u32 tag; char *kbuf; spin_lock_irq(&dev->lock); if (dev->state > STATE_DEV_OPENED) { value = ep0_write(fd, buf, len, ptr); spin_unlock_irq(... | CVE-2022-24958 | CWE-763 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a9e029497f6a9ad39264ed5497a512f1 | rockcarry/ffjpeg | 09df4c4bb16a301ffec153d30ad33cc9956333f0 | 1,639,632,150 | src/ffjpeg.c | main | c | int main(int argc, char *argv[])
{
void *jfif = NULL;
BMP bmp = {0};
if (argc < 3) {
printf(
"jfif test program\n"
"usage: ffjpeg -d filename decode jpg file to decode.bmp\n"
" ffjpeg -e filename encode bmp file to encode.jpg\n"
);
... | int main(int argc, char *argv[]) { void *jfif = NULL; BMP bmp = {0}; if (argc < 3) { printf( "jfif test program\n" "usage: ffjpeg -d filename decode jpg file to decode.bmp\n" " ffjpeg -e filename encode bmp file to encode.jpg\n" ); return 0; } if (strcmp(argv[1], "-d") == 0) { jfif = jfif_load(argv[2]); jfif_decode(jfi... | CVE-2021-45385 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | be11c80c49c61beafb212bc025ff0dc6 | torvalds/linux | d6d86830705f173fca6087a3e67ceaf68db80523 | 1,640,914,523 | net/tipc/socket.c | __tipc_sendmsg | c | static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen)
{
struct sock *sk = sock->sk;
struct net *net = sock_net(sk);
struct tipc_sock *tsk = tipc_sk(sk);
struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name;
long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT);
struct list_head... | static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen) { struct sock *sk = sock->sk; struct net *net = sock_net(sk); struct tipc_sock *tsk = tipc_sk(sk); struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); struct list_head *clin... | CVE-2022-0382 | CWE-909 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4f72eb5130bb32344a8c4ca9df97c34b | mruby/mruby | 38b164ace7d6ae1c367883a3d67d7f559783faad | 1,644,633,575 | mrbgems/mruby-compiler/core/codegen.c | gen_values | c | static int
gen_values(codegen_scope *s, node *t, int val, int limit)
{
int n = 0;
int first = 1;
int slimit = GEN_VAL_STACK_MAX;
if (limit == 0) limit = GEN_LIT_ARY_MAX;
if (cursp() >= slimit) slimit = INT16_MAX;
if (!val) {
while (t) {
codegen(s, t->car, NOVAL);
n++;
t = t->cdr;
... | static int gen_values(codegen_scope *s, node *t, int val, int limit) { int n = 0; int first = 1; int slimit = GEN_VAL_STACK_MAX; if (limit == 0) limit = GEN_LIT_ARY_MAX; if (cursp() >= slimit) slimit = INT16_MAX; if (!val) { while (t) { codegen(s, t->car, NOVAL); n++; t = t->cdr; } return n; } while (t) { int is_splat ... | CVE-2022-0570 | CWE-122 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3baad8790381fefe9c95b0691849044c | vim/vim | 6e28703a8e41f775f64e442c5d11ce1ff599aa3f | 1,644,676,938 | src/indent.c | ex_retab | c | void
ex_retab(exarg_T *eap)
{
linenr_T lnum;
int got_tab = FALSE;
long num_spaces = 0;
long num_tabs;
long len;
long col;
long vcol;
long start_col = 0; // For start of white-space string
long start_vcol = 0; // For start of white-space string
long old_len;
char_u *ptr;
... | void ex_retab(exarg_T *eap) { linenr_T lnum; int got_tab = FALSE; long num_spaces = 0; long num_tabs; long len; long col; long vcol; long start_col = 0; long start_vcol = 0; long old_len; char_u *ptr; char_u *new_line = (char_u *)1; int did_undo; #ifdef FEAT_VARTABS int *new_vts_array = NULL; char_u *new_ts_str; #else ... | CVE-2022-0572 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d070bfc43a21cbd1104f9b72a231cf15 | nginx/njs | 39e8fa1b7db1680654527f8fa0e9ee93b334ecba | 1,642,597,429 | src/njs_function.c | njs_function_prototype_apply | c | static njs_int_t
njs_function_prototype_apply(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
njs_index_t unused)
{
int64_t i, length;
njs_int_t ret;
njs_frame_t *frame;
njs_value_t *this, *arr_like;
njs_array_t *arr;
njs_function_t *func;
if (!njs_is_funct... | static njs_int_t njs_function_prototype_apply(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, length; njs_int_t ret; njs_frame_t *frame; njs_value_t *this, *arr_like; njs_array_t *arr; njs_function_t *func; if (!njs_is_function(njs_argument(args, 0))) { njs_type_error(vm, "\"this\" a... | CVE-2021-46462 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ba3f85c69c5dc230f3ba1bfb26b1e328 | libexpat/libexpat | 3f0a0cb644438d4d8e3294cd0b1245d0edb0c6c6 | 1,644,287,540 | expat/lib/xmltok_impl.c | PREFIX | c | static int PTRCALL
PREFIX(prologTok)(const ENCODING *enc, const char *ptr, const char *end,
const char **nextTokPtr) {
int tok;
if (ptr >= end)
return XML_TOK_NONE;
if (MINBPC(enc) > 1) {
size_t n = end - ptr;
if (n & (MINBPC(enc) - 1)) {
n &= ~(MINBPC(enc) - 1);
if (n ==... | static int PTRCALL PREFIX(prologTok)(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) { int tok; if (ptr >= end) return XML_TOK_NONE; if (MINBPC(enc) > 1) { size_t n = end - ptr; if (n & (MINBPC(enc) - 1)) { n &= ~(MINBPC(enc) - 1); if (n == 0) return XML_TOK_PARTIAL; end = ptr + n; } } s... | CVE-2022-25235 | CWE-116 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 90e39aedf2cbe5d82e24c2198a9869a5 | libexpat/libexpat | a2fe525e660badd64b6c557c2b1ec26ddc07f6e4 | 1,644,620,969 | expat/lib/xmlparse.c | addBinding | c | static enum XML_Error
addBinding(XML_Parser parser, PREFIX *prefix, const ATTRIBUTE_ID *attId,
const XML_Char *uri, BINDING **bindingsPtr) {
static const XML_Char xmlNamespace[]
= {ASCII_h, ASCII_t, ASCII_t, ASCII_p, ASCII_COLON,
ASCII_SLASH, ASCII_SLASH, ASCII_w, ASCI... | static enum XML_Error addBinding(XML_Parser parser, PREFIX *prefix, const ATTRIBUTE_ID *attId, const XML_Char *uri, BINDING **bindingsPtr) { static const XML_Char xmlNamespace[] = {ASCII_h, ASCII_t, ASCII_t, ASCII_p, ASCII_COLON, ASCII_SLASH, ASCII_SLASH, ASCII_w, ASCII_w, ASCII_w, ASCII_PERIOD, ASCII_w, ASCII_3, ASCII... | CVE-2022-25236 | CWE-668 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5070a733daad0d07d02ed76533a5e38b | torvalds/linux | 75e5b4849b81e19e9efe1654b30d7f3151c33c2c | 1,643,019,240 | drivers/usb/gadget/composite.c | composite_setup | c | int
composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
{
struct usb_composite_dev *cdev = get_gadget_data(gadget);
struct usb_request *req = cdev->req;
int value = -EOPNOTSUPP;
int status = 0;
u16 w_index = le16_to_cpu(ctrl->wIndex);
u8 intf = w_index & 0xFF;
u16 w_val... | int composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) { struct usb_composite_dev *cdev = get_gadget_data(gadget); struct usb_request *req = cdev->req; int value = -EOPNOTSUPP; int status = 0; u16 w_index = le16_to_cpu(ctrl->wIndex); u8 intf = w_index & 0xFF; u16 w_value = le16_to_cpu(ctrl->... | CVE-2022-25258 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 27cfa8a4323ee94355be3b15ba358886 | vim/vim | 34f8117dec685ace52cd9e578e2729db278163fc | 1,645,010,179 | src/testing.c | ga_concat_shorten_esc | c | static void
ga_concat_shorten_esc(garray_T *gap, char_u *str)
{
char_u *p;
char_u *s;
int c;
int clen;
char_u buf[NUMBUFLEN];
int same_len;
if (str == NULL)
{
ga_concat(gap, (char_u *)"NULL");
return;
}
for (p = str; *p != NUL; ++p)
{
same_len = 1;
s = p;... | static void ga_concat_shorten_esc(garray_T *gap, char_u *str) { char_u *p; char_u *s; int c; int clen; char_u buf[NUMBUFLEN]; int same_len; if (str == NULL) { ga_concat(gap, (char_u *)"NULL"); return; } for (p = str; *p != NUL; ++p) { same_len = 1; s = p; c = mb_ptr2char_adv(&s); clen = s - p; while (*s != NUL && c == ... | CVE-2022-0629 | CWE-121;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 225e19bf9737583f8f17905c8bc7a94d | mruby/mruby | 47068ae07a5fa3aa9a1879cdfe98a9ce0f339299 | 1,645,159,087 | src/vm.c | mrb_f_send | c | mrb_value
mrb_f_send(mrb_state *mrb, mrb_value self)
{
mrb_sym name;
mrb_value block, *regs;
mrb_method_t m;
struct RClass *c;
mrb_callinfo *ci = mrb->c->ci;
int n = ci->n;
if (ci->cci > CINFO_NONE) {
funcall:;
const mrb_value *argv;
mrb_int argc;
mrb_get_args(mrb, "n*&", &name, &argv, &arg... | mrb_value mrb_f_send(mrb_state *mrb, mrb_value self) { mrb_sym name; mrb_value block, *regs; mrb_method_t m; struct RClass *c; mrb_callinfo *ci = mrb->c->ci; int n = ci->n; if (ci->cci > CINFO_NONE) { funcall:; const mrb_value *argv; mrb_int argc; mrb_get_args(mrb, "n*&", &name, &argv, &argc, &block); return mrb_funcal... | CVE-2022-0631 | CWE-122 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8bd9e375f34ae8d7370f215d354af556 | stefanberger/swtpm | 9f740868fc36761de27df3935513bdebf8852d19 | 1,645,024,667 | src/swtpm/swtpm_nvstore.c | SWTPM_NVRAM_CheckHeader | c | static TPM_RESULT
SWTPM_NVRAM_CheckHeader(unsigned char *data, uint32_t length,
uint32_t *dataoffset, uint16_t *hdrflags,
uint8_t *hdrversion, bool quiet)
{
blobheader *bh = (blobheader *)data;
if (length < sizeof(bh)) {
if (!quiet)
logprintf(... | static TPM_RESULT SWTPM_NVRAM_CheckHeader(unsigned char *data, uint32_t length, uint32_t *dataoffset, uint16_t *hdrflags, uint8_t *hdrversion, bool quiet) { blobheader *bh = (blobheader *)data; if (length < sizeof(bh)) { if (!quiet) logprintf(STDERR_FILENO, "not enough bytes for header: %u\n", length); return TPM_BAD_P... | CVE-2022-23645 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 76db69f13d9738051c48068ea76bac46 | mruby/mruby | 44f591aa8f7091e6ca6cb418e428ae6d4ceaf77d | 1,645,251,196 | mrbgems/mruby-compiler/core/codegen.c | codegen | c | static void
codegen(codegen_scope *s, node *tree, int val)
{
int nt;
int rlev = s->rlev;
if (!tree) {
if (val) {
genop_1(s, OP_LOADNIL, cursp());
push();
}
return;
}
s->rlev++;
if (s->rlev > MRB_CODEGEN_LEVEL_MAX) {
codegen_error(s, "too complex expression");
}
if (s->irep ... | static void codegen(codegen_scope *s, node *tree, int val) { int nt; int rlev = s->rlev; if (!tree) { if (val) { genop_1(s, OP_LOADNIL, cursp()); push(); } return; } s->rlev++; if (s->rlev > MRB_CODEGEN_LEVEL_MAX) { codegen_error(s, "too complex expression"); } if (s->irep && s->filename_index != tree->filename_index) ... | CVE-2022-0632 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c4dae67e3f0227eebb728b65f1f161fe | vim/vim | 5921aeb5741fc6e84c870d68c7c35b93ad0c9f87 | 1,645,266,012 | src/filepath.c | unix_expandpath | c | int
unix_expandpath(
garray_T *gap,
char_u *path,
int wildoff,
int flags, // EW_* flags
int didstar) // expanded "**" once already
{
char_u *buf;
char_u *path_end;
char_u *p, *s, *e;
int start_len = gap->ga_len;
char_u *pat;
regmatch_T regmatch;
int starts_with_dot;... | int unix_expandpath( garray_T *gap, char_u *path, int wildoff, int flags, int didstar) { char_u *buf; char_u *path_end; char_u *p, *s, *e; int start_len = gap->ga_len; char_u *pat; regmatch_T regmatch; int starts_with_dot; int matches; int len; int starstar = FALSE; static int stardepth = 0; DIR *dirp; struct dirent *d... | CVE-2022-0685 | CWE-823 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a6fac80817e0753a2df7d90943cbf0d7 | torvalds/linux | 38ea1eac7d88072bbffb630e2b3db83ca649b826 | 1,644,417,473 | drivers/usb/gadget/function/rndis.c | rndis_set_response | c | static int rndis_set_response(struct rndis_params *params,
rndis_set_msg_type *buf)
{
u32 BufLength, BufOffset;
rndis_set_cmplt_type *resp;
rndis_resp_t *r;
r = rndis_add_response(params, sizeof(rndis_set_cmplt_type));
if (!r)
return -ENOMEM;
resp = (rndis_set_cmplt_type *)r->buf;
BufLength = le32_t... | static int rndis_set_response(struct rndis_params *params, rndis_set_msg_type *buf) { u32 BufLength, BufOffset; rndis_set_cmplt_type *resp; rndis_resp_t *r; r = rndis_add_response(params, sizeof(rndis_set_cmplt_type)); if (!r) return -ENOMEM; resp = (rndis_set_cmplt_type *)r->buf; BufLength = le32_to_cpu(buf->Informati... | CVE-2022-25375 | CWE-1284 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5288bdc380ebe08644a06a13d140a77c | drogonframework/drogon | 3c785326c63a34aa1799a639ae185bc9453cb447 | 1,644,591,282 | lib/src/HttpFileImpl.cc | HttpFileImpl::save | cpp | int HttpFileImpl::save(const std::string &path) const
{
assert(!path.empty());
if (fileName_.empty())
return -1;
filesystem::path fsPath(utils::toNativePath(path));
if (!fsPath.is_absolute() &&
(!fsPath.has_parent_path() ||
(fsPath.begin()->string() != "." && fsPath.begin()->str... | int HttpFileImpl::save(const std::string &path) const { assert(!path.empty()); if (fileName_.empty()) return -1; filesystem::path fsPath(utils::toNativePath(path)); if (!fsPath.is_absolute() && (!fsPath.has_parent_path() || (fsPath.begin()->string() != "." && fsPath.begin()->string() != ".."))) { filesystem::path fsUpl... | CVE-2022-25297 | CWE-552 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 67c34e10daed4407b510aa56b32af820 | radareorg/radare2 | 515e592b9bea0612bc63d8e93239ff35bcf645c7 | 1,645,461,906 | libr/bin/p/bin_symbols.c | symbols | c | static RList *symbols(RBinFile *bf) {
RList *res = r_list_newf ((RListFree)r_bin_symbol_free);
r_return_val_if_fail (res && bf->o && bf->o->bin_obj, res);
RCoreSymCacheElement *element = bf->o->bin_obj;
size_t i;
HtUU *hash = ht_uu_new0 ();
if (!hash) {
return res;
}
bool found = false;
for (i = 0; i < eleme... | static RList *symbols(RBinFile *bf) { RList *res = r_list_newf ((RListFree)r_bin_symbol_free); r_return_val_if_fail (res && bf->o && bf->o->bin_obj, res); RCoreSymCacheElement *element = bf->o->bin_obj; size_t i; HtUU *hash = ht_uu_new0 (); if (!hash) { return res; } bool found = false; for (i = 0; i < element->hdr->n_... | CVE-2022-0712 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7841a231aeac4ad4dcb2461d661cba7c | radareorg/radare2 | a35f89f86ed12161af09330e92e5a213014e46a1 | 1,645,464,302 | libr/bin/format/mach0/coresymbolication.c | r_coresym_cache_element_new | c | RCoreSymCacheElement *r_coresym_cache_element_new(RBinFile *bf, RBuffer *buf, ut64 off, int bits, char * file_name) {
RCoreSymCacheElement *result = NULL;
ut8 *b = NULL;
RCoreSymCacheElementHdr *hdr = r_coresym_cache_element_header_new (buf, off, bits);
if (!hdr) {
return NULL;
}
if (hdr->version != 1) {
epri... | RCoreSymCacheElement *r_coresym_cache_element_new(RBinFile *bf, RBuffer *buf, ut64 off, int bits, char * file_name) { RCoreSymCacheElement *result = NULL; ut8 *b = NULL; RCoreSymCacheElementHdr *hdr = r_coresym_cache_element_header_new (buf, off, bits); if (!hdr) { return NULL; } if (hdr->version != 1) { eprintf ("Unsu... | CVE-2022-0713 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3cd81aa8a4d2acde91a60f4479f3333e | vim/vim | 4e889f98e95ac05d7c8bd3ee933ab4d47820fdfa | 1,645,468,572 | src/indent.c | change_indent | c | void
change_indent(
int type,
int amount,
int round,
int replaced, // replaced character, put on replace stack
int call_changed_bytes) // call changed_bytes()
{
int vcol;
int last_vcol;
int insstart_less; // reduction for Insstart.col
int new_cursor_col;
int i;
cha... | void change_indent( int type, int amount, int round, int replaced, int call_changed_bytes) { int vcol; int last_vcol; int insstart_less; int new_cursor_col; int i; char_u *ptr; int save_p_list; int start_col; colnr_T vc; colnr_T orig_col = 0; char_u *new_line, *orig_line = NULL; if (State & VREPLACE_FLAG) { orig_line =... | CVE-2022-0714 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 463871cf53b6c64b73e4ed96122c4a6f | envoyproxy/envoy | 9371333230b1a6e1be2eccf4868771e11af6253a | 1,643,741,720 | source/extensions/filters/http/jwt_authn/matcher.cc | matches | cpp | bool matches(const Http::RequestHeaderMap& headers) const override {
if (BaseMatcherImpl::matchRoute(headers)) {
const Http::HeaderString& path = headers.Path()->value();
const absl::string_view query_string = Http::Utility::findQueryStringStart(path);
absl::string_view path_view = path.getStringV... | bool matches(const Http::RequestHeaderMap& headers) const override { if (BaseMatcherImpl::matchRoute(headers)) { const Http::HeaderString& path = headers.Path()->value(); const absl::string_view query_string = Http::Utility::findQueryStringStart(path); absl::string_view path_view = path.getStringView(); path_view.remov... | CVE-2021-43824 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e107e3d98bf300069988c217fd795cc3 | envoyproxy/envoy | e9f936d85dc1edc34fabd0a1725ec180f2316353 | 1,643,741,835 | source/extensions/transport_sockets/tls/cert_validator/default_validator.cc | DefaultCertValidator::updateDigestForSessionId | cpp | void DefaultCertValidator::updateDigestForSessionId(bssl::ScopedEVP_MD_CTX& md,
uint8_t hash_buffer[EVP_MAX_MD_SIZE],
unsigned hash_length) {
int rc;
// Hash all the settings that affect whether the server will ... | void DefaultCertValidator::updateDigestForSessionId(bssl::ScopedEVP_MD_CTX& md, uint8_t hash_buffer[EVP_MAX_MD_SIZE], unsigned hash_length) { int rc; if (ca_cert_ != nullptr) { rc = X509_digest(ca_cert_.get(), EVP_sha256(), hash_buffer, &hash_length); RELEASE_ASSERT(rc == 1, Utility::getLastCryptoError().value_or(""));... | CVE-2022-21654 | CWE-295 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4057a103fd89ed8df7af0e9373b27bd3 | mruby/mruby | f72315575f78a9a773adbce0ee7d3ec33434cb76 | 1,645,491,980 | mrbgems/mruby-compiler/core/codegen.c | gen_assignment | c | static void
gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val)
{
int idx;
int type = nint(tree->car);
switch (type) {
case NODE_GVAR:
case NODE_ARG:
case NODE_LVAR:
case NODE_IVAR:
case NODE_CVAR:
case NODE_CONST:
case NODE_NIL:
case NODE_MASGN:
if (rhs) {
codegen(... | static void gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val) { int idx; int type = nint(tree->car); switch (type) { case NODE_GVAR: case NODE_ARG: case NODE_LVAR: case NODE_IVAR: case NODE_CVAR: case NODE_CONST: case NODE_NIL: case NODE_MASGN: if (rhs) { codegen(s, rhs, VAL); pop(); sp = cursp()... | CVE-2022-0717 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e5c6512c744dc7028f5f287aa7277fcc | vim/vim | 6456fae9ba8e72c74b2c0c499eaf09974604ff30 | 1,645,533,451 | src/regexp_bt.c | regmatch | c | static int
regmatch(
char_u *scan, // Current node.
proftime_T *tm UNUSED, // timeout limit or NULL
int *timed_out UNUSED) // flag set on timeout or NULL
{
char_u *next; // Next node.
int op;
int c;
regitem_T *rp;
int no;
int status; // one of the RA_ values:
#ifdef FEAT_RELTIME... | static int regmatch( char_u *scan, proftime_T *tm UNUSED, int *timed_out UNUSED) { char_u *next; int op; int c; regitem_T *rp; int no; int status; #ifdef FEAT_RELTIME int tm_count = 0; #endif regstack.ga_len = 0; backpos.ga_len = 0; for (;;) { fast_breakcheck(); #ifdef DEBUG if (scan != NULL && regnarrate) { mch_errmsg... | CVE-2022-0729 | CWE-823;CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8114de9b7c739260504eae1017fcf639 | wolfSSL/wolfssl | 08047b2d959ee5e21a4a2c672308f45fec61f059 | 1,643,997,455 | src/tls13.c | DoTls13CertificateVerify | c | static int DoTls13CertificateVerify(WOLFSSL* ssl, byte* input,
word32* inOutIdx, word32 totalSz)
{
int ret = 0;
buffer* sig = &ssl->buffers.sig;
#ifdef WOLFSSL_ASYNC_CRYPT
Dcv13Args* args = (Dcv13Args*)ssl->async.args;
typedef char args_test[sizeof(ssl->as... | static int DoTls13CertificateVerify(WOLFSSL* ssl, byte* input, word32* inOutIdx, word32 totalSz) { int ret = 0; buffer* sig = &ssl->buffers.sig; #ifdef WOLFSSL_ASYNC_CRYPT Dcv13Args* args = (Dcv13Args*)ssl->async.args; typedef char args_test[sizeof(ssl->async.args) >= sizeof(*args) ? 1 : -1]; (void)sizeof(args_test); #... | CVE-2022-25638 | CWE-295 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7f9097a6f8992358abf3e03994ab77c2 | wolfSSL/wolfssl | e13861bcde8015bb99ddb034224afb66e2fb89b8 | 1,643,740,105 | src/tls13.c | DoTls13CertificateVerify | c | static int DoTls13CertificateVerify(WOLFSSL* ssl, byte* input,
word32* inOutIdx, word32 totalSz)
{
int ret = 0;
buffer* sig = &ssl->buffers.sig;
#ifdef WOLFSSL_ASYNC_CRYPT
Dcv13Args* args = (Dcv13Args*)ssl->async.args;
typedef char args_test[sizeof(ssl->as... | static int DoTls13CertificateVerify(WOLFSSL* ssl, byte* input, word32* inOutIdx, word32 totalSz) { int ret = 0; buffer* sig = &ssl->buffers.sig; #ifdef WOLFSSL_ASYNC_CRYPT Dcv13Args* args = (Dcv13Args*)ssl->async.args; typedef char args_test[sizeof(ssl->async.args) >= sizeof(*args) ? 1 : -1]; (void)sizeof(args_test); #... | CVE-2022-25638 | CWE-295 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | bd51077a44c201f5e52047375579fb57 | wolfSSL/wolfssl | b60d2dccce9110fd2b985d99063e524e39bdf6f7 | 1,644,276,378 | src/tls13.c | DoTls13Finished | c | int DoTls13Finished(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
word32 size, word32 totalSz, int sniff)
{
int ret;
word32 finishedSz = 0;
byte* secret;
byte mac[WC_MAX_DIGEST_SIZE];
WOLFSSL_START(WC_FUNC_FINISHED_DO);
WOLFSSL_ENTER("DoTls13Finished");
#i... | int DoTls13Finished(WOLFSSL* ssl, const byte* input, word32* inOutIdx, word32 size, word32 totalSz, int sniff) { int ret; word32 finishedSz = 0; byte* secret; byte mac[WC_MAX_DIGEST_SIZE]; WOLFSSL_START(WC_FUNC_FINISHED_DO); WOLFSSL_ENTER("DoTls13Finished"); #if !defined(NO_CERTS) && !defined(WOLFSSL_NO_CLIENT_AUTH) if... | CVE-2022-25640 | CWE-295 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8e760ebc2efaa3ec4adbfb9e4eb00045 | kennylevinsen/seatd | 7cffe0797fdb17a9c08922339465b1b187394335 | 1,645,436,808 | seatd-launch/seatd-launch.c | main | c | int main(int argc, char *argv[]) {
(void)argc;
const char *usage = "Usage: seatd-launch [options] [--] command\n"
"\n"
" -h Show this help message\n"
" -s <path> Where to create the seatd socket\n"
" -v Show the version number\n"
"\n";
int c;
char *sockpath = NULL;
while (... | int main(int argc, char *argv[]) { (void)argc; const char *usage = "Usage: seatd-launch [options] [--] command\n" "\n" " -h Show this help message\n" " -s <path> Where to create the seatd socket\n" " -v Show the version number\n" "\n"; int c; char *sockpath = NULL; while ((c = getopt(argc, argv, "vhs:")) != -1) { switc... | CVE-2022-25643 | CWE-668 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 70b284c0a0d3096ce2974cfa8e2dc226 | kennylevinsen/seatd | 10658dc5439db429af0088295a051c53925a4416 | 1,645,436,808 | seatd-launch/seatd-launch.c | main | c | int main(int argc, char *argv[]) {
(void)argc;
const char *usage = "Usage: seatd-launch [options] [--] command\n"
"\n"
" -h Show this help message\n"
" -s <path> Where to create the seatd socket\n"
" -v Show the version number\n"
"\n";
int c;
char *sockpath = NULL;
while (... | int main(int argc, char *argv[]) { (void)argc; const char *usage = "Usage: seatd-launch [options] [--] command\n" "\n" " -h Show this help message\n" " -s <path> Where to create the seatd socket\n" " -v Show the version number\n" "\n"; int c; char *sockpath = NULL; while ((c = getopt(argc, argv, "vhs:")) != -1) { switc... | CVE-2022-25643 | CWE-668 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7f9d4599e94e5faabb59ab816a496201 | brackeen/ok-file-formats | e49cdfb84fb5eca2a6261f3c51a3c793fab9f62e | 1,623,149,128 | ok_png.c | ok_png_decode2 | c | static void ok_png_decode2(ok_png_decoder *decoder) {
ok_png *png = decoder->png;
uint8_t png_header[8];
if (!ok_read(decoder, png_header, sizeof(png_header))) {
return;
}
uint8_t png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10};
if (memcmp(png_header, png_signature, 8) != 0) {
... | static void ok_png_decode2(ok_png_decoder *decoder) { ok_png *png = decoder->png; uint8_t png_header[8]; if (!ok_read(decoder, png_header, sizeof(png_header))) { return; } uint8_t png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10}; if (memcmp(png_header, png_signature, 8) != 0) { ok_png_error(decoder->png, OK_PNG_ERR... | CVE-2021-44339 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 90c0170413fde3a897219a4e2cdd8ec1 | justdan96/tsMuxer | 5b8fdee725f8b4b2f8c5dd23da6bc1c05ee7a8f9 | 1,634,637,393 | tsMuxer/vvc.cpp | VvcUnitWithProfile::profile_tier_level | cpp | void VvcUnitWithProfile::profile_tier_level(bool profileTierPresentFlag, int MaxNumSubLayersMinus1)
{
if (profileTierPresentFlag)
{
profile_idc = m_reader.getBits(7);
bool tier_flag = m_reader.getBit();
}
level_idc = m_reader.getBits(8);
m_reader.skipBits(2); // ptl_frame_only_const... | void VvcUnitWithProfile::profile_tier_level(bool profileTierPresentFlag, int MaxNumSubLayersMinus1) { if (profileTierPresentFlag) { profile_idc = m_reader.getBits(7); bool tier_flag = m_reader.getBit(); } level_idc = m_reader.getBits(8); m_reader.skipBits(2); if (profileTierPresentFlag) { if (m_reader.getBit()) { m_rea... | CVE-2021-45861 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8364d85462617a0522d87fcd4c956324 | justdan96/tsMuxer | 007bb548a50475ace5743e05a4a77fc74c8e27b7 | 1,634,635,484 | tsMuxer/dtsStreamReader.cpp | findFrame | cpp | uint8_t* DTSStreamReader::findFrame(uint8_t* buff, uint8_t* end)
{
// check for DTS-HD headers
while (end - buff >= 16)
{
int64_t* ptr = (int64_t*)buff;
int64_t hdrType = my_ntohll(ptr[0]);
int64_t hdrSize = my_ntohll(ptr[1]) + 16;
if (hdrType == AUPRINFO || hdrType == BITSH... | uint8_t* DTSStreamReader::findFrame(uint8_t* buff, uint8_t* end) { while (end - buff >= 16) { int64_t* ptr = (int64_t*)buff; int64_t hdrType = my_ntohll(ptr[0]); int64_t hdrSize = my_ntohll(ptr[1]) + 16; if (hdrType == AUPRINFO || hdrType == BITSHVTB || hdrType == BLACKOUT || hdrType == BRANCHPT || hdrType == BUILDVER ... | CVE-2021-45864 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 23a50a8dc39ae5559f80c2617fde855f | merbanan/rtl_433 | 2dad7b9fc67a1d0bfbe520fbd821678b8f8cc7a8 | 1,643,032,400 | src/devices/somfy_iohc.c | somfy_iohc_decode | c | static int somfy_iohc_decode(r_device *decoder, bitbuffer_t *bitbuffer)
{
uint8_t const preamble_pattern[] = {0x57, 0xfd, 0x99};
uint8_t b[19 + 15]; // 19 byte + up 15 byte payload
if (bitbuffer->num_rows != 1)
return DECODE_ABORT_EARLY;
int offset = bitbuffer_search(bitbuffer, 0, 0, preamble... | static int somfy_iohc_decode(r_device *decoder, bitbuffer_t *bitbuffer) { uint8_t const preamble_pattern[] = {0x57, 0xfd, 0x99}; uint8_t b[19 + 15]; if (bitbuffer->num_rows != 1) return DECODE_ABORT_EARLY; int offset = bitbuffer_search(bitbuffer, 0, 0, preamble_pattern, 24) + 24; if (offset >= bitbuffer->bits_per_row[0... | CVE-2022-25051 | CWE-193 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a42ae8a03b6457125e91818b864f9c36 | haproxy/haproxy | bfb15ab34ead85f64cd6da0e9fb418c9cd14cee8 | 1,644,600,409 | src/http_ana.c | http_manage_server_side_cookies | c | static void http_manage_server_side_cookies(struct stream *s, struct channel *res)
{
struct session *sess = s->sess;
struct http_txn *txn = s->txn;
struct htx *htx;
struct http_hdr_ctx ctx;
struct server *srv;
char *hdr_beg, *hdr_end;
char *prev, *att_beg, *att_end, *equal, *val_beg, *val_end, *next;
int is_coo... | static void http_manage_server_side_cookies(struct stream *s, struct channel *res) { struct session *sess = s->sess; struct http_txn *txn = s->txn; struct htx *htx; struct http_hdr_ctx ctx; struct server *srv; char *hdr_beg, *hdr_end; char *prev, *att_beg, *att_end, *equal, *val_beg, *val_end, *next; int is_cookie2 = 0... | CVE-2022-0711 | CWE-835 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 870f03d21327045b2b523bba966d5a02 | libvirt/libvirt | 15073504dbb624d3f6c911e85557019d3620fdb2 | 1,624,882,144 | src/security/security_selinux.c | virSecuritySELinuxMCSFind | c | static char *
virSecuritySELinuxMCSFind(virSecurityManager *mgr,
const char *sens,
int catMin,
int catMax)
{
virSecuritySELinuxData *data = virSecurityManagerGetPrivateData(mgr);
int catRange;
char *mcs = NULL;
/* +1 since vi... | static char * virSecuritySELinuxMCSFind(virSecurityManager *mgr, const char *sens, int catMin, int catMax) { virSecuritySELinuxData *data = virSecurityManagerGetPrivateData(mgr); int catRange; char *mcs = NULL; catRange = (catMax - catMin) + 1; if (catRange < 8) { virReportError(VIR_ERR_INTERNAL_ERROR, _("Category rang... | CVE-2021-3631 | CWE-732 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 189ea6317acf70379b2addf9d07a150d | postgres/postgres | 28e24125541545483093819efae9bca603441951 | 1,636,383,703 | src/backend/postmaster/postmaster.c | ProcessStartupPacket | c | static int
ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done)
{
int32 len;
char *buf;
ProtocolVersion proto;
MemoryContext oldcontext;
pq_startmsgread();
/*
* Grab the first byte of the length word separately, so that we can tell
* whether we have no data at all or an incomplete packet. (Th... | static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { int32 len; char *buf; ProtocolVersion proto; MemoryContext oldcontext; pq_startmsgread(); if (pq_getbytes((char *) &len, 1) == EOF) { return STATUS_ERROR; } if (pq_getbytes(((char *) &len) + 1, 3) == EOF) { if (!ssl_done && !gss_done) ereport(C... | CVE-2021-23214 | CWE-89 | SINGLE_FUNCTION_NO_MENTION | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.