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 | 67e06340a329e2c47017fa097507deb8 | OpenSC/OpenSC | ae1cf0be | 1,613,035,374 | src/libopensc/card-iasecc.c | iasecc_process_fci | c | static int
iasecc_process_fci(struct sc_card *card, struct sc_file *file,
const unsigned char *buf, size_t buflen)
{
struct sc_context *ctx = card->ctx;
size_t taglen;
int rv, ii, offs;
const unsigned char *acls = NULL, *tag = NULL;
unsigned char mask;
unsigned char ops_DF[7] = {
SC_AC_OP_DELETE, 0xFF, SC_AC... | static int iasecc_process_fci(struct sc_card *card, struct sc_file *file, const unsigned char *buf, size_t buflen) { struct sc_context *ctx = card->ctx; size_t taglen; int rv, ii, offs; const unsigned char *acls = NULL, *tag = NULL; unsigned char mask; unsigned char ops_DF[7] = { SC_AC_OP_DELETE, 0xFF, SC_AC_OP_ACTIVAT... | CVE-2021-42782 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3467f471ced846d3f3d94dffcc47f147 | OpenSC/OpenSC | 1252aca9 | 1,612,437,061 | src/libopensc/card-cardos.c | cardos_have_2048bit_package | c | static int cardos_have_2048bit_package(sc_card_t *card)
{
sc_apdu_t apdu;
u8 rbuf[SC_MAX_APDU_BUFFER_SIZE];
int r;
const u8 *p = rbuf, *q;
size_t len, tlen = 0, ilen = 0;
sc_format_apdu(card, &apdu, SC_APDU_CASE_2_SHORT, 0xca, 0x01, 0x88);
apdu.resp = rbuf;
apdu.resplen = size... | static int cardos_have_2048bit_package(sc_card_t *card) { sc_apdu_t apdu; u8 rbuf[SC_MAX_APDU_BUFFER_SIZE]; int r; const u8 *p = rbuf, *q; size_t len, tlen = 0, ilen = 0; sc_format_apdu(card, &apdu, SC_APDU_CASE_2_SHORT, 0xca, 0x01, 0x88); apdu.resp = rbuf; apdu.resplen = sizeof(rbuf); apdu.lc = 0; apdu.le = 256; r = s... | CVE-2021-42782 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 044bc1cd652dd2f6a00cfa1a73dfa5b8 | OpenSC/OpenSC | 78cdab94 | 1,606,750,983 | src/libopensc/pkcs15-tcos.c | insert_key | c | static int insert_key(
sc_pkcs15_card_t *p15card,
const char *path,
unsigned char id,
unsigned char key_reference,
int key_length,
unsigned char auth_id,
const char *label
)
{
sc_card_t *card = p15card->card;
sc_context_t *ctx = p15card->card->ctx;
sc_file_t *f;
struct s... | static int insert_key( sc_pkcs15_card_t *p15card, const char *path, unsigned char id, unsigned char key_reference, int key_length, unsigned char auth_id, const char *label ) { sc_card_t *card = p15card->card; sc_context_t *ctx = p15card->card->ctx; sc_file_t *f; struct sc_pkcs15_prkey_info prkey_info; struct sc_pkcs15_... | CVE-2021-42782 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0f58a56637265cb8af486f5dccdacbbc | OpenSC/OpenSC | 7114fb71 | 1,616,576,247 | src/libopensc/pkcs15-coolkey.c | coolkey_get_public_key_from_certificate | c | static sc_pkcs15_pubkey_t *
coolkey_get_public_key_from_certificate(sc_pkcs15_card_t *p15card, sc_cardctl_coolkey_object_t *obj)
{
sc_pkcs15_cert_info_t cert_info;
sc_pkcs15_cert_t *cert_out = NULL;
sc_pkcs15_pubkey_t *key = NULL;
int r;
cert_info.value.value = NULL;
r = coolkey_get_certificate(p15card->card, ob... | static sc_pkcs15_pubkey_t * coolkey_get_public_key_from_certificate(sc_pkcs15_card_t *p15card, sc_cardctl_coolkey_object_t *obj) { sc_pkcs15_cert_info_t cert_info; sc_pkcs15_cert_t *cert_out = NULL; sc_pkcs15_pubkey_t *key = NULL; int r; cert_info.value.value = NULL; r = coolkey_get_certificate(p15card->card, obj, &cer... | CVE-2021-42782 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0306a8602087602cc0149ae097d3b4a8 | vim/vim | 8b91e71441069b1dde9ac9ff9d9a829b1b4aecca | 1,650,197,195 | src/eval.c | eval_lambda | c | static int
eval_lambda(
char_u **arg,
typval_T *rettv,
evalarg_T *evalarg,
int verbose) // give error messages
{
int evaluate = evalarg != NULL
&& (evalarg->eval_flags & EVAL_EVALUATE);
typval_T base = *rettv;
int ret;
rettv->v_type = VAR_UNKNOWN;
if (**arg == '{')
... | static int eval_lambda( char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose) { int evaluate = evalarg != NULL && (evalarg->eval_flags & EVAL_EVALUATE); typval_T base = *rettv; int ret; rettv->v_type = VAR_UNKNOWN; if (**arg == '{') { ret = get_lambda_tv(arg, rettv, FALSE, evalarg); } else { ++*arg; ret = eva... | CVE-2022-1420 | CWE-823;CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2ee149fa390d8fada4547e0fae66182d | radareorg/radare2 | 14189710859c27981adb4c2c2aed2863c1859ec5 | 1,650,667,011 | libr/util/new_rbtree.c | r_crbtree_insert | c | R_API bool r_crbtree_insert(RRBTree *tree, void *data, RRBComparator cmp, void *user) {
r_return_val_if_fail (tree && data && cmp, false);
bool inserted = false;
if (tree->root == NULL) {
tree->root = _node_new (data, NULL);
if (tree->root == NULL) {
return false;
}
inserted = true;
goto out_exit;
}
... | R_API bool r_crbtree_insert(RRBTree *tree, void *data, RRBComparator cmp, void *user) { r_return_val_if_fail (tree && data && cmp, false); bool inserted = false; if (tree->root == NULL) { tree->root = _node_new (data, NULL); if (tree->root == NULL) { return false; } inserted = true; goto out_exit; } RRBNode head; memse... | CVE-2022-1444 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8ba9c9825fc6accdf28887a37fdb5e4c | FreeRDP/FreeRDP | 8923b0d72bc19cf51f58255c37f9a045666e56f9 | 1,648,453,972 | winpr/libwinpr/sspi/NTLM/ntlm.c | ntlm_negotiate_flags_string | c | char* ntlm_negotiate_flags_string(char* buffer, size_t size, UINT32 flags)
{
int x;
if (!buffer || (size == 0))
return buffer;
snprintf(buffer, size, "[0x%08" PRIx32 "] ", flags);
for (x = 0; x < 31; x++)
{
const UINT32 mask = 1 << x;
size_t len = strnlen(buffer, size);
if (flags & mask)
{
co... | char* ntlm_negotiate_flags_string(char* buffer, size_t size, UINT32 flags) { int x; if (!buffer || (size == 0)) return buffer; snprintf(buffer, size, "[0x%08" PRIx32 "] ", flags); for (x = 0; x < 31; x++) { const UINT32 mask = 1 << x; size_t len = strnlen(buffer, size); if (flags & mask) { const char* str = ntlm_get_ne... | CVE-2022-24882 | CWE-287 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ad1ad4a8ef01f6d37a64709eebac5ec4 | FreeRDP/FreeRDP | 4661492e5a617199457c8074bad22f766a116cdc | 1,650,624,131 | winpr/libwinpr/sspi/NTLM/ntlm_compute.c | ntlm_fetch_ntlm_v2_hash | c | static int ntlm_fetch_ntlm_v2_hash(NTLM_CONTEXT* context, BYTE* hash)
{
WINPR_SAM* sam;
WINPR_SAM_ENTRY* entry;
SSPI_CREDENTIALS* credentials;
WINPR_ASSERT(context);
WINPR_ASSERT(hash);
credentials = context->credentials;
sam = SamOpen(context->SamFile, TRUE);
if (!sam)
return -1;
entry = SamLookupUserW(... | static int ntlm_fetch_ntlm_v2_hash(NTLM_CONTEXT* context, BYTE* hash) { WINPR_SAM* sam; WINPR_SAM_ENTRY* entry; SSPI_CREDENTIALS* credentials; WINPR_ASSERT(context); WINPR_ASSERT(hash); credentials = context->credentials; sam = SamOpen(context->SamFile, TRUE); if (!sam) return -1; entry = SamLookupUserW( sam, (LPWSTR)c... | CVE-2022-24883 | CWE-287 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7ce256c847770b77bb79da8dc3f8f1da | piastry/cifs-utils | 8acc963a2e7e9d63fe1f2e7f73f5a03f83d9c379 | 1,647,708,075 | mount.cifs.c | open_cred_file | c | static int open_cred_file(char *file_name,
struct parsed_mount_info *parsed_info)
{
char *line_buf = NULL;
char *temp_val = NULL;
FILE *fs = NULL;
int i;
const int line_buf_size = 4096;
const int min_non_white = 10;
i = toggle_dac_capability(0, 1);
if (i)
goto return_i;
i = access(file_name, R_OK);
if ... | static int open_cred_file(char *file_name, struct parsed_mount_info *parsed_info) { char *line_buf = NULL; char *temp_val = NULL; FILE *fs = NULL; int i; const int line_buf_size = 4096; const int min_non_white = 10; i = toggle_dac_capability(0, 1); if (i) goto return_i; i = access(file_name, R_OK); if (i) { toggle_dac_... | CVE-2022-29869 | CWE-532 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4643658fecd92a8d2e8cf56293d506c9 | GNOME/mutter | 820aa18126674dcee73f47afb23ed89b57251e2d | 1,634,809,255 | src/backends/native/meta-backend-native.c | meta_backend_native_post_init | c | static void
meta_backend_native_post_init (MetaBackend *backend)
{
MetaSettings *settings = meta_backend_get_settings (backend);
META_BACKEND_CLASS (meta_backend_native_parent_class)->post_init (backend);
if (meta_settings_is_experimental_feature_enabled (settings,
... | static void meta_backend_native_post_init (MetaBackend *backend) { MetaSettings *settings = meta_backend_get_settings (backend); META_BACKEND_CLASS (meta_backend_native_parent_class)->post_init (backend); if (meta_settings_is_experimental_feature_enabled (settings, META_EXPERIMENTAL_FEATURE_RT_SCHEDULER)) { int retval;... | CVE-2021-3982 | CWE-273 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 23b2e45fd124dd2223fb7e67bb4f2ce1 | TryGhost/node-sqlite3 | 593c9d498be2510d286349134537e3bf89401c4a | 1,615,326,886 | src/statement.cc | BindParameter | cpp | Values::Field*
Statement::BindParameter(const Napi::Value source, T pos) {
if (source.IsString()) {
std::string val = source.As<Napi::String>().Utf8Value();
return new Values::Text(pos, val.length(), val.c_str());
}
else if (OtherInstanceOf(source.As<Object>(), "RegExp")) ... | Values::Field* Statement::BindParameter(const Napi::Value source, T pos) { if (source.IsString()) { std::string val = source.As<Napi::String>().Utf8Value(); return new Values::Text(pos, val.length(), val.c_str()); } else if (OtherInstanceOf(source.As<Object>(), "RegExp")) { std::string val = source.ToString().Utf8Value... | CVE-2022-21227 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8103ee1c3dadf4c371ec62f91b74fd27 | tbeu/matio | b53b62b756920f4c1509f4ee06427f66c3b5c9c4 | 1,645,556,705 | src/mat5.c | ReadNextFunctionHandle | c | static size_t
ReadNextFunctionHandle(mat_t *mat, matvar_t *matvar)
{
int err;
size_t nelems = 1;
err = Mat_MulDims(matvar, &nelems);
matvar->data_size = sizeof(matvar_t *);
err |= Mul(&matvar->nbytes, nelems, matvar->data_size);
if ( err )
return 0;
matvar->data = malloc(matvar->nb... | static size_t ReadNextFunctionHandle(mat_t *mat, matvar_t *matvar) { int err; size_t nelems = 1; err = Mat_MulDims(matvar, &nelems); matvar->data_size = sizeof(matvar_t *); err |= Mul(&matvar->nbytes, nelems, matvar->data_size); if ( err ) return 0; matvar->data = malloc(matvar->nbytes); if ( matvar->data != NULL ) { s... | CVE-2022-1515 | CWE-401 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d0d1d263ddef7393489601a65c9ab217 | jerryscript-project/jerryscript | baf01585b4a818b087a1ec77f99fe7ea6c653a10 | 1,633,075,658 | jerry-core/ecma/operations/ecma-regexp-object.c | ecma_regexp_match_helper | c | ecma_value_t
ecma_regexp_match_helper (ecma_value_t this_arg, /**< this argument */
ecma_value_t string_arg) /**< source string */
{
if (!ecma_is_value_object (this_arg))
{
return ecma_raise_type_error (ECMA_ERR_MSG ("Argument 'this' is not an object"));
}
ecma_string_t *str_p = e... | ecma_value_t ecma_regexp_match_helper (ecma_value_t this_arg, ecma_value_t string_arg) { if (!ecma_is_value_object (this_arg)) { return ecma_raise_type_error (ECMA_ERR_MSG ("Argument 'this' is not an object")); } ecma_string_t *str_p = ecma_op_to_string (string_arg); if (JERRY_UNLIKELY (str_p == NULL)) { return ECMA_VA... | CVE-2021-41959 | CWE-401 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 032c35eb0cf46478c1c11509fbdca90f | ompl/ompl | abb4fadcb4e4fe4c9cf41e5e7706143a66948eb7 | 1,633,625,655 | src/ompl/geometric/planners/rrt/src/VFRRT.cpp | extendTree | cpp | ompl::geometric::VFRRT::Motion *ompl::geometric::VFRRT::extendTree(Motion *m, base::State *rstate,
const Eigen::VectorXd &v)
{
base::State *newState = si_->allocState();
si_->copyState(newState, m->state);
double d = si_->distance(m->state,... | ompl::geometric::VFRRT::Motion *ompl::geometric::VFRRT::extendTree(Motion *m, base::State *rstate, const Eigen::VectorXd &v) { base::State *newState = si_->allocState(); si_->copyState(newState, m->state); double d = si_->distance(m->state, rstate); if (d > maxDistance_) d = maxDistance_; const base::StateSpacePtr &spa... | CVE-2021-42218 | CWE-401 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b0d1733b7b56462db7e878731efade78 | ARMmbed/mbed-os | 151ebfcfc9f2383ee11ce3c771c3bf92900d6b43 | 1,615,365,440 | platform/source/mbed_alloc_wrappers.cpp | malloc_wrapper | cpp | void *malloc_wrapper(struct _reent *r, size_t size, void *caller)
{
void *ptr = NULL;
#ifdef MBED_MEM_TRACING_ENABLED
mbed_mem_trace_lock();
#endif
#ifdef MBED_HEAP_STATS_ENABLED
malloc_stats_mutex->lock();
alloc_info_t *alloc_info = (alloc_info_t *)__real__malloc_r(r, size + sizeof(alloc_info_t));
... | void *malloc_wrapper(struct _reent *r, size_t size, void *caller) { void *ptr = NULL; #ifdef MBED_MEM_TRACING_ENABLED mbed_mem_trace_lock(); #endif #ifdef MBED_HEAP_STATS_ENABLED malloc_stats_mutex->lock(); alloc_info_t *alloc_info = (alloc_info_t *)__real__malloc_r(r, size + sizeof(alloc_info_t)); if (alloc_info != NU... | CVE-2021-27433 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5febd07a1b3c40697b6b880992925829 | albertodemichelis/squirrel | a6413aa690e0bdfef648c68693349a7b878fe60d | 1,651,478,698 | squirrel/sqbaselib.cpp | thread_call | cpp | static SQInteger thread_call(HSQUIRRELVM v)
{
SQObjectPtr o = stack_get(v,1);
if(sq_type(o) == OT_THREAD) {
SQInteger nparams = sq_gettop(v);
_thread(o)->Push(_thread(o)->_roottable);
for(SQInteger i = 2; i<(nparams+1); i++)
sq_move(_thread(o),v,i);
if(SQ_SUCCEEDED(sq... | static SQInteger thread_call(HSQUIRRELVM v) { SQObjectPtr o = stack_get(v,1); if(sq_type(o) == OT_THREAD) { SQInteger nparams = sq_gettop(v); _thread(o)->Push(_thread(o)->_roottable); for(SQInteger i = 2; i<(nparams+1); i++) sq_move(_thread(o),v,i); if(SQ_SUCCEEDED(sq_call(_thread(o),nparams,SQTrue,SQTrue))) { sq_move(... | CVE-2022-30292 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7a32b9a80ec319e55f7d2e4ec9cfc16e | brave/brave-core | 5f931c850e512d7cc3b95db0181df027b0f7c791 | 1,635,200,528 | browser/brave_content_browser_client_browsertest.cc | IN_PROC_BROWSER_TEST_F | cpp | IN_PROC_BROWSER_TEST_F(BraveContentBrowserClientReferrerTest,
DefaultBehaviour) {
const GURL kRequestUrl("http://request.com/path?query");
const GURL kDocumentUrl("http://document.com/path?query");
const GURL kSameSiteRequestUrl("http://sub.document.com/sub/path");
const GURL kSameOriginR... | IN_PROC_BROWSER_TEST_F(BraveContentBrowserClientReferrerTest, DefaultBehaviour) { const GURL kRequestUrl("http: const GURL kDocumentUrl("http: const GURL kSameSiteRequestUrl("http: const GURL kSameOriginRequestUrl("http: blink::mojom::ReferrerPtr kReferrer = blink::mojom::Referrer::New( kDocumentUrl, network::mojom::Re... | CVE-2022-30334 | CWE-200 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b872ca7db750dc2565f70f412ca7bfb6 | vim/vim | 8e4b76da1d7e987d43ca960dfbc372d1c617466f | 1,651,912,086 | src/buffer.c | fname_match | c | static char_u *
fname_match(
regmatch_T *rmp,
char_u *name,
int ignore_case) // when TRUE ignore case, when FALSE use 'fic'
{
char_u *match = NULL;
char_u *p;
if (name != NULL)
{
// Ignore case when 'fileignorecase' or the argument is set.
rmp->rm_ic = p_fic || ignore_case;
if (vim_reg... | static char_u * fname_match( regmatch_T *rmp, char_u *name, int ignore_case) { char_u *match = NULL; char_u *p; if (name != NULL) { rmp->rm_ic = p_fic || ignore_case; if (vim_regexec(rmp, name, (colnr_T)0)) match = name; else { p = home_replace_save(NULL, name); if (p != NULL && vim_regexec(rmp, p, (colnr_T)0)) match =... | CVE-2022-1620 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8c446ba1c51f29514318b35e5887c943 | ImageMagick/ImageMagick | ca3654ebf7a439dc736f56f083c9aa98e4464b7f | 1,648,297,617 | coders/cin.c | ReadCINImage | c | static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define MonoColorType 1
#define RGBColorType 3
char
property[MagickPathExtent];
CINInfo
cin;
Image
*image;
MagickBooleanType
status;
MagickOffsetType
offset;
QuantumInfo
*quantum_info;
Quant... | static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define MonoColorType 1 #define RGBColorType 3 char property[MagickPathExtent]; CINInfo cin; Image *image; MagickBooleanType status; MagickOffsetType offset; QuantumInfo *quantum_info; QuantumType quantum_type; ssize_t i; Quantum *q; siz... | CVE-2022-28463 | CWE-120 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d3d25bfa3a6785bd3c2c758da6d2eb82 | ImageMagick/ImageMagick6 | e6ea5876e0228165ee3abc6e959aa174cee06680 | 1,648,297,656 | coders/cin.c | ReadCINImage | c | static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define MonoColorType 1
#define RGBColorType 3
char
property[MaxTextExtent];
CINInfo
cin;
Image
*image;
MagickBooleanType
status;
MagickOffsetType
offset;
QuantumInfo
*quantum_info;
QuantumT... | static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define MonoColorType 1 #define RGBColorType 3 char property[MaxTextExtent]; CINInfo cin; Image *image; MagickBooleanType status; MagickOffsetType offset; QuantumInfo *quantum_info; QuantumType quantum_type; ssize_t i; PixelPacket *q; si... | CVE-2022-28463 | CWE-120 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | fbc2f3b516632523e66d3e65bd9df5b5 | ruby/ruby | 052ec6d2585c3ace95671013d336f5543624ef3d | 1,649,754,428 | regcomp.c | onig_reg_resize | c | static void
onig_reg_resize(regex_t *reg)
{
resize:
if (reg->alloc > reg->used) {
unsigned char *new_ptr = xrealloc(reg->p, reg->used);
// Skip the right size optimization if memory allocation fails
if (new_ptr) {
reg->alloc = reg->used;
reg->p = new_ptr;
}
}
if (re... | static void onig_reg_resize(regex_t *reg) { resize: if (reg->alloc > reg->used) { unsigned char *new_ptr = xrealloc(reg->p, reg->used); if (new_ptr) { reg->alloc = reg->used; reg->p = new_ptr; } } if (reg->chain) { reg = reg->chain; goto resize; } } | CVE-2022-28738 | CWE-415 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 03bb14312c4687d9dce3e51b8dfefac7 | vim/vim | a59f2dfd0cf9ee1a584d3de5b7c2d47648e79060 | 1,652,258,548 | src/buffer.c | buflist_match | c | static char_u *
buflist_match(
regmatch_T *rmp,
buf_T *buf,
int ignore_case) // when TRUE ignore case, when FALSE use 'fic'
{
char_u *match;
// First try the short file name, then the long file name.
match = fname_match(rmp, buf->b_sfname, ignore_case);
if (match == NULL)
match = fname_m... | static char_u * buflist_match( regmatch_T *rmp, buf_T *buf, int ignore_case) { char_u *match; match = fname_match(rmp, buf->b_sfname, ignore_case); if (match == NULL) match = fname_match(rmp, buf->b_ffname, ignore_case); return match; } | CVE-2022-1674 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9d80aeba36d1ccdc1468b6720810f21d | nginx/njs | 222d6fdcf0c6485ec8e175f3a7b70d650c234b4e | 1,648,477,337 | src/njs_vmcode.c | njs_vmcode_interpreter | c | njs_int_t
njs_vmcode_interpreter(njs_vm_t *vm, u_char *pc, void *promise_cap,
void *async_ctx)
{
u_char *catch;
double num, exponent;
int32_t i32;
uint32_t u32;
njs_str_t string;
njs_uint_... | njs_int_t njs_vmcode_interpreter(njs_vm_t *vm, u_char *pc, void *promise_cap, void *async_ctx) { u_char *catch; double num, exponent; int32_t i32; uint32_t u32; njs_str_t string; njs_uint_t hint; njs_bool_t valid, lambda_call; njs_value_t *retval, *value1, *value2; njs_value_t *src, *s1, *s2, dst; njs_value_t *function... | CVE-2022-29369 | CWE-754 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a4ce6fb6d3a045bcd5a3e078184e940a | FISCO-BCOS/FISCO-BCOS | 111d939c948cc54e5742ac1d50c24cd0e0cf9ab2 | 1,648,515,938 | bcos-pbft/bcos-pbft/pbft/engine/PBFTEngine.cpp | PBFTEngine::handleMsg | cpp | void PBFTEngine::handleMsg(std::shared_ptr<PBFTBaseMessageInterface> _msg)
{
RecursiveGuard l(m_mutex);
switch (_msg->packetType())
{
case PacketType::PrePreparePacket:
{
auto prePrepareMsg = std::dynamic_pointer_cast<PBFTMessageInterface>(_msg);
handlePrePrepareMsg(prePrepareMsg, tr... | void PBFTEngine::handleMsg(std::shared_ptr<PBFTBaseMessageInterface> _msg) { RecursiveGuard l(m_mutex); switch (_msg->packetType()) { case PacketType::PrePreparePacket: { auto prePrepareMsg = std::dynamic_pointer_cast<PBFTMessageInterface>(_msg); handlePrePrepareMsg(prePrepareMsg, true); break; } case PacketType::Prepa... | CVE-2022-28937 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0e2852bf53f47462764f1fc0ee8515ed | axiomatic-systems/Bento4 | 33331ce2d35d45d855af7441db6116b4a9e2b70f | 1,651,431,395 | Source/C++/Apps/Mp42Hls/Mp42Hls.cpp | main | cpp | int
main(int argc, char** argv)
{
if (argc < 2) {
PrintUsageAndExit();
}
// default options
Options.input = NULL;
Options.verbose = false;
Options.hls_version = 0;
Options.pmt_pid = 0x100;
... | int main(int argc, char** argv) { if (argc < 2) { PrintUsageAndExit(); } Options.input = NULL; Options.verbose = false; Options.hls_version = 0; Options.pmt_pid = 0x100; Options.audio_pid = 0x101; Options.video_pid = 0x102; Options.audio_track_id = -1; Options.video_track_id = -1; Options.audio_format = AUDIO_FORMAT_TS... | CVE-2022-29017 | CWE-755 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | aeef6b5106366374def1cd8a4a96bdc2 | vim/vim | 60ae0e71490c97f2871a6344aca61cacf220f813 | 1,652,713,575 | src/cindent.c | skip_string | c | static char_u *
skip_string(char_u *p)
{
int i;
// We loop, because strings may be concatenated: "date""time".
for ( ; ; ++p)
{
if (p[0] == '\'') // 'c' or '\n' or '\000'
{
if (p[1] == NUL) // ' at end of line
break;
i = 2;
if (p[1] == '\\' && p[2] != NUL) // '\n' or... | static char_u * skip_string(char_u *p) { int i; for ( ; ; ++p) { if (p[0] == '\'') { if (p[1] == NUL) break; i = 2; if (p[1] == '\\' && p[2] != NUL) { ++i; while (vim_isdigit(p[i - 1])) ++i; } if (p[i] == '\'') { p += i; continue; } } else if (p[0] == '"') { for (++p; p[0]; ++p) { if (p[0] == '\\' && p[1] != NUL) ++p; ... | CVE-2022-1733 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1d3eae5a355a4d699311c1f8c46696ef | vim/vim | 4748c4bd64610cf943a431d215bb1aad51f8d0b4 | 1,652,798,827 | src/scriptfile.c | get_one_sourceline | c | static char_u *
get_one_sourceline(source_cookie_T *sp)
{
garray_T ga;
int len;
int c;
char_u *buf;
#ifdef USE_CRNL
int has_cr; // CR-LF found
#endif
int have_read = FALSE;
// use a growarray to store the sourced line
ga_init2(&ga, 1, 250);
// Loop until there is a finis... | static char_u * get_one_sourceline(source_cookie_T *sp) { garray_T ga; int len; int c; char_u *buf; #ifdef USE_CRNL int has_cr; #endif int have_read = FALSE; ga_init2(&ga, 1, 250); ++sp->sourcing_lnum; for (;;) { if (ga_grow(&ga, 120) == FAIL) break; if (sp->source_from_buf) { if (sp->buf_lnum >= sp->buflines.ga_len) b... | CVE-2022-1769 | CWE-126;CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 91cdf1866c0163fe9088d833210c6a2c | gpac/gpac | 915e2cba715f36b7cc29e28888117831ca143d78 | 1,652,688,920 | 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-30976 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b0c450d6b72006ca1beabde57ad29cee | gpac/gpac | c535bad50d5812d27ee5b22b54371bddec411514 | 1,652,860,189 | src/bifs/memory_decoder.c | BM_ParseGlobalQuantizer | c | static GF_Err BM_ParseGlobalQuantizer(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list)
{
GF_Node *node;
GF_Command *com;
GF_CommandField *inf;
node = gf_bifs_dec_node(codec, bs, NDT_SFWorldNode);
if (!node) return GF_NON_COMPLIANT_BITSTREAM;
/*reset global QP*/
if (codec->scenegraph->global_qp) {
g... | static GF_Err BM_ParseGlobalQuantizer(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { GF_Node *node; GF_Command *com; GF_CommandField *inf; node = gf_bifs_dec_node(codec, bs, NDT_SFWorldNode); if (!node) return GF_NON_COMPLIANT_BITSTREAM; if (codec->scenegraph->global_qp) { gf_node_unregister(codec->scene... | CVE-2022-1795 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d0325d3fe7cfaabecc6e201385c24bc1 | vim/vim | e2bd8600b873d2cd1f9d667c28cba8b1dba18839 | 1,652,868,717 | 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; char_u *sub_copy = NULL; int delimite... | CVE-2022-1785 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | fdfc5355a4c398d9b1043d834bf270f3 | vim/vim | 28d032cc688ccfda18c5bbcab8b50aba6e18cde5 | 1,652,880,548 | src/window.c | do_window | c | void
do_window(
int nchar,
long Prenum,
int xchar) // extra char from ":wincmd gx" or NUL
{
long Prenum1;
win_T *wp;
#if defined(FEAT_SEARCHPATH) || defined(FEAT_FIND_ID)
char_u *ptr;
linenr_T lnum = -1;
#endif
#ifdef FEAT_FIND_ID
int type = FIND_DEFINE;
int len;
#endif
... | void do_window( int nchar, long Prenum, int xchar) { long Prenum1; win_T *wp; #if defined(FEAT_SEARCHPATH) || defined(FEAT_FIND_ID) char_u *ptr; linenr_T lnum = -1; #endif #ifdef FEAT_FIND_ID int type = FIND_DEFINE; int len; #endif char_u cbuf[40]; if (ERROR_IF_ANY_POPUP_WINDOW) return; #ifdef FEAT_CMDWIN # define CHEC... | CVE-2022-1796 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c80b980761e4f193af88182a0974ac62 | tensorflow/tensorflow | 098e7762d909bac47ce1dbabe6dfd06294cb9d58 | 1,651,161,962 | tensorflow/core/kernels/quantize_and_dequantize_op.cc | Compute | cpp | void Compute(OpKernelContext* ctx) override {
const Tensor& input = ctx->input(0);
OP_REQUIRES(ctx, axis_ < input.dims(),
errors::InvalidArgument(
"Axis requested is larger than input dimensions. Axis: ",
axis_, " Input Dimensions: ", input.dims()));
c... | void Compute(OpKernelContext* ctx) override { const Tensor& input = ctx->input(0); OP_REQUIRES(ctx, axis_ < input.dims(), errors::InvalidArgument( "Axis requested is larger than input dimensions. Axis: ", axis_, " Input Dimensions: ", input.dims())); const int depth = (axis_ == -1) ? 1 : input.dim_size(axis_); Tensor* ... | CVE-2022-29192 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2a9ac6cc6da0a8b63bae550bdbef54d7 | tensorflow/tensorflow | 290bb05c80c327ed74fae1d089f1001b1e2a4ef7 | 1,651,161,745 | tensorflow/core/kernels/summary_tensor_op.cc | Compute | cpp | void Compute(OpKernelContext* c) override {
const Tensor& tag = c->input(0);
OP_REQUIRES(c, TensorShapeUtils::IsScalar(tag.shape()),
errors::InvalidArgument("tag must be scalar"));
const Tensor& tensor = c->input(1);
const Tensor& serialized_summary_metadata_tensor = c->input(2);
Su... | void Compute(OpKernelContext* c) override { const Tensor& tag = c->input(0); OP_REQUIRES(c, TensorShapeUtils::IsScalar(tag.shape()), errors::InvalidArgument("tag must be scalar")); const Tensor& tensor = c->input(1); const Tensor& serialized_summary_metadata_tensor = c->input(2); Summary s; Summary::Value* v = s.add_va... | CVE-2022-29193 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 61ee38ecde3f4a834ec1911d6c5984a2 | tensorflow/tensorflow | cebe3c45d76357d201c65bdbbf0dbe6e8a63bbdb | 1,651,265,629 | tensorflow/core/kernels/stage_op.cc | Compute | cpp | void Compute(OpKernelContext* ctx) override {
Buffer* buf = nullptr;
OP_REQUIRES_OK(ctx, GetBuffer(ctx, def(), &buf));
core::ScopedUnref scope(buf);
Buffer::Tuple tuple;
std::size_t index = ctx->input(0).scalar<int>()();
OP_REQUIRES_OK(ctx, buf->Peek(index, &tuple));
OP_REQUIRES(
... | void Compute(OpKernelContext* ctx) override { Buffer* buf = nullptr; OP_REQUIRES_OK(ctx, GetBuffer(ctx, def(), &buf)); core::ScopedUnref scope(buf); Buffer::Tuple tuple; std::size_t index = ctx->input(0).scalar<int>()(); OP_REQUIRES_OK(ctx, buf->Peek(index, &tuple)); OP_REQUIRES( ctx, tuple.size() == (size_t)ctx->num_o... | CVE-2022-29195 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c61328b0668c36f428813a4400f7e663 | tensorflow/tensorflow | 13d38a07ce9143e044aa737cfd7bb759d0e9b400 | 1,651,163,851 | tensorflow/core/kernels/unsorted_segment_join_op.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& input = context->input(0);
const TensorShape& input_shape = input.shape();
const int32_t input_dims = input_shape.dims();
const Tensor& segment_id = context->input(1);
const TensorShape& segment_id_shape = segment_id.shape();
const... | void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const int32_t input_dims = input_shape.dims(); const Tensor& segment_id = context->input(1); const TensorShape& segment_id_shape = segment_id.shape(); const int32_t segment_dims = s... | CVE-2022-29197 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ffe1c35ef6d386b97d569502bd6cbdae | tensorflow/tensorflow | ea50a40e84f6bff15a0912728e35b657548cef11 | 1,651,525,845 | tensorflow/core/kernels/sparse/sparse_tensor_to_csr_sparse_matrix_op.cc | Compute | cpp | void Compute(OpKernelContext* ctx) final {
const Tensor& indices = ctx->input(0);
const Tensor& values = ctx->input(1);
const Tensor& dense_shape = ctx->input(2);
const int rank = dense_shape.NumElements();
OP_REQUIRES(ctx, rank == 2 || rank == 3,
errors::InvalidArgument("SparseTenso... | void Compute(OpKernelContext* ctx) final { const Tensor& indices = ctx->input(0); const Tensor& values = ctx->input(1); const Tensor& dense_shape = ctx->input(2); const int rank = dense_shape.NumElements(); OP_REQUIRES(ctx, rank == 2 || rank == 3, errors::InvalidArgument("SparseTensor must have rank 2 or 3; ", "but ind... | CVE-2022-29198 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ea4e66c22de1de5819af99d12246ffc8 | tensorflow/tensorflow | 3150642acbbe254e3c3c5d2232143fa591855ac9 | 1,651,264,956 | tensorflow/core/kernels/load_and_remap_matrix_op.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
// Checks what we're remapping and inverts the relevant remapping Tensors to
// be maps with key = old ID, value = new ID.
std::unordered_map<int64_t, int64_t> old_row_to_new_row_map;
std::vector<bool> row_id_present;
const Tensor* row_remapping_t;
... | void Compute(OpKernelContext* context) override { std::unordered_map<int64_t, int64_t> old_row_to_new_row_map; std::vector<bool> row_id_present; const Tensor* row_remapping_t; OP_REQUIRES_OK(context, context->input("row_remapping", &row_remapping_t)); const auto row_remapping = row_remapping_t->vec<int64_t>(); OP_REQUI... | CVE-2022-29199 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1a9e69c8c7b5d45ec33324b69511970d | tensorflow/tensorflow | a5b89cd68c02329d793356bda85d079e9e69b4e7 | 1,651,284,426 | tensorflow/core/common_runtime/eager/execute.cc | GetDeviceForInput | cpp | Status GetDeviceForInput(const EagerOperation& op, const EagerContext& ctx,
TensorHandle* tensor_handle, Device** result) {
Device* cpu_device = ctx.HostCPU();
string device_name;
if (tensor_handle->Type() != TensorHandle::LOCAL) {
Device* device = tensor_handle->device();
device_... | Status GetDeviceForInput(const EagerOperation& op, const EagerContext& ctx, TensorHandle* tensor_handle, Device** result) { Device* cpu_device = ctx.HostCPU(); string device_name; if (tensor_handle->Type() != TensorHandle::LOCAL) { Device* device = tensor_handle->device(); device_name = device != nullptr ? device->name... | CVE-2022-29207 | CWE-20;CWE-475 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0cdf679497afd40a675dc8cd0515d4cd | tensorflow/tensorflow | 84563f265f28b3c36a15335c8b005d405260e943 | 1,650,036,856 | tensorflow/core/kernels/unsorted_segment_join_op.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& input = context->input(0);
const TensorShape& input_shape = input.shape();
const int32_t input_dims = input_shape.dims();
const Tensor& segment_id = context->input(1);
const TensorShape& segment_id_shape = segment_id.shape();
const... | void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const int32_t input_dims = input_shape.dims(); const Tensor& segment_id = context->input(1); const TensorShape& segment_id_shape = segment_id.shape(); const int32_t segment_dims = s... | CVE-2022-29204 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e1290c58bce1e8d5193f01face334833 | tensorflow/tensorflow | 20cb18724b0bf6c09071a3f53434c4eec53cc147 | 1,650,474,326 | tensorflow/core/kernels/unsorted_segment_join_op.cc | Compute | cpp | void Compute(OpKernelContext* context) override {
const Tensor& input = context->input(0);
const TensorShape& input_shape = input.shape();
const int32_t input_dims = input_shape.dims();
const Tensor& segment_id = context->input(1);
const TensorShape& segment_id_shape = segment_id.shape();
const... | void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const int32_t input_dims = input_shape.dims(); const Tensor& segment_id = context->input(1); const TensorShape& segment_id_shape = segment_id.shape(); const int32_t segment_dims = s... | CVE-2022-29204 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2a685ba3ccbd277b633e6492aab7155f | tensorflow/tensorflow | 237822b59fc504dda2c564787f5d3ad9c4aa62d9 | 1,651,110,613 | tensorflow/python/eager/pywrap_tfe_src.cc | SetOpAttrScalar | cpp | bool SetOpAttrScalar(TFE_Context* ctx, TFE_Op* op, const char* key,
PyObject* py_value, TF_AttrType type,
tensorflow::gtl::FlatMap<string, int64_t>* attr_list_sizes,
TF_Status* status) {
if (type == TF_ATTR_STRING) {
tensorflow::StringPiece value;
... | bool SetOpAttrScalar(TFE_Context* ctx, TFE_Op* op, const char* key, PyObject* py_value, TF_AttrType type, tensorflow::gtl::FlatMap<string, int64_t>* attr_list_sizes, TF_Status* status) { if (type == TF_ATTR_STRING) { tensorflow::StringPiece value; if (!ParseStringValue(key, py_value, status, &value)) return false; TFE_... | CVE-2022-29205 | CWE-476;CWE-908 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a917f74ceb89b6af4bf281385b14948f | tensorflow/tensorflow | 11ced8467eccad9c7cb94867708be8fa5c66c730 | 1,651,582,311 | tensorflow/core/kernels/sparse_tensor_dense_add_op.cc | ValidateInputs | cpp | Status ValidateInputs(const Tensor *a_indices, const Tensor *a_values,
const Tensor *a_shape, const Tensor *b) {
if (!TensorShapeUtils::IsMatrix(a_indices->shape())) {
return errors::InvalidArgument(
"Input a_indices should be a matrix but received shape: ",
a_indices->shape(... | Status ValidateInputs(const Tensor *a_indices, const Tensor *a_values, const Tensor *a_shape, const Tensor *b) { if (!TensorShapeUtils::IsMatrix(a_indices->shape())) { return errors::InvalidArgument( "Input a_indices should be a matrix but received shape: ", a_indices->shape().DebugString()); } if (!TensorShapeUtils::I... | CVE-2022-29206 | CWE-20;CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 96d830271a4a306c6d8e008a84172dda | tensorflow/tensorflow | e57fd691c7b0fd00ea3bfe43444f30c1969748b5 | 1,650,472,547 | tensorflow/core/kernels/histogram_op.cc | Compute | cpp | void Compute(OpKernelContext* ctx) override {
const Tensor& values_tensor = ctx->input(0);
const Tensor& value_range_tensor = ctx->input(1);
const Tensor& nbins_tensor = ctx->input(2);
OP_REQUIRES(ctx, TensorShapeUtils::IsVector(value_range_tensor.shape()),
errors::InvalidArgument("valu... | void Compute(OpKernelContext* ctx) override { const Tensor& values_tensor = ctx->input(0); const Tensor& value_range_tensor = ctx->input(1); const Tensor& nbins_tensor = ctx->input(2); OP_REQUIRES(ctx, TensorShapeUtils::IsVector(value_range_tensor.shape()), errors::InvalidArgument("value_range should be a vector.")); O... | CVE-2022-29211 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0be1c1516eed7e4f4e4e348fae0f498b | radareorg/radare2 | fdc9f4c36ca94dc3351efd3a5a6d4810416faf31 | 1,639,007,580 | libr/core/anal_objc.c | objc_build_refs | c | static bool objc_build_refs(RCoreObjc *objc) {
ut64 off;
if (!objc->_const || !objc->_selrefs) {
return false;
}
const ut64 va_const = objc->_const->vaddr;
size_t ss_const = objc->_const->vsize;
const ut64 va_selrefs = objc->_selrefs->vaddr;
size_t ss_selrefs = objc->_selrefs->vsize;
// TODO: check if ss_co... | static bool objc_build_refs(RCoreObjc *objc) { ut64 off; if (!objc->_const || !objc->_selrefs) { return false; } const ut64 va_const = objc->_const->vaddr; size_t ss_const = objc->_const->vsize; const ut64 va_selrefs = objc->_selrefs->vaddr; size_t ss_selrefs = objc->_selrefs->vsize; size_t maxsize = R_MAX (ss_const, s... | CVE-2021-44975 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 03bd6b4324a159f5d1dcf1c04895830e | gost-engine/engine | 7df766124f87768b43b9e8947c5a01e17545772c | 1,653,149,207 | gost_ec_keyx.c | pkey_GOST_ECcp_encrypt | c | static int pkey_GOST_ECcp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out,
size_t *out_len, const unsigned char *key,
size_t key_len)
{
GOST_KEY_TRANSPORT *gkt = NULL;
EVP_PKEY *pubk = EVP_PKEY_CTX_get0_pkey(pctx);
struct gost_pmeth_data *data = EVP_PKEY_... | static int pkey_GOST_ECcp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out, size_t *out_len, const unsigned char *key, size_t key_len) { GOST_KEY_TRANSPORT *gkt = NULL; EVP_PKEY *pubk = EVP_PKEY_CTX_get0_pkey(pctx); struct gost_pmeth_data *data = EVP_PKEY_CTX_get_data(pctx); int pkey_nid = EVP_PKEY_base_id(pubk); ASN1_OB... | CVE-2022-29242 | CWE-120 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 44acff17209b5cc261f47a6601c65333 | nginx/njs | ab1702c7af9959366a5ddc4a75b4357d4e9ebdc1 | 1,649,710,514 | src/njs_module.c | njs_module_path | c | static njs_int_t
njs_module_path(njs_vm_t *vm, const njs_str_t *dir, njs_module_info_t *info)
{
char *p;
size_t length;
njs_bool_t trail;
char src[NJS_MAX_PATH + 1];
trail = 0;
length = info->name.length;
if (dir != NULL) {
length = dir->length;
if (len... | static njs_int_t njs_module_path(njs_vm_t *vm, const njs_str_t *dir, njs_module_info_t *info) { char *p; size_t length; njs_bool_t trail; char src[NJS_MAX_PATH + 1]; trail = 0; length = info->name.length; if (dir != NULL) { length = dir->length; if (length == 0) { return NJS_DECLINED; } trail = (dir->start[dir->length ... | CVE-2022-29379 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f88d9a48af65ce9dfa7a200d86d6383e | vim/vim | 2a585c85013be22f59f184d49612074fd9b115d7 | 1,653,480,938 | src/register.c | do_put | c | void
do_put(
int regname,
char_u *expr_result, // result for regname "=" when compiled
int dir, // BACKWARD for 'P', FORWARD for 'p'
long count,
int flags)
{
char_u *ptr;
char_u *newp, *oldp;
int yanklen;
int totlen = 0; // init for gcc
linenr_T lnum;
colnr_T col;
... | void do_put( int regname, char_u *expr_result, int dir, long count, int flags) { char_u *ptr; char_u *newp, *oldp; int yanklen; int totlen = 0; linenr_T lnum; colnr_T col; long i; int y_type; long y_size; int oldlen; long y_width = 0; colnr_T vcol; int delcount; int incr = 0; long j; struct block_def bd; char_u **y_arr... | CVE-2022-1886 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4562a6ff22d743dc4465eb1b7348c1f7 | radareorg/radare2 | 193f4fe01d7f626e2ea937450f2e0c4604420e9d | 1,653,572,559 | libr/bin/bfile.c | string_scan_range | c | static int string_scan_range(RList *list, RBinFile *bf, int min,
const ut64 from, const ut64 to, int type, int raw, RBinSection *section) {
RBin *bin = bf->rbin;
ut8 tmp[R_STRING_SCAN_BUFFER_SIZE];
ut64 str_start, needle = from;
int count = 0, i, rc, runes;
int str_type = R_STRING_TYPE_DETECT;
// if lis... | static int string_scan_range(RList *list, RBinFile *bf, int min, const ut64 from, const ut64 to, int type, int raw, RBinSection *section) { RBin *bin = bf->rbin; ut8 tmp[R_STRING_SCAN_BUFFER_SIZE]; ut64 str_start, needle = from; int count = 0, i, rc, runes; int str_type = R_STRING_TYPE_DETECT; r_return_val_if_fail (bf,... | CVE-2022-1899 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | da5bd98c95b482cd4a58a17ef5eb89b2 | OpenPrinting/cups | de4f8c196106033e4c372dce3e91b9d42b0b9444 | 1,653,532,024 | scheduler/cert.c | ctcompare | c | static int /* O - 0 on match, non-zero on non-match */
ctcompare(const char *a, /* I - First string */
const char *b) /* I - Second string */
{
int result = 0; /* Result */
while (*a && *b)
{
result |= *a ^ *b;
a ++;
b ++;
}
return (result);
} | static int ctcompare(const char *a, const char *b) { int result = 0; while (*a && *b) { result |= *a ^ *b; a ++; b ++; } return (result); } | CVE-2022-26691 | CWE-697 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 6e5678554462de0e3e8cc0d302ad10f4 | nginx/njs | 2e00e95473861846aa8538be87db07699d9f676d | 1,650,664,956 | src/njs_array.c | njs_array_prototype_splice | c | static njs_int_t
njs_array_prototype_splice(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
njs_index_t unused)
{
int64_t i, n, start, length, items, delta, delete;
njs_int_t ret;
njs_value_t *this, value, del_object;
njs_array_t *array, *deleted;
this = njs_argument(args, 0);
... | static njs_int_t njs_array_prototype_splice(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, n, start, length, items, delta, delete; njs_int_t ret; njs_value_t *this, value, del_object; njs_array_t *array, *deleted; this = njs_argument(args, 0); ret = njs_value_to_object(vm, this); if... | CVE-2022-29779 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b0e657cac100fea2ca2cf5e5714f7878 | bfabiszewski/libmobi | ce0ab6586069791b1e8e2a42f44318e581c39939 | 1,650,717,001 | src/index.c | mobi_trie_insert_infl | c | MOBI_RET mobi_trie_insert_infl(MOBITrie **root, const MOBIIndx *indx, size_t i) {
MOBIIndexEntry e = indx->entries[i];
char *inflected = e.label;
for (size_t j = 0; j < e.tags_count; j++) {
MOBIIndexTag t = e.tags[j];
if (t.tagid == INDX_TAGARR_INFL_PARTS_V1) {
for (size_t k = 0;... | MOBI_RET mobi_trie_insert_infl(MOBITrie **root, const MOBIIndx *indx, size_t i) { MOBIIndexEntry e = indx->entries[i]; char *inflected = e.label; for (size_t j = 0; j < e.tags_count; j++) { MOBIIndexTag t = e.tags[j]; if (t.tagid == INDX_TAGARR_INFL_PARTS_V1) { for (size_t k = 0; k < t.tagvalues_count - 1; k += 2) { ui... | CVE-2022-29788 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 842228c1489a5247654fc485ee2c38e5 | nginx/njs | 5c6130a2a0b4c41ab415f6b8992aa323636338b9 | 1,651,881,335 | src/njs_typed_array.c | njs_typed_array_set_value | c | njs_int_t
njs_typed_array_set_value(njs_vm_t *vm, njs_typed_array_t *array,
uint32_t index, njs_value_t *setval)
{
double num;
njs_int_t ret;
njs_array_buffer_t *buffer;
ret = njs_value_to_number(vm, setval, &num);
if (njs_slow_path(ret != NJS_OK)) {
return ret;
... | njs_int_t njs_typed_array_set_value(njs_vm_t *vm, njs_typed_array_t *array, uint32_t index, njs_value_t *setval) { double num; njs_int_t ret; njs_array_buffer_t *buffer; ret = njs_value_to_number(vm, setval, &num); if (njs_slow_path(ret != NJS_OK)) { return ret; } buffer = njs_typed_array_writable(vm, array); if (njs_s... | CVE-2022-30503 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | bbdb4178a4e5f4e0cf992d50038b0fa6 | thorfdbg/libjpeg | 187035b9726710b4fe11d565c7808975c930895d | 1,653,363,878 | control/hierarchicalbitmaprequester.cpp | HierarchicalBitmapRequester::PrepareForDecoding | cpp | void HierarchicalBitmapRequester::PrepareForDecoding(void)
{
#if ACCUSOFT_CODE
UBYTE i;
BuildCommon();
if (m_ppDecodingMCU == NULL) {
m_ppDecodingMCU = (struct Line **)m_pEnviron->AllocMem(sizeof(struct Line *) * m_ucCount*8);
memset(m_ppDecodingMCU,0,sizeof(struct Line *) * m_ucCount * 8);
}
if (... | void HierarchicalBitmapRequester::PrepareForDecoding(void) { #if ACCUSOFT_CODE UBYTE i; BuildCommon(); if (m_ppDecodingMCU == NULL) { m_ppDecodingMCU = (struct Line **)m_pEnviron->AllocMem(sizeof(struct Line *) * m_ucCount*8); memset(m_ppDecodingMCU,0,sizeof(struct Line *) * m_ucCount * 8); } if (m_ppUpsampler == NULL)... | CVE-2022-31796 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 053b8b2e9cfbc7ad4cc2e3db5ddd2608 | davea42/libdwarf-code | 8151575a6ace77d005ca5bb5d71c1bfdba3f7069 | 1,653,834,939 | src/lib/libdwarf/dwarf_global.c | _dwarf_internal_get_pubnames_like_data | c | int
_dwarf_internal_get_pubnames_like_data(Dwarf_Debug dbg,
const char *secname,
Dwarf_Small * section_data_ptr,
Dwarf_Unsigned section_length,
Dwarf_Global ** globals,
Dwarf_Signed * return_count,
Dwarf_Error * error,
int context_DLA_code,
int global_DLA_code,
int length_err_num,
... | int _dwarf_internal_get_pubnames_like_data(Dwarf_Debug dbg, const char *secname, Dwarf_Small * section_data_ptr, Dwarf_Unsigned section_length, Dwarf_Global ** globals, Dwarf_Signed * return_count, Dwarf_Error * error, int context_DLA_code, int global_DLA_code, int length_err_num, int version_err_num) { Dwarf_Small *pu... | CVE-2022-32200 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 983cb7e922397d610fcd0976e5e146ed | thorfdbg/libjpeg | ea6315164b1649ff932a396b7600eac4bffcfaba | 1,653,912,425 | marker/scan.cpp | Scan::CreateParser | cpp | void Scan::CreateParser(void)
{
ScanType type = m_pFrame->ScanTypeOf();
//
assert(m_pParser == NULL);
//
switch(type) {
case Baseline:
m_pParser = new(m_pEnviron) class SequentialScan(m_pFrame,this,
m_ucScanStart,m_ucScanStop,
... | void Scan::CreateParser(void) { ScanType type = m_pFrame->ScanTypeOf(); assert(m_pParser == NULL); switch(type) { case Baseline: m_pParser = new(m_pEnviron) class SequentialScan(m_pFrame,this, m_ucScanStart,m_ucScanStop, m_ucLowBit + m_ucHiddenBits, m_ucHighBit + m_ucHiddenBits, false,false,false,true); break; case Seq... | CVE-2022-32201 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f1be6644c0136826cc4178f89ce3242f | thorfdbg/libjpeg | 51c3241b6da39df30f016b63f43f31c4011222c7 | 1,653,985,041 | control/linebitmaprequester.cpp | LineBitmapRequester::ReconstructRegion | cpp | void LineBitmapRequester::ReconstructRegion(const RectAngle<LONG> &orgregion,const struct RectangleRequest *rr)
{
class ColorTrafo *ctrafo = ColorTrafoOf(false,!rr->rr_bColorTrafo);
UBYTE i;
if (m_bSubsampling && rr->rr_bUpsampling) {
for(i = rr->rr_usFirstComponent;i <= rr->rr_usLastComponent;i++) {
... | void LineBitmapRequester::ReconstructRegion(const RectAngle<LONG> &orgregion,const struct RectangleRequest *rr) { class ColorTrafo *ctrafo = ColorTrafoOf(false,!rr->rr_bColorTrafo); UBYTE i; if (m_bSubsampling && rr->rr_bUpsampling) { for(i = rr->rr_usFirstComponent;i <= rr->rr_usLastComponent;i++) { class Component *c... | CVE-2022-32202 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | fa05b69db591bfed4f5b553cfdacc036 | wolkykim/qdecoder | ce7c8a7ac450a823a11b06508ef1eb7441241f81 | 1,654,044,011 | src/internal.c | _q_urldecode | c | size_t _q_urldecode(char *str)
{
if (str == NULL) {
return 0;
}
char *pEncPt, *pBinPt = str;
for (pEncPt = str; *pEncPt != '\0'; pEncPt++) {
switch (*pEncPt) {
case '+': {
*pBinPt++ = ' ';
break;
}
case '%': {
... | size_t _q_urldecode(char *str) { if (str == NULL) { return 0; } char *pEncPt, *pBinPt = str; for (pEncPt = str; *pEncPt != '\0'; pEncPt++) { switch (*pEncPt) { case '+': { *pBinPt++ = ' '; break; } case '%': { *pBinPt++ = _q_x2c(*(pEncPt + 1), *(pEncPt + 2)); pEncPt += 2; break; } default: { *pBinPt++ = *pEncPt; break;... | CVE-2022-32265 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b6d53b6332e89684b367ffd67e2b9c4b | bfabiszewski/libmobi | 612562bc1ea38f1708b044e7a079c47a05b1291d | 1,651,769,651 | src/index.c | mobi_parse_index_entry | c | static MOBI_RET mobi_parse_index_entry(MOBIIndx *indx, const MOBIIdxt idxt, const MOBITagx *tagx, const MOBIOrdt *ordt, MOBIBuffer *buf, const size_t curr_number) {
if (indx == NULL) {
debug_print("%s", "INDX structure not initialized\n");
return MOBI_INIT_FAILED;
}
const size_t entry_offset... | static MOBI_RET mobi_parse_index_entry(MOBIIndx *indx, const MOBIIdxt idxt, const MOBITagx *tagx, const MOBIOrdt *ordt, MOBIBuffer *buf, const size_t curr_number) { if (indx == NULL) { debug_print("%s", "INDX structure not initialized\n"); return MOBI_INIT_FAILED; } const size_t entry_offset = indx->entries_count; cons... | CVE-2022-1987 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 043a35108a929f842b804a2575d5bacd | vim/vim | 44a3f3353e0407e9fffee138125a6927d1c9e7e5 | 1,654,519,101 | src/ex_docmd.c | append_command | c | static void
append_command(char_u *cmd)
{
char_u *s = cmd;
char_u *d;
STRCAT(IObuff, ": ");
d = IObuff + STRLEN(IObuff);
while (*s != NUL && d - IObuff + 5 < IOSIZE)
{
if (enc_utf8 ? (s[0] == 0xc2 && s[1] == 0xa0) : *s == 0xa0)
{
s += enc_utf8 ? 2 : 1;
STRCPY(d, "<a0>");
d += 4... | static void append_command(char_u *cmd) { char_u *s = cmd; char_u *d; STRCAT(IObuff, ": "); d = IObuff + STRLEN(IObuff); while (*s != NUL && d - IObuff + 5 < IOSIZE) { if (enc_utf8 ? (s[0] == 0xc2 && s[1] == 0xa0) : *s == 0xa0) { s += enc_utf8 ? 2 : 1; STRCPY(d, "<a0>"); d += 4; } else if (d - IObuff + (*mb_ptr2len)(s)... | CVE-2022-2000 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b8c925796049614ab8ee244532621f86 | pjsip/pjproject | 450baca94f475345542c6953832650c390889202 | 1,654,567,213 | pjlib-util/src/pjlib-util/stun_simple.c | pjstun_parse_msg | c | PJ_DEF(pj_status_t) pjstun_parse_msg( void *buf, pj_size_t buf_len,
pjstun_msg *msg)
{
pj_uint16_t msg_type, msg_len;
char *p_attr;
PJ_CHECK_STACK();
msg->hdr = (pjstun_msg_hdr*)buf;
msg_type = pj_ntohs(msg->hdr->type);
switch (msg_type) {
case PJSTUN_BINDING_REQUEST:
case ... | PJ_DEF(pj_status_t) pjstun_parse_msg( void *buf, pj_size_t buf_len, pjstun_msg *msg) { pj_uint16_t msg_type, msg_len; char *p_attr; PJ_CHECK_STACK(); msg->hdr = (pjstun_msg_hdr*)buf; msg_type = pj_ntohs(msg->hdr->type); switch (msg_type) { case PJSTUN_BINDING_REQUEST: case PJSTUN_BINDING_RESPONSE: case PJSTUN_BINDING_E... | CVE-2022-31031 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f78e8795dfaca22894825bbf6e2dd8a2 | xen-project/xen | 8cc5036bc385112a82f1faff27a0970e6440dfed | 1,654,770,064 | xen/arch/x86/mm.c | _get_page_type | c | static int _get_page_type(struct page_info *page, unsigned long type,
bool preemptible)
{
unsigned long nx, x;
int rc = 0;
ASSERT(!(type & ~(PGT_type_mask | PGT_pae_xen_l2)));
ASSERT(!in_irq());
for ( unsigned long y = ACCESS_ONCE(page->u.inuse.type_info); ; )
{
... | static int _get_page_type(struct page_info *page, unsigned long type, bool preemptible) { unsigned long nx, x; int rc = 0; ASSERT(!(type & ~(PGT_type_mask | PGT_pae_xen_l2))); ASSERT(!in_irq()); for ( unsigned long y = ACCESS_ONCE(page->u.inuse.type_info); ; ) { x = y; nx = x + 1; if ( unlikely((nx & PGT_count_mask) ==... | CVE-2022-26362 | CWE-362 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5f1712858bcab5e97a7a88d5d5827929 | vim/vim | 2813f38e021c6e6581c0c88fcf107e41788bc835 | 1,654,793,664 | src/spell.c | spell_move_to | c | int
spell_move_to(
win_T *wp,
int dir, // FORWARD or BACKWARD
int allwords, // TRUE for "[s"/"]s", FALSE for "[S"/"]S"
int curline,
hlf_T *attrp) // return: attributes of bad word or NULL
// (only when "dir" is FORWARD)
{
linenr_T lnum;
pos_T found_pos;
int found_len = 0;
c... | int spell_move_to( win_T *wp, int dir, int allwords, int curline, hlf_T *attrp) { linenr_T lnum; pos_T found_pos; int found_len = 0; char_u *line; char_u *p; char_u *endp; hlf_T attr; int len; #ifdef FEAT_SYN_HL int has_syntax = syntax_present(wp); #endif int col; int can_spell; char_u *buf = NULL; int buflen = 0; int ... | CVE-2022-2042 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 32feba6e2adcdb7747f028d05d407337 | hpjansson/chafa | e6ce3746cdcf0836b9dae659a5aed15d73a080d8 | 1,654,793,909 | libnsgif/lzw.c | lzw_decode | c | lzw_result lzw_decode(struct lzw_ctx *ctx,
const uint8_t ** const stack_pos_out)
{
lzw_result res;
uint32_t code_new;
uint32_t code_out;
uint8_t last_value;
uint8_t *stack_pos = ctx->stack_base;
uint32_t clear_code = ctx->clear_code;
uint32_t current_entry = ctx->current_entry;
struct lzw_dictionary_entry * c... | lzw_result lzw_decode(struct lzw_ctx *ctx, const uint8_t ** const stack_pos_out) { lzw_result res; uint32_t code_new; uint32_t code_out; uint8_t last_value; uint8_t *stack_pos = ctx->stack_base; uint32_t clear_code = ctx->clear_code; uint32_t current_entry = ctx->current_entry; struct lzw_dictionary_entry * const table... | CVE-2022-2061 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 99ee0a759688541bd99f8fce2f4b127b | brackeen/ok-file-formats | 8d68dad9c9f220058e86dc7f3d05acca6b9aedf5 | 1,631,374,445 | ok_jpg.c | ok_jpg_decode2 | c | static void ok_jpg_decode2(ok_jpg_decoder *decoder) {
ok_jpg *jpg = decoder->jpg;
// Read header
uint8_t jpg_header[2];
if (!ok_read(decoder, jpg_header, 2)) {
return;
}
if (jpg_header[0] != 0xFF || jpg_header[1] != 0xD8) {
ok_jpg_error(jpg, OK_JPG_ERROR_INVALID, "Invalid signat... | static void ok_jpg_decode2(ok_jpg_decoder *decoder) { ok_jpg *jpg = decoder->jpg; uint8_t jpg_header[2]; if (!ok_read(decoder, jpg_header, 2)) { return; } if (jpg_header[0] != 0xFF || jpg_header[1] != 0xD8) { ok_jpg_error(jpg, OK_JPG_ERROR_INVALID, "Invalid signature (not a JPEG file)"); return; } while (!decoder->eoi_... | CVE-2021-41413 | CWE-120 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0b336e4cdf5c04138455c82e8d93b026 | gpac/gpac | 74695dea7278e78af3db467e586233fe8773c07e | 1,631,183,807 | src/filters/dmx_nhml.c | nhmldmx_send_sample | c | static GF_Err nhmldmx_send_sample(GF_Filter *filter, GF_NHMLDmxCtx *ctx)
{
GF_XMLNode *node, *childnode;
u64 sample_duration = 0;
char szMediaTemp[GF_MAX_PATH], szXmlFrom[1000], szXmlTo[1000];
char *szSubSampleName = ctx->is_dims ? "DIMSSubUnit" : "NHNTSubSample";
while ((node = (GF_XMLNode *) gf_list_enum(ctx->r... | static GF_Err nhmldmx_send_sample(GF_Filter *filter, GF_NHMLDmxCtx *ctx) { GF_XMLNode *node, *childnode; u64 sample_duration = 0; char szMediaTemp[GF_MAX_PATH], szXmlFrom[1000], szXmlTo[1000]; char *szSubSampleName = ctx->is_dims ? "DIMSSubUnit" : "NHNTSubSample"; while ((node = (GF_XMLNode *) gf_list_enum(ctx->root->c... | CVE-2021-41458 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b8e9f1fc4540f3f5ed37e9151a05a740 | COVESA/dlt-daemon | 44c814c469eb89cca218a41341d9de5016c5d096 | 1,651,697,237 | src/shared/dlt_config_file_parser.c | dlt_config_file_set_section | c | static int dlt_config_file_set_section(DltConfigFile *file, char *name)
{
int section = file->num_sections;
/* check if adding another section would exceed max number of sections */
if (section >= DLT_CONFIG_FILE_SECTIONS_MAX) {
dlt_log(LOG_WARNING, "Cannot store more sections\n");
return -... | static int dlt_config_file_set_section(DltConfigFile *file, char *name) { int section = file->num_sections; if (section >= DLT_CONFIG_FILE_SECTIONS_MAX) { dlt_log(LOG_WARNING, "Cannot store more sections\n"); return -1; } if (dlt_config_file_is_section_name(file, name) != 0) { dlt_log(LOG_WARNING, "Cannot store section... | CVE-2022-31291 | CWE-415 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 48f19ff9912364f3f166ab6eec006965 | ImageMagick/ImageMagick | 9c9a84cec4ab28ee0b57c2b9266d6fbe68183512 | 1,647,683,438 | coders/psd.c | ReadPSDChannelPixels | c | static MagickBooleanType ReadPSDChannelPixels(Image *image,const ssize_t row,
const PixelChannel channel,const unsigned char *pixels,
ExceptionInfo *exception)
{
Quantum
pixel;
const unsigned char
*p;
Quantum
*q;
ssize_t
x;
size_t
packet_size;
p=pixels;
q=GetAuthenticPixels(im... | static MagickBooleanType ReadPSDChannelPixels(Image *image,const ssize_t row, const PixelChannel channel,const unsigned char *pixels, ExceptionInfo *exception) { Quantum pixel; const unsigned char *p; Quantum *q; ssize_t x; size_t packet_size; p=pixels; q=GetAuthenticPixels(image,0,row,image->columns,1,exception); if (... | CVE-2022-32545 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 04587356a1aea268d49311414b8e1a55 | ImageMagick/ImageMagick | f221ea0fa3171f0f4fdf74ac9d81b203b9534c23 | 1,648,132,487 | coders/pcl.c | ReadPCLImage | c | static Image *ReadPCLImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define CropBox "CropBox"
#define DeviceCMYK "DeviceCMYK"
#define MediaBox "MediaBox"
#define RenderPCLText " Rendering PCL... "
char
command[MagickPathExtent],
*density,
filename[MagickPathExtent],
geometry[Magi... | static Image *ReadPCLImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define CropBox "CropBox" #define DeviceCMYK "DeviceCMYK" #define MediaBox "MediaBox" #define RenderPCLText " Rendering PCL... " char command[MagickPathExtent], *density, filename[MagickPathExtent], geometry[MagickPathExtent], *options, ... | CVE-2022-32546 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 6abdbecb6b3e93b900430371216ec736 | ImageMagick/ImageMagick6 | 29c8abce0da56b536542f76a9ddfebdaab5b2943 | 1,648,132,739 | coders/pcl.c | ReadPCLImage | c | static Image *ReadPCLImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define CropBox "CropBox"
#define DeviceCMYK "DeviceCMYK"
#define MediaBox "MediaBox"
#define RenderPCLText " Rendering PCL... "
char
command[MaxTextExtent],
*density,
filename[MaxTextExtent],
geometry[MaxTextExt... | static Image *ReadPCLImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define CropBox "CropBox" #define DeviceCMYK "DeviceCMYK" #define MediaBox "MediaBox" #define RenderPCLText " Rendering PCL... " char command[MaxTextExtent], *density, filename[MaxTextExtent], geometry[MaxTextExtent], *options, input_fil... | CVE-2022-32546 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b2d6e24ccc464888b8bc86abefdbb8c3 | ImageMagick/ImageMagick6 | dc070da861a015d3c97488fdcca6063b44d47a7b | 1,649,500,854 | magick/property.c | GetEXIFProperty | c | static MagickBooleanType GetEXIFProperty(const Image *image,
const char *property)
{
#define MaxDirectoryStack 16
#define EXIF_DELIMITER "\n"
#define EXIF_NUM_FORMATS 12
#define EXIF_FMT_BYTE 1
#define EXIF_FMT_STRING 2
#define EXIF_FMT_USHORT 3
#define EXIF_FMT_ULONG 4
#define EXIF_FMT_URATIONAL 5
#define EX... | static MagickBooleanType GetEXIFProperty(const Image *image, const char *property) { #define MaxDirectoryStack 16 #define EXIF_DELIMITER "\n" #define EXIF_NUM_FORMATS 12 #define EXIF_FMT_BYTE 1 #define EXIF_FMT_STRING 2 #define EXIF_FMT_USHORT 3 #define EXIF_FMT_ULONG 4 #define EXIF_FMT_URATIONAL 5 #define EXIF_FMT_SBY... | CVE-2022-32547 | CWE-704 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dd6f185786beeb640ad6f4a2f0fcc06e | ImageMagick/ImageMagick | eac8ce4d873f28bb6a46aa3a662fb196b49b95d0 | 1,649,500,443 | MagickCore/property.c | GetEXIFProperty | c | static MagickBooleanType GetEXIFProperty(const Image *image,
const char *property,ExceptionInfo *exception)
{
#define MaxDirectoryStack 16
#define EXIF_DELIMITER "\n"
#define EXIF_NUM_FORMATS 12
#define EXIF_FMT_BYTE 1
#define EXIF_FMT_STRING 2
#define EXIF_FMT_USHORT 3
#define EXIF_FMT_ULONG 4
#define EXIF_FM... | static MagickBooleanType GetEXIFProperty(const Image *image, const char *property,ExceptionInfo *exception) { #define MaxDirectoryStack 16 #define EXIF_DELIMITER "\n" #define EXIF_NUM_FORMATS 12 #define EXIF_FMT_BYTE 1 #define EXIF_FMT_STRING 2 #define EXIF_FMT_USHORT 3 #define EXIF_FMT_ULONG 4 #define EXIF_FMT_URATION... | CVE-2022-32547 | CWE-704 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c9f8bb0edbf863d07f5f215a9203b4dc | ffmpeg | dfefc9097e9b4bb20442e65454a40043bd189b3d | 1,393,791,468 | libavcodec/hevcpred_template.c | FUNC | c | static void FUNC(intra_pred)(HEVCContext *s, int x0, int y0, int log2_size, int c_idx)
{
#define PU(x) \
((x) >> s->sps->log2_min_pu_size)
#define MVF(x, y) \
(s->ref->tab_mvf[(x) + (y) * min_pu_width])
#define MVF_PU(x, y) \
MVF(PU(x0 + ((x) << hshift)), PU(y0 + ((y) << vshift)))
#define IS_INTRA(x, y) \
... | static void FUNC(intra_pred)(HEVCContext *s, int x0, int y0, int log2_size, int c_idx) { #define PU(x) \ ((x) >> s->sps->log2_min_pu_size) #define MVF(x, y) \ (s->ref->tab_mvf[(x) + (y) * min_pu_width]) #define MVF_PU(x, y) \ MVF(PU(x0 + ((x) << hshift)), PU(y0 + ((y) << vshift))) #define IS_INTRA(x, y) \ MVF_PU(x, y).... | CVE-2014-125007 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1a7532a86738303ba30e019d6274d65e | torvalds/linux | 233087ca063686964a53c829d547c7571e3f67bf | 1,650,998,465 | drivers/block/floppy.c | fd_locked_ioctl | c | static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd,
unsigned long param)
{
int drive = (long)bdev->bd_disk->private_data;
int type = ITYPE(drive_state[drive].fd_device);
int i;
int ret;
int size;
union inparam {
struct floppy_struct g; /* geometry */
struct format_descr... | static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long param) { int drive = (long)bdev->bd_disk->private_data; int type = ITYPE(drive_state[drive].fd_device); int i; int ret; int size; union inparam { struct floppy_struct g; struct format_descr f; struct floppy_max_errors ma... | CVE-2022-33981 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5c8679bf2a54a2f7634dabeae561e63f | vim/vim | 2f074f4685897ab7212e25931eeeb0212292829f | 1,655,540,560 | src/textobject.c | current_quote | c | int
current_quote(
oparg_T *oap,
long count,
int include, // TRUE == include quote char
int quotechar) // Quote character
{
char_u *line = ml_get_curline();
int col_end;
int col_start = curwin->w_cursor.col;
int inclusive = FALSE;
int vis_empty = TRUE; // Visual selection <= 1 ... | int current_quote( oparg_T *oap, long count, int include, int quotechar) { char_u *line = ml_get_curline(); int col_end; int col_start = curwin->w_cursor.col; int inclusive = FALSE; int vis_empty = TRUE; int vis_bef_curs = FALSE; int did_exclusive_adj = FALSE; int inside_quotes = FALSE; int selected_quote = FALSE; int ... | CVE-2022-2124 | CWE-126;CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7a7ceaa02a1aa6dd61024ec3612c4a60 | vim/vim | 0e8e938d497260dd57be67b4966cb27a5f72376f | 1,655,545,871 | src/indent.c | get_lisp_indent | c | int
get_lisp_indent(void)
{
pos_T *pos, realpos, paren;
int amount;
char_u *that;
colnr_T col;
colnr_T firsttry;
int parencount, quotecount;
int vi_lisp;
// Set vi_lisp to use the vi-compatible method
vi_lisp = (vim_strchr(p_cpo, CPO_LISP) != NULL);
realpos = curwin->w_curso... | int get_lisp_indent(void) { pos_T *pos, realpos, paren; int amount; char_u *that; colnr_T col; colnr_T firsttry; int parencount, quotecount; int vi_lisp; vi_lisp = (vim_strchr(p_cpo, CPO_LISP) != NULL); realpos = curwin->w_cursor; curwin->w_cursor.col = 0; if ((pos = findmatch(NULL, '(')) == NULL) pos = findmatch(NULL,... | CVE-2022-2125 | CWE-122;CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8648e536c0b0951339a29087da597026 | vim/vim | d6211a52ab9f53b82f884561ed43d2fe4d24ff7d | 1,655,570,894 | src/ex_docmd.c | do_exedit | c | void
do_exedit(
exarg_T *eap,
win_T *old_curwin) // curwin before doing a split or NULL
{
int n;
int need_hide;
int exmode_was = exmode_active;
if ((eap->cmdidx != CMD_pedit && ERROR_IF_POPUP_WINDOW)
|| ERROR_IF_TERM_POPUP_WINDOW)
return;
/*
* ":vi" command ends Ex mode.... | void do_exedit( exarg_T *eap, win_T *old_curwin) { int n; int need_hide; int exmode_was = exmode_active; if ((eap->cmdidx != CMD_pedit && ERROR_IF_POPUP_WINDOW) || ERROR_IF_TERM_POPUP_WINDOW) return; if (exmode_active && (eap->cmdidx == CMD_visual || eap->cmdidx == CMD_view)) { exmode_active = FALSE; ex_pressedreturn =... | CVE-2022-2129 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 310d7ff2654a0d354bdd5d7efe43c3d6 | vim/vim | 6046aded8da002b08d380db29de2ba0268b6616e | 1,655,895,114 | src/ex_getln.c | cmdline_insert_reg | c | static int
cmdline_insert_reg(int *gotesc UNUSED)
{
int i;
int c;
#ifdef USE_ON_FLY_SCROLL
dont_scroll = TRUE; // disallow scrolling here
#endif
putcmdline('"', TRUE);
++no_mapping;
++allow_keys;
i = c = plain_vgetc(); // CTRL-R <char>
if (i == Ctrl_O)
i = Ctrl_R; // CTRL-R CTRL-O =... | static int cmdline_insert_reg(int *gotesc UNUSED) { int i; int c; #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; #endif putcmdline('"', TRUE); ++no_mapping; ++allow_keys; i = c = plain_vgetc(); if (i == Ctrl_O) i = Ctrl_R; if (i == Ctrl_R) c = plain_vgetc(); extra_char = NUL; --no_mapping; --allow_keys; #ifdef FEAT_EVAL ... | CVE-2022-2175 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e4bf89e43b663682df97be77b15c3bf7 | harfbuzz/harfbuzz | 62e803b36173fd096d7ad460dd1d1db9be542593 | 1,654,083,501 | src/hb-ot-color-sbix-table.hh | get_png_extents | cpp | bool get_png_extents (hb_font_t *font,
hb_codepoint_t glyph,
hb_glyph_extents_t *extents) const
{
/* Following code is safe to call even without data.
* But faster to short-circuit. */
if (!has_data ())
return false;
int x_offset = 0, y_offset = 0;
unsigned i... | bool get_png_extents (hb_font_t *font, hb_codepoint_t glyph, hb_glyph_extents_t *extents) const { if (!has_data ()) return false; int x_offset = 0, y_offset = 0; unsigned int strike_ppem = 0; hb_blob_t *blob = reference_png (font, glyph, &x_offset, &y_offset, &strike_ppem); const PNGHeader &png = *blob->as<PNGHeader>()... | CVE-2022-33068 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f358f8a737eedf2514abb1c7ea917353 | argotorg/solidity | 07870d031894505132843555652f88f4cdf45874 | 1,669,653,950 | libsolidity/formal/SMTEncoder.cpp | identifierToVariable | cpp | VariableDeclaration const* SMTEncoder::identifierToVariable(Expression const& _expr) const
{
// We do not use `expressionToDeclaration` here because we are not interested in
// struct.field, for example.
if (auto const* identifier = dynamic_cast<Identifier const*>(&_expr))
if (auto const* varDecl = dynamic_cast<Va... | VariableDeclaration const* SMTEncoder::identifierToVariable(Expression const& _expr) const { if (auto const* identifier = dynamic_cast<Identifier const*>(&_expr)) if (auto const* varDecl = dynamic_cast<VariableDeclaration const*>(identifier->annotation().referencedDeclaration)) { solAssert(m_context.knownVariable(*varD... | CVE-2022-33069 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9763630deffda34fd80ac7faa9a584e1 | vim/vim | e178af5a586ea023622d460779fdcabbbfac0908 | 1,656,176,049 | src/term.c | check_shellsize | c | void
check_shellsize(void)
{
if (Rows < min_rows()) // need room for one window and command line
Rows = min_rows();
limit_screen_size();
} | void check_shellsize(void) { if (Rows < min_rows()) Rows = min_rows(); limit_screen_size(); } | CVE-2022-2206 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1e4af4dced9bf6228bb151db2ebf2789 | vim/vim | c101abff4c6756db4f5e740fde289decb9452efa | 1,656,251,614 | src/diff.c | diff_mark_adjust_tp | c | static void
diff_mark_adjust_tp(
tabpage_T *tp,
int idx,
linenr_T line1,
linenr_T line2,
long amount,
long amount_after)
{
diff_T *dp;
diff_T *dprev;
diff_T *dnext;
int i;
int inserted, deleted;
int n, off;
linenr_T last;
linenr_T lnum_deleted = line1; // lnum... | static void diff_mark_adjust_tp( tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after) { diff_T *dp; diff_T *dprev; diff_T *dnext; int i; int inserted, deleted; int n, off; linenr_T last; linenr_T lnum_deleted = line1; int check_unchanged; if (diff_internal()) { tp->tp_diff_invalid = T... | CVE-2022-2210 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f0575e11b6e9f4eaa113c17f77a216b7 | gpac/gpac | 44fdc3d972c31c56efe73e1a3b63438d46087652 | 1,630,490,650 | src/filter_core/filter_session.c | gf_fs_load_filter | c | GF_EXPORT
GF_Filter *gf_fs_load_filter(GF_FilterSession *fsess, const char *name, GF_Err *err_code)
{
const char *args=NULL;
const char *sep, *file_ext;
u32 i, len, count = gf_list_count(fsess->registry);
Bool quiet = (err_code && (*err_code == GF_EOS)) ? GF_TRUE : GF_FALSE;
assert(fsess);
assert(name);
if (err... | GF_EXPORT GF_Filter *gf_fs_load_filter(GF_FilterSession *fsess, const char *name, GF_Err *err_code) { const char *args=NULL; const char *sep, *file_ext; u32 i, len, count = gf_list_count(fsess->registry); Bool quiet = (err_code && (*err_code == GF_EOS)) ? GF_TRUE : GF_FALSE; assert(fsess); assert(name); if (err_code) *... | CVE-2021-40944 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b9a289c8f6381dfd3ff8c603a7deec50 | DCMTK/dcmtk | 5c14bf53fb42ceca12bbcc0016e8704b1580920d | 1,631,682,252 | dcmnet/libsrc/diutil.cc | DU_getStringDOElement | cpp | OFBool
DU_getStringDOElement(DcmItem *obj, DcmTagKey t, char *s, size_t bufsize)
{
DcmByteString *elem;
DcmStack stack;
OFCondition ec = EC_Normal;
char* aString;
ec = obj->search(t, stack);
elem = (DcmByteString*) stack.top();
if (ec == EC_Normal && elem != NULL) {
if (elem->getLen... | OFBool DU_getStringDOElement(DcmItem *obj, DcmTagKey t, char *s, size_t bufsize) { DcmByteString *elem; DcmStack stack; OFCondition ec = EC_Normal; char* aString; ec = obj->search(t, stack); elem = (DcmByteString*) stack.top(); if (ec == EC_Normal && elem != NULL) { if (elem->getLength() == 0) { s[0] = '\0'; } else { e... | CVE-2021-41689 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2e0dc2ad51e6522df374f27fbd7eae4d | vim/vim | 79481367a457951aabd9501b510fd7e3eb29c3d8 | 1,656,350,110 | src/eval.c | eval0_retarg | c | int
eval0_retarg(
char_u *arg,
typval_T *rettv,
exarg_T *eap,
evalarg_T *evalarg,
char_u **retarg)
{
int ret;
char_u *p;
char_u *expr_end;
int did_emsg_before = did_emsg;
int called_emsg_before = called_emsg;
int flags = evalarg == NULL ? 0 : evalarg->eval_flags;
int ... | int eval0_retarg( char_u *arg, typval_T *rettv, exarg_T *eap, evalarg_T *evalarg, char_u **retarg) { int ret; char_u *p; char_u *expr_end; int did_emsg_before = did_emsg; int called_emsg_before = called_emsg; int flags = evalarg == NULL ? 0 : evalarg->eval_flags; int check_for_end = retarg == NULL; int end_error = FALS... | CVE-2022-2231 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 6d42eb6d90e4cfbd578f8211f242a167 | vim/vim | 083692d598139228e101b8c521aaef7bcf256e9a | 1,656,526,618 | src/message.c | str2special | c | char_u *
str2special(
char_u **sp,
int from) // TRUE for lhs of mapping
{
int c;
static char_u buf[7];
char_u *str = *sp;
int modifiers = 0;
int special = FALSE;
if (has_mbyte)
{
char_u *p;
// Try to un-escape a multi-byte character. Return the un-escaped
// string if i... | char_u * str2special( char_u **sp, int from) { int c; static char_u buf[7]; char_u *str = *sp; int modifiers = 0; int special = FALSE; if (has_mbyte) { char_u *p; p = mb_unescape(sp); if (p != NULL) return p; } c = *str; if (c == K_SPECIAL && str[1] != NUL && str[2] != NUL) { if (str[1] == KS_MODIFIER) { modifiers = st... | CVE-2022-2257 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a34cf723031fd7cbd34484c07259959b | openssl/openssl | 4d8a88c134df634ba610ff8db1eb8478ac5fd345 | 1,655,885,225 | crypto/bn/rsaz_exp_x2.c | ossl_rsaz_mod_exp_avx512_x2 | c | int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1,
const BN_ULONG *base1,
const BN_ULONG *exp1,
const BN_ULONG *m1,
const BN_ULONG *rr1,
BN_ULONG k0_1,
... | int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { typedef void (*AMM)(BN_ULONG *res, ... | CVE-2022-2274 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8f02bff34bb4a599763af8a8cdaeafc5 | vim/vim | d25f003342aca9889067f2e839963dfeccf1fe05 | 1,656,581,419 | src/register.c | do_put | c | void
do_put(
int regname,
char_u *expr_result, // result for regname "=" when compiled
int dir, // BACKWARD for 'P', FORWARD for 'p'
long count,
int flags)
{
char_u *ptr;
char_u *newp, *oldp;
int yanklen;
int totlen = 0; // init for gcc
linenr_T lnum;
colnr_T col;
... | void do_put( int regname, char_u *expr_result, int dir, long count, int flags) { char_u *ptr; char_u *newp, *oldp; int yanklen; int totlen = 0; linenr_T lnum; colnr_T col; long i; int y_type; long y_size; int oldlen; long y_width = 0; colnr_T vcol; int delcount; int incr = 0; long j; struct block_def bd; char_u **y_arr... | CVE-2022-2264 | CWE-122 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b6224d7a595e23b3c16a2cc52ef0124c | kermitt2/pdfalto | 94bff40f4198c60eda7a71f9887fa4f3373b37a3 | 1,661,340,860 | src/pdfalto.cc | main | cpp | int main(int argc, char *argv[]) {
PDFDocXrce *doc;
GString *fileName;
GString *textFileName;
GString *dataDirName;
GString *shortFileName;
GString *annotationfile;
GString *ownerPW, *userPW;
GString *nsURI;
GString *cmd;
XmlAltoOutputDev *xmlAltoOut;
GBool ok;
char *p;
... | int main(int argc, char *argv[]) { PDFDocXrce *doc; GString *fileName; GString *textFileName; GString *dataDirName; GString *shortFileName; GString *annotationfile; GString *ownerPW, *userPW; GString *nsURI; GString *cmd; XmlAltoOutputDev *xmlAltoOut; GBool ok; char *p; int exitCode; char *temp; exitCode = 99; ok = par... | CVE-2022-32324 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 55d84fbef89dbf486ad3f4d07e3cf5fb | hpjansson/chafa | 56fabfa18a6880b4cb66047fa6557920078048d9 | 1,651,437,455 | tools/chafa/xwd-loader.c | load_header | c | static gboolean
load_header (XwdLoader *loader) // gconstpointer in, gsize in_max_len, XwdHeader *header_out)
{
XwdHeader *h = &loader->header;
XwdHeader in;
const guint32 *p = (const guint32 *) ∈
if (!file_mapping_taste (loader->mapping, &in, 0, sizeof (in)))
return FALSE;
h->header_si... | static gboolean load_header (XwdLoader *loader) { XwdHeader *h = &loader->header; XwdHeader in; const guint32 *p = (const guint32 *) ∈ if (!file_mapping_taste (loader->mapping, &in, 0, sizeof (in))) return FALSE; h->header_size = g_ntohl (*(p++)); h->file_version = g_ntohl (*(p++)); h->pixmap_format = g_ntohl (*(p++... | CVE-2022-2301 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | deb5e799d9f2fade4787cdef593760e1 | qemu/qemu | 418ade7849ce7641c0f7333718caf5091a02fd4c | 1,655,818,709 | softmmu/physmem.c | address_space_translate_for_iotlb | c | MemoryRegionSection *
address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr,
hwaddr *xlat, hwaddr *plen,
MemTxAttrs attrs, int *prot)
{
MemoryRegionSection *section;
IOMMUMemoryRegion *iommu_mr;
IOMMUMemoryRegionClass *imr... | MemoryRegionSection * address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr, hwaddr *xlat, hwaddr *plen, MemTxAttrs attrs, int *prot) { MemoryRegionSection *section; IOMMUMemoryRegion *iommu_mr; IOMMUMemoryRegionClass *imrc; IOMMUTLBEntry iotlb; int iommu_idx; AddressSpaceDispatch *d = qatomic_rcu_rea... | CVE-2022-35414 | CWE-908 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 68574797bd230ce14f643cadfe6eafb6 | qemu/qemu | 3517fb726741c109cae7995f9ea46f0cab6187d6 | 1,656,997,790 | target/loongarch/cpu.c | loongarch_cpu_reset | c | static void loongarch_cpu_reset(DeviceState *dev)
{
CPUState *cs = CPU(dev);
LoongArchCPU *cpu = LOONGARCH_CPU(cs);
LoongArchCPUClass *lacc = LOONGARCH_CPU_GET_CLASS(cpu);
CPULoongArchState *env = &cpu->env;
lacc->parent_reset(dev);
env->fcsr0_mask = FCSR0_M1 | FCSR0_M2 | FCSR0_M3;
env->fc... | static void loongarch_cpu_reset(DeviceState *dev) { CPUState *cs = CPU(dev); LoongArchCPU *cpu = LOONGARCH_CPU(cs); LoongArchCPUClass *lacc = LOONGARCH_CPU_GET_CLASS(cpu); CPULoongArchState *env = &cpu->env; lacc->parent_reset(dev); env->fcsr0_mask = FCSR0_M1 | FCSR0_M2 | FCSR0_M3; env->fcsr0 = 0x0; int n; env->CSR_CRM... | CVE-2022-35414 | CWE-908 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2bacb65646afea380da784cdc761c9c1 | squid-cache/squid | 780c4ea1b4c9d2fb41f6962aa6ed73ae57f74b2b | 1,650,282,156 | src/gopher.cc | gopherToHTML | cpp | static void
gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
{
char *pos = inbuf;
char *lpos = NULL;
char *tline = NULL;
LOCAL_ARRAY(char, line, TEMP_BUF_SIZE);
LOCAL_ARRAY(char, tmpbuf, TEMP_BUF_SIZE);
char *name = NULL;
char *selector = NULL;
char *host = NULL;
cha... | static void gopherToHTML(GopherStateData * gopherState, char *inbuf, int len) { char *pos = inbuf; char *lpos = NULL; char *tline = NULL; LOCAL_ARRAY(char, line, TEMP_BUF_SIZE); LOCAL_ARRAY(char, tmpbuf, TEMP_BUF_SIZE); char *name = NULL; char *selector = NULL; char *host = NULL; char *port = NULL; char *escaped_select... | CVE-2021-46784 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1a0e5b00759e7d318e93bf4d0f1a13f4 | squid-cache/squid | 5e2ea2b13bd98f53e29964ca26bb0d602a8a12b9 | 1,650,282,156 | src/gopher.cc | gopherToHTML | cpp | static void
gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
{
char *pos = inbuf;
char *lpos = NULL;
char *tline = NULL;
LOCAL_ARRAY(char, line, TEMP_BUF_SIZE);
LOCAL_ARRAY(char, tmpbuf, TEMP_BUF_SIZE);
char *name = NULL;
char *selector = NULL;
char *host = NULL;
cha... | static void gopherToHTML(GopherStateData * gopherState, char *inbuf, int len) { char *pos = inbuf; char *lpos = NULL; char *tline = NULL; LOCAL_ARRAY(char, line, TEMP_BUF_SIZE); LOCAL_ARRAY(char, tmpbuf, TEMP_BUF_SIZE); char *name = NULL; char *selector = NULL; char *host = NULL; char *port = NULL; char *escaped_select... | CVE-2021-46784 | CWE-617 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 33313fcca9a4c0bcff9b083915632c41 | nginx/njs | 7b3fba59f96e51ddf602222958ec855fba1e4383 | 1,654,924,549 | src/njs_array.c | njs_array_convert_to_slow_array | c | njs_int_t
njs_array_convert_to_slow_array(njs_vm_t *vm, njs_array_t *array)
{
uint32_t i, length;
njs_value_t index, value;
njs_object_prop_t *prop;
if (njs_slow_path(!array->object.fast_array)) {
return NJS_OK;
}
njs_set_array(&value, array);
array->object.fast_a... | njs_int_t njs_array_convert_to_slow_array(njs_vm_t *vm, njs_array_t *array) { uint32_t i, length; njs_value_t index, value; njs_object_prop_t *prop; if (njs_slow_path(!array->object.fast_array)) { return NJS_OK; } njs_set_array(&value, array); array->object.fast_array = 0; length = array->length; for (i = 0; i < length... | CVE-2022-34030 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e71cf5b8a882a5b8fd5a3e155fb98e3a | riscv-software-src/riscv-isa-sim | bb65ba4add396fcb8981e08d676dc0c715c08632 | 1,653,415,739 | riscv/mmu.cc | mmu_t::load_slow_path | cpp | void mmu_t::load_slow_path(reg_t addr, reg_t len, uint8_t* bytes, uint32_t xlate_flags)
{
reg_t paddr = translate(addr, len, LOAD, xlate_flags);
if (!matched_trigger) {
matched_trigger = check_trigger_address_before(triggers::OPERATION_LOAD, addr);
if (matched_trigger)
throw *matched_trigger;
}
... | void mmu_t::load_slow_path(reg_t addr, reg_t len, uint8_t* bytes, uint32_t xlate_flags) { reg_t paddr = translate(addr, len, LOAD, xlate_flags); if (!matched_trigger) { matched_trigger = check_trigger_address_before(triggers::OPERATION_LOAD, addr); if (matched_trigger) throw *matched_trigger; } if (auto host_addr = sim... | CVE-2022-34643 | CWE-755 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0f634109f81720fab7468e6bdfe31fa1 | gsasl/gsasl | 796e4197f696261c1f872d7576371232330bcc30 | 1,657,895,038 | lib/gssapi/server.c | _gsasl_gssapi_server_step | c | int
_gsasl_gssapi_server_step (Gsasl_session * sctx,
void *mech_data,
const char *input, size_t input_len,
char **output, size_t *output_len)
{
_Gsasl_gssapi_server_state *state = mech_data;
gss_buffer_desc bufdesc1, bufdesc2;
OM_uint32 maj_stat, min_stat;
gss_buffer_desc client_name;
gss_OI... | int _gsasl_gssapi_server_step (Gsasl_session * sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len) { _Gsasl_gssapi_server_state *state = mech_data; gss_buffer_desc bufdesc1, bufdesc2; OM_uint32 maj_stat, min_stat; gss_buffer_desc client_name; gss_OID mech_type; char tmp[4]; in... | CVE-2022-2469 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9bb84cc45668e686d9817594bde02caa | dbry/WavPack | 25b4a2725d8568212e7cf89ca05ca29d128af7ac | 1,657,065,499 | src/open_utils.c | process_metadata | c | static int process_metadata (WavpackContext *wpc, WavpackMetadata *wpmd)
{
WavpackStream *wps = wpc->streams [wpc->current_stream];
switch (wpmd->id) {
case ID_DUMMY:
return TRUE;
case ID_DECORR_TERMS:
return read_decorr_terms (wps, wpmd);
case ID_DECORR_WEIGHT... | static int process_metadata (WavpackContext *wpc, WavpackMetadata *wpmd) { WavpackStream *wps = wpc->streams [wpc->current_stream]; switch (wpmd->id) { case ID_DUMMY: return TRUE; case ID_DECORR_TERMS: return read_decorr_terms (wps, wpmd); case ID_DECORR_WEIGHTS: return read_decorr_weights (wps, wpmd); case ID_DECORR_S... | CVE-2022-2476 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7ab528d925425bfb5d5a8f828182e15f | radareorg/radare2 | fc285cecb8469f0262db0170bf6dd7c01d9b8ed5 | 1,656,161,087 | libr/bin/p/bin_xtr_xalz.c | oneshotall_buffer | c | static RList *oneshotall_buffer(RBin *bin, RBuffer *b) {
RList *list = r_list_newf (free);
RBinXtrData *meta = get_the_meta (bin, b);
r_list_append (list, meta);
return list;
} | static RList *oneshotall_buffer(RBin *bin, RBuffer *b) { RList *list = r_list_newf (free); RBinXtrData *meta = get_the_meta (bin, b); r_list_append (list, meta); return list; } | CVE-2022-34520 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8826e1c35b48b26bb1e9ec90cd7866fd | xen-project/xen | a9949efb288fd6e21bbaf9d5826207c7c41cda27 | 1,658,832,874 | xen/arch/x86/mm.c | _get_page_type | c | static int _get_page_type(struct page_info *page, unsigned long type,
bool preemptible)
{
unsigned long nx, x;
int rc = 0;
ASSERT(!(type & ~(PGT_type_mask | PGT_pae_xen_l2)));
ASSERT(!in_irq());
for ( unsigned long y = ACCESS_ONCE(page->u.inuse.type_info); ; )
{
... | static int _get_page_type(struct page_info *page, unsigned long type, bool preemptible) { unsigned long nx, x; int rc = 0; ASSERT(!(type & ~(PGT_type_mask | PGT_pae_xen_l2))); ASSERT(!in_irq()); for ( unsigned long y = ACCESS_ONCE(page->u.inuse.type_info); ; ) { x = y; nx = x + 1; if ( unlikely((nx & PGT_count_mask) ==... | CVE-2022-33745 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7425c7353cf4201439bde01a015ab8b7 | ClusterLabs/booth | 35bf0b7b048d715f671eb68974fb6b4af6528c67 | 1,656,913,187 | src/main.c | setup_config | c | static int setup_config(int type)
{
int rv;
rv = read_config(cl.configfile, type);
if (rv < 0)
goto out;
if (is_auth_req()) {
rv = read_authkey();
if (rv < 0)
goto out;
#if HAVE_LIBGCRYPT
if (!gcry_check_version(NULL)) {
log_error("gcry_check_version");
rv = -ENOENT;
goto out;
}
gcry_contr... | static int setup_config(int type) { int rv; rv = read_config(cl.configfile, type); if (rv < 0) goto out; if (is_auth_req()) { rv = read_authkey(); if (rv < 0) goto out; #if HAVE_LIBGCRYPT if (!gcry_check_version(NULL)) { log_error("gcry_check_version"); rv = -ENOENT; goto out; } gcry_control(GCRYCTL_DISABLE_SECMEM, 0);... | CVE-2022-2553 | CWE-287 | 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.