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
d2b147ab63e5697afab96b089fd152f3
nanopb/nanopb
aa9d0d1ca78d6adec3adfeecf3a706c7f9df81f2
1,580,571,645
pb_decode.c
decode_pointer_field
c
static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter) { #ifndef PB_ENABLE_MALLOC PB_UNUSED(wire_type); PB_UNUSED(iter); PB_RETURN_ERROR(stream, "no malloc support"); #else pb_type_t type; pb_decoder_t func; type = iter->pos->type...
static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter) { #ifndef PB_ENABLE_MALLOC PB_UNUSED(wire_type); PB_UNUSED(iter); PB_RETURN_ERROR(stream, "no malloc support"); #else pb_type_t type; pb_decoder_t func; type = iter->pos->type; func = PB_DECODERS[PB_LTYPE...
CVE-2020-5235
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
53025f24baae80c9db562792012e7a7d
nanopb/nanopb
45582f1f97f49e2abfdba1463d1e1027682d9856
1,580,571,645
pb_decode.c
decode_pointer_field
c
static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) { #ifndef PB_ENABLE_MALLOC PB_UNUSED(wire_type); PB_UNUSED(field); PB_RETURN_ERROR(stream, "no malloc support"); #else switch (PB_HTYPE(field->type)) { case PB_HTYPE_REQUIRED:...
static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field) { #ifndef PB_ENABLE_MALLOC PB_UNUSED(wire_type); PB_UNUSED(field); PB_RETURN_ERROR(stream, "no malloc support"); #else switch (PB_HTYPE(field->type)) { case PB_HTYPE_REQUIRED: case PB_HTYPE_OPTIONAL: cas...
CVE-2020-5235
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
11fc9131ad3b1ac29c705951e8768294
nanopb/nanopb
7b396821ddd06df8e39143f16e1dc0a4645b89a3
1,580,571,645
pb_decode.c
decode_pointer_field
c
static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter) { #ifndef PB_ENABLE_MALLOC UNUSED(wire_type); UNUSED(iter); PB_RETURN_ERROR(stream, "no malloc support"); #else pb_type_t type; pb_decoder_t func; type = iter->pos->type; ...
static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter) { #ifndef PB_ENABLE_MALLOC UNUSED(wire_type); UNUSED(iter); PB_RETURN_ERROR(stream, "no malloc support"); #else pb_type_t type; pb_decoder_t func; type = iter->pos->type; func = PB_DECODERS[PB_LTYPE(t...
CVE-2020-5235
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
899933418f12daa702a45fb60c29cd89
ImageMagick/ImageMagick
f8c318d462270b03e77f082e2a3a32867cacd3c6
1,453,677,007
coders/meta.c
parse8BIM
c
static ssize_t parse8BIM(Image *ifile, Image *ofile) { char brkused, quoted, *line, *token, *newstr, *name; int state, next; unsigned char dataset; unsigned int recnum; int inputlen = MagickPathExtent; MagickOffsetType savedpos, currentpos; ssize_t...
static ssize_t parse8BIM(Image *ifile, Image *ofile) { char brkused, quoted, *line, *token, *newstr, *name; int state, next; unsigned char dataset; unsigned int recnum; int inputlen = MagickPathExtent; MagickOffsetType savedpos, currentpos; ssize_t savedolen = 0L, outputlen = 0L; TokenInfo *token_info; dataset = 0; rec...
CVE-2016-7524
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9c5f00ece095c2464a5a957306c629ab
ImageMagick/ImageMagick
97c9f438a9b3454d085895f4d1f66389fd22a0fb
1,453,676,958
coders/meta.c
parse8BIM
c
static ssize_t parse8BIM(Image *ifile, Image *ofile) { char brkused, quoted, *line, *token, *newstr, *name; int state, next; unsigned char dataset; unsigned int recnum; int inputlen = MaxTextExtent; MagickOffsetType savedpos, currentpos; ssize_t ...
static ssize_t parse8BIM(Image *ifile, Image *ofile) { char brkused, quoted, *line, *token, *newstr, *name; int state, next; unsigned char dataset; unsigned int recnum; int inputlen = MaxTextExtent; MagickOffsetType savedpos, currentpos; ssize_t savedolen = 0L, outputlen = 0L; TokenInfo *token_info; dataset = 0; recnum...
CVE-2016-7524
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
61f170e704e431a79710aba79b8b8c96
php/php-src
0f79b1bf301f455967676b5129240140c5c45b09
1,579,581,197
ext/standard/string.c
php_strip_tags_ex
c
PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, uint8_t *stateptr, const char *allow, size_t allow_len, zend_bool allow_tag_spaces) { char *tbuf, *buf, *p, *tp, *rp, c, lc; int br, depth=0, in_q = 0; uint8_t state = 0; size_t pos, i = 0; char *allow_free = NULL; const char *allow_actual; char is_xml = 0;...
PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, uint8_t *stateptr, const char *allow, size_t allow_len, zend_bool allow_tag_spaces) { char *tbuf, *buf, *p, *tp, *rp, c, lc; int br, depth=0, in_q = 0; uint8_t state = 0; size_t pos, i = 0; char *allow_free = NULL; const char *allow_actual; char is_xml = 0; if (st...
CVE-2020-7059
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ac40fc288f8ebb2bf859da19fa89a57b
libgit2/libgit2
928429c5c96a701bcbcafacb2421a82602b36915
1,416,867,292
src/tree.c
valid_entry_name
c
static int valid_entry_name(const char *filename) { return *filename != '\0' && strchr(filename, '/') == NULL && (*filename != '.' || (strcmp(filename, ".") != 0 && strcmp(filename, "..") != 0 && strcmp(filename, DOT_GIT) != 0)); }
static int valid_entry_name(const char *filename) { return *filename != '\0' && strchr(filename, '/') == NULL && (*filename != '.' || (strcmp(filename, ".") != 0 && strcmp(filename, "..") != 0 && strcmp(filename, DOT_GIT) != 0)); }
CVE-2014-9390
CWE-20
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3c330366b55e06ad232cfd6c7089fbf3
facebook/hhvm
423b4b719afd5ef4e6e19d8447fbf7b6bc0d0a25
1,468,892,663
hphp/runtime/server/fastcgi/fastcgi-transport.cpp
FastCGITransport::onHeader
cpp
void FastCGITransport::onHeader(std::unique_ptr<folly::IOBuf> key_chain, std::unique_ptr<folly::IOBuf> value_chain) { Cursor keyCur(key_chain.get()); auto key = keyCur.readFixedString(key_chain->computeChainDataLength()); Cursor valCur(value_chain.get()); auto value = valCur.rea...
void FastCGITransport::onHeader(std::unique_ptr<folly::IOBuf> key_chain, std::unique_ptr<folly::IOBuf> value_chain) { Cursor keyCur(key_chain.get()); auto key = keyCur.readFixedString(key_chain->computeChainDataLength()); Cursor valCur(value_chain.get()); auto value = valCur.readFixedString(value_chain->computeChainDat...
CVE-2016-1000109
CWE-665
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c226133805a6137cd00e683b465749f8
libarchive/libarchive
94821008d6eea81e315c5881cdf739202961040a
1,580,623,481
libarchive/archive_read_support_format_rar5.c
process_base_block
c
static int process_base_block(struct archive_read* a, struct archive_entry* entry) { struct rar5* rar = get_context(a); uint32_t hdr_crc, computed_crc; size_t raw_hdr_size = 0, hdr_size_len, hdr_size; size_t header_id = 0; size_t header_flags = 0; const uint8_t* p; int ret; enum HEADER_TYPE { HEAD_MARK ...
static int process_base_block(struct archive_read* a, struct archive_entry* entry) { struct rar5* rar = get_context(a); uint32_t hdr_crc, computed_crc; size_t raw_hdr_size = 0, hdr_size_len, hdr_size; size_t header_id = 0; size_t header_flags = 0; const uint8_t* p; int ret; enum HEADER_TYPE { HEAD_MARK = 0x00, HEAD_MAI...
CVE-2020-9308
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c6c48fa1ab239387df0882dfae0f0491
adrienverge/openfortivpn
60660e00b80bad0fadcf39aee86f6f8756c94f91
1,582,311,184
src/tunnel.c
ssl_verify_cert
c
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; char common_name[FIELD_SIZE + 1]; SSL_set_verify(tunnel->ss...
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; char common_name[FIELD_SIZE + 1]; SSL_set_verify(tunnel->ssl_handle, SS...
CVE-2020-7041
CWE-295
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fc26c900a8f4a2b657eff079f63141fe
adrienverge/openfortivpn
9eee997d599a89492281fc7ffdd79d88cd61afc3
1,582,311,491
src/tunnel.c
ssl_verify_cert
c
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; char common_name[FIELD_SIZE + 1]; SSL_set_verify(tunnel->ss...
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; char common_name[FIELD_SIZE + 1]; SSL_set_verify(tunnel->ssl_handle, SS...
CVE-2020-7042
CWE-295;CWE-908
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1cab4c454fced1b78fbcda13069947a4
adrienverge/openfortivpn
6328a070ddaab16faaf008cb9a8a62439c30f2a8
1,582,313,826
src/tunnel.c
ssl_verify_cert
c
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; SSL_set_verify(tunnel->ssl_handle, SSL_VERIFY_PEER, NULL); ...
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; SSL_set_verify(tunnel->ssl_handle, SSL_VERIFY_PEER, NULL); X509 *cert =...
CVE-2020-7043
CWE-295
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
54bd58651909a5b5e62baf893099a40f
php/php-src
409965fe1cfa013abd377a5b567e2d19aac163e8
1,581,825,139
ext/session/session.c
php_session_rfc1867_callback
c
static int php_session_rfc1867_callback(unsigned int event, void *event_data, void **extra) /* {{{ */ { php_session_rfc1867_progress *progress; int retval = SUCCESS; if (php_session_rfc1867_orig_callback) { retval = php_session_rfc1867_orig_callback(event, event_data, extra); } if (!PS(rfc1867_enabled)) { ret...
static int php_session_rfc1867_callback(unsigned int event, void *event_data, void **extra) { php_session_rfc1867_progress *progress; int retval = SUCCESS; if (php_session_rfc1867_orig_callback) { retval = php_session_rfc1867_orig_callback(event, event_data, extra); } if (!PS(rfc1867_enabled)) { return retval; } progre...
CVE-2020-7062
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
2fa07073e39b115f61eb76988ff02b78
php/php-src
d76f7c6c636b8240e06a1fa29eebb98ad005008a
1,581,825,139
ext/session/session.c
php_session_rfc1867_callback
c
static int php_session_rfc1867_callback(unsigned int event, void *event_data, void **extra) /* {{{ */ { php_session_rfc1867_progress *progress; int retval = SUCCESS; if (php_session_rfc1867_orig_callback) { retval = php_session_rfc1867_orig_callback(event, event_data, extra); } if (!PS(rfc1867_enabled)) { ret...
static int php_session_rfc1867_callback(unsigned int event, void *event_data, void **extra) { php_session_rfc1867_progress *progress; int retval = SUCCESS; if (php_session_rfc1867_orig_callback) { retval = php_session_rfc1867_orig_callback(event, event_data, extra); } if (!PS(rfc1867_enabled)) { return retval; } progre...
CVE-2020-7062
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9a82d75686a94d46ffaa32ee858ed8f0
php/php-src
e5c95234d87fcb8f6b7569a96a89d1e1544749a6
1,581,830,234
ext/phar/phar_object.c
phar_build
c
static int phar_build(zend_object_iterator *iter, void *puser) /* {{{ */ { zval *value; zend_bool close_fp = 1; struct _phar_t *p_obj = (struct _phar_t*) puser; uint32_t str_key_len, base_len = p_obj->l; phar_entry_data *data; php_stream *fp; size_t fname_len; size_t contents_len; char *fname, *error = NULL, *...
static int phar_build(zend_object_iterator *iter, void *puser) { zval *value; zend_bool close_fp = 1; struct _phar_t *p_obj = (struct _phar_t*) puser; uint32_t str_key_len, base_len = p_obj->l; phar_entry_data *data; php_stream *fp; size_t fname_len; size_t contents_len; char *fname, *error = NULL, *base = p_obj->b, *s...
CVE-2020-7063
CWE-281
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f329540523578a4e9c78d3f8d326a43e
php/php-src
bcbc053dc1223e20954caf68b43aea2c64e339ad
1,581,830,234
ext/phar/phar_object.c
phar_build
c
static int phar_build(zend_object_iterator *iter, void *puser) /* {{{ */ { zval *value; zend_bool close_fp = 1; struct _phar_t *p_obj = (struct _phar_t*) puser; size_t str_key_len, base_len = p_obj->l; phar_entry_data *data; php_stream *fp; size_t fname_len; size_t contents_len; char *fname, *error = NULL, *ba...
static int phar_build(zend_object_iterator *iter, void *puser) { zval *value; zend_bool close_fp = 1; struct _phar_t *p_obj = (struct _phar_t*) puser; size_t str_key_len, base_len = p_obj->l; phar_entry_data *data; php_stream *fp; size_t fname_len; size_t contents_len; char *fname, *error = NULL, *base = p_obj->b, *sav...
CVE-2020-7063
CWE-281
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
dc72d6c51b18d707db40f418ccd934db
wireshark/wireshark
9fe2de783dbcbe74144678d60a4e3923367044b2
1,582,305,575
epan/dissectors/packet-eap.c
dissect_eap_identity_wlan
c
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; guint mcc_mnc = 0; proto_tree* eap_identity_tree = NULL; guint8 eap_identity_prefix = 0; guint8* identity = NULL; gchar** tok...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; guint mcc_mnc = 0; proto_tree* eap_identity_tree = NULL; guint8 eap_identity_prefix = 0; guint8* identity = NULL; gchar** tokens = NULL; guint ntokens = 0; gboolean ret =...
CVE-2020-9428
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0d5d3f822ace19db330aaaa3ae0b9a94
wireshark/wireshark
6b98dc63701b1da1cc7681cb383dabb0b7007d73
1,581,534,472
plugins/epan/wimax/msg_dlmap.c
wimax_decode_dlmapc
c
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { /* 8.4.5.6.1 [2] Compressed DL-MAP */ /* decode a compressed dl-map and return the length in bytes; */ /* if there is a compressed ul-map, also decode that and include in the length */ guint offset = 0; proto_item *ti = NULL; pro...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti = NULL; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; proto_tree *tree = NULL; proto_tree *ie_tree = NULL; proto_tree *phy_tree = NULL; gint ulmap_appended; guint length, lennib, pad; guin...
CVE-2020-9430
CWE-20
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
14533c281a937b3b7a96291cb7eea019
zhaozg/lua-openssl
a6dc186dd4b6b9e329a93cca3e7e3cfccfdf3cca
1,582,807,995
src/x509.c
luaopen_x509
c
int luaopen_x509(lua_State *L) { auxiliar_newclass(L, "openssl.x509", x509_funcs); lua_newtable(L); luaL_setfuncs(L, R, 0); openssl_register_xname(L); lua_setfield(L, -2, "name"); openssl_register_xattribute(L); lua_setfield(L, -2, "attribute"); openssl_register_xextension(L); lua_setfield(L, -2, "e...
int luaopen_x509(lua_State *L) { auxiliar_newclass(L, "openssl.x509", x509_funcs); lua_newtable(L); luaL_setfuncs(L, R, 0); openssl_register_xname(L); lua_setfield(L, -2, "name"); openssl_register_xattribute(L); lua_setfield(L, -2, "attribute"); openssl_register_xextension(L); lua_setfield(L, -2, "extension"); openssl_...
CVE-2020-9432
CWE-295
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d93e1e932565345f256bf236c9f8253c
glibc
9333498794cde1d5cca518badf79533a24114b6f
1,581,550,316
sysdeps/ieee754/ldbl-96/e_rem_pio2l.c
__ieee754_rem_pio2l
c
int32_t __ieee754_rem_pio2l (long double x, long double *y) { double tx[3], ty[3]; int32_t se, j0; uint32_t i0, i1; int sx; int n, exp; GET_LDOUBLE_WORDS (se, i0, i1, x); sx = (se >> 15) & 1; j0 = (se & 0x7fff) - 0x3fff; if (j0 < -1) { /* |x| < pi/4. */ y[0] = x; y[1] = 0; ...
int32_t __ieee754_rem_pio2l (long double x, long double *y) { double tx[3], ty[3]; int32_t se, j0; uint32_t i0, i1; int sx; int n, exp; GET_LDOUBLE_WORDS (se, i0, i1, x); sx = (se >> 15) & 1; j0 = (se & 0x7fff) - 0x3fff; if (j0 < -1) { y[0] = x; y[1] = 0; return 0; } if (j0 >= 0x8000) { y[0] = x - x; y[1] = y[0]; retur...
CVE-2020-10029
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7a9bab93fd0bde5965a9a97c6955c14c
facebook/fbthrift
3f156207e8a6583d88999487e954320dc18955e6
1,580,171,344
thrift/lib/cpp2/protocol/detail/protocol_methods.h
read
cpp
static void read(Protocol& protocol, Type& out) { std::uint32_t list_size = -1; using WireTypeInfo = ProtocolReaderWireTypeInfo<Protocol>; using WireType = typename WireTypeInfo::WireType; WireType reported_type = WireTypeInfo::defaultValue(); protocol.readListBegin(reported_type, list_size); ...
static void read(Protocol& protocol, Type& out) { std::uint32_t list_size = -1; using WireTypeInfo = ProtocolReaderWireTypeInfo<Protocol>; using WireType = typename WireTypeInfo::WireType; WireType reported_type = WireTypeInfo::defaultValue(); protocol.readListBegin(reported_type, list_size); if (protocol.kOmitsContain...
CVE-2019-3553
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8357199f156afdcd4bee907db8eee36c
systemd/systemd
9a46fc3b9014de1bf0ed1f3004a536b08a19ebb3
1,323,128,848
src/unit.c
unit_load
c
int unit_load(Unit *u) { int r; assert(u); if (u->meta.in_load_queue) { LIST_REMOVE(Meta, load_queue, u->meta.manager->load_queue, &u->meta); u->meta.in_load_queue = false; } if (u->meta.type == _UNIT_TYPE_INVALID) return -EINVAL...
int unit_load(Unit *u) { int r; assert(u); if (u->meta.in_load_queue) { LIST_REMOVE(Meta, load_queue, u->meta.manager->load_queue, &u->meta); u->meta.in_load_queue = false; } if (u->meta.type == _UNIT_TYPE_INVALID) return -EINVAL; if (u->meta.load_state != UNIT_STUB) return 0; if (UNIT_VTABLE(u)->load) if ((r = UNIT_VT...
CVE-2012-1101
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
05e71c0194face62bba4252e415c4e34
osquery/osquery
4b561c773922562edb79bb55bc47dcf6d6d746fa
1,581,531,310
osquery/remote/http_client.cpp
Client::encryptConnection
cpp
void Client::encryptConnection() { boost::asio::ssl::context ctx{boost::asio::ssl::context::sslv23}; const auto remote_hostname = *client_options_.remote_hostname_; bool verify_hostname = false; if (client_options_.always_verify_peer_) { ctx.set_verify_mode(boost::asio::ssl::verify_peer); verify_hostn...
void Client::encryptConnection() { boost::asio::ssl::context ctx{boost::asio::ssl::context::sslv23}; const auto remote_hostname = *client_options_.remote_hostname_; bool verify_hostname = false; if (client_options_.always_verify_peer_) { ctx.set_verify_mode(boost::asio::ssl::verify_peer); verify_hostname = true; } else...
CVE-2020-1887
CWE-295
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
22cdb0ac49a898e2cffba72f6fd42dc9
meetecho/janus-gateway
33430bf8f11e4ca1c006cfe6867a47405424d237
1,583,919,716
plugins/janus_audiobridge.c
janus_audiobridge_process_synchronous_request
c
static json_t *janus_audiobridge_process_synchronous_request(janus_audiobridge_session *session, json_t *message) { json_t *request = json_object_get(message, "request"); const char *request_text = json_string_value(request); /* Parse the message */ int error_code = 0; char error_cause[512]; json_t *root = messa...
static json_t *janus_audiobridge_process_synchronous_request(janus_audiobridge_session *session, json_t *message) { json_t *request = json_object_get(message, "request"); const char *request_text = json_string_value(request); int error_code = 0; char error_cause[512]; json_t *root = message; json_t *response = NULL; if...
CVE-2020-10573
CWE-667
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
901ff0b113b9ebdb093fed3d55abff9e
meetecho/janus-gateway
be33ca4cdaa299ab9497faf43c7d41fa3dc09378
1,584,033,917
plugins/janus_videocall.c
janus_videocall_init
c
int janus_videocall_init(janus_callbacks *callback, const char *config_path) { if(g_atomic_int_get(&stopping)) { /* Still stopping from before */ return -1; } if(callback == NULL || config_path == NULL) { /* Invalid arguments */ return -1; } /* Read configuration */ char filename[255]; g_snprintf(filena...
int janus_videocall_init(janus_callbacks *callback, const char *config_path) { if(g_atomic_int_get(&stopping)) { return -1; } if(callback == NULL || config_path == NULL) { return -1; } char filename[255]; g_snprintf(filename, 255, "%s/%s.jcfg", config_path, JANUS_VIDEOCALL_PACKAGE); JANUS_LOG(LOG_VERB, "Configuration f...
CVE-2020-10575
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
92bce03b02d9fd0411100cf3a4a4f8ea
meetecho/janus-gateway
4dee754d7902cc767132ad713fb185371382cd65
1,583,950,651
janus.c
janus_process_incoming_request
c
int janus_process_incoming_request(janus_request *request) { int ret = -1; if(request == NULL) { JANUS_LOG(LOG_ERR, "Missing request or payload to process, giving up...\n"); return ret; } int error_code = 0; char error_cause[100]; json_t *root = request->message; /* Ok, let's start with the ids */ guint64 s...
int janus_process_incoming_request(janus_request *request) { int ret = -1; if(request == NULL) { JANUS_LOG(LOG_ERR, "Missing request or payload to process, giving up...\n"); return ret; } int error_code = 0; char error_cause[100]; json_t *root = request->message; guint64 session_id = 0, handle_id = 0; json_t *s = json_...
CVE-2020-10577
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
eb20cdf9af49c11eda99152018ba4767
squid-cache/squid
9386e586b5a243cb7f8a8c6610eed50ff1433f66
1,572,779,595
tools/cachemgr.cc
hostname_check
cpp
bool hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]) { return false; } } ...
bool hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]) { return false; } } return 0; }
CVE-2019-18860
CWE-74
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b266b7990cea00a264f5fbc7615d6562
squid-cache/squid
bccdc3e7e62ee6b9d3df05373e97e1c910c646fb
1,572,779,581
tools/cachemgr.cc
hostname_check
cpp
bool hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]) { return 1; } } ret...
bool hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]) { return 1; } } return 0; }
CVE-2019-18860
CWE-74
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
941f1c894e1dba2619565921ba4fb3b1
squid-cache/squid
b24db60a51b099889e8fa96d6371d6a38b38b167
1,572,779,471
tools/cachemgr.cc
hostname_check
cpp
int hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]){ return 1; } } retur...
int hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]){ return 1; } } return 0; }
CVE-2019-18860
CWE-74
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5a8da8b350800305af9f9c27087098ac
squid-cache/squid
95d6ea6b11a1e0c7aa1ea60aea320974ba3ec6b8
1,572,779,497
tools/cachemgr.cc
hostname_check
cpp
bool hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]){ return 1; } } retu...
bool hostname_check(const char *uri) { static CharacterSet hostChars = CharacterSet("host",".:[]_") + CharacterSet::ALPHA + CharacterSet::DIGIT; const auto limit = strlen(uri); for (size_t i = 0; i < limit; i++) { if (!hostChars[uri[i]]){ return 1; } } return 0; }
CVE-2019-18860
CWE-74
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
610dfb75724298a9dac19f8594d89972
weechat/weechat
40ccacb4330a64802b1f1e28ed9a6b6d3ca9197f
1,581,271,485
src/plugins/irc/irc-server.c
irc_server_set_prefix_modes_chars
c
void irc_server_set_prefix_modes_chars (struct t_irc_server *server, const char *prefix) { char *pos; int i, length_modes, length_chars; if (!server || !prefix) return; /* free previous values */ if (server->prefix_modes) { free (server->prefi...
void irc_server_set_prefix_modes_chars (struct t_irc_server *server, const char *prefix) { char *pos; int i, length_modes, length_chars; if (!server || !prefix) return; if (server->prefix_modes) { free (server->prefix_modes); server->prefix_modes = NULL; } if (server->prefix_chars) { free (server->prefix_chars); server...
CVE-2020-9760
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c52d0bfb98ba391ccff51268880a796a
gpac/gpac
98b727637e32d1d4824101d8947e2dbd573d4fc8
1,562,507,661
src/media_tools/mpegts.c
gf_m2ts_process_pat
c
static void gf_m2ts_process_pat(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *ses, GF_List *sections, u8 table_id, u16 ex_table_id, u8 version_number, u8 last_section_number, u32 status) { GF_M2TS_Program *prog; GF_M2TS_SECTION_ES *pmt; u32 i, nb_progs, evt_type; u32 nb_sections; u32 data_size; unsigned char *data; G...
static void gf_m2ts_process_pat(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *ses, GF_List *sections, u8 table_id, u16 ex_table_id, u8 version_number, u8 last_section_number, u32 status) { GF_M2TS_Program *prog; GF_M2TS_SECTION_ES *pmt; u32 i, nb_progs, evt_type; u32 nb_sections; u32 data_size; unsigned char *data; GF_M2TS_...
CVE-2019-20628
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
44518ec5fd59946738e0e47851f7879f
gpac/gpac
1ab4860609f2e7a35634930571e7d0531297e090
1,562,506,955
src/media_tools/mpegts.c
gf_m2ts_process_pmt
c
static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF_List *sections, u8 table_id, u16 ex_table_id, u8 version_number, u8 last_section_number, u32 status) { u32 info_length, pos, desc_len, evt_type, nb_es,i; u32 nb_sections; u32 data_size; u32 nb_hevc, nb_hevc_temp, nb_shvc, nb_shvc_temp,...
static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF_List *sections, u8 table_id, u16 ex_table_id, u8 version_number, u8 last_section_number, u32 status) { u32 info_length, pos, desc_len, evt_type, nb_es,i; u32 nb_sections; u32 data_size; u32 nb_hevc, nb_hevc_temp, nb_shvc, nb_shvc_temp, nb_...
CVE-2019-20630
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
16d6ed8d6cd4ab53edc6f729e6b49e8c
gstreamer/gst-rtsp-server
44ccca3086dd81081d72ca0b21d0ecdde962fb1a
1,584,972,403
gst/rtsp-server/rtsp-auth.c
default_authenticate
c
static gboolean default_authenticate (GstRTSPAuth * auth, GstRTSPContext * ctx) { GstRTSPAuthPrivate *priv = auth->priv; GstRTSPAuthCredential **credentials, **credential; GST_DEBUG_OBJECT (auth, "authenticate"); g_mutex_lock (&priv->lock); /* FIXME, need to ref but we have no way to unref when the ctx is ...
static gboolean default_authenticate (GstRTSPAuth * auth, GstRTSPContext * ctx) { GstRTSPAuthPrivate *priv = auth->priv; GstRTSPAuthCredential **credentials, **credential; GST_DEBUG_OBJECT (auth, "authenticate"); g_mutex_lock (&priv->lock); ctx->token = priv->default_token; g_mutex_unlock (&priv->lock); credentials = g...
CVE-2020-6095
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e661b5e00c128105759da38df6c5ccac
systemd/systemd
bc130b6858327b382b07b3985cf48e2aa9016b2d
1,580,834,344
src/shared/bus-polkit.c
async_polkit_callback
c
static int async_polkit_callback(sd_bus_message *reply, void *userdata, sd_bus_error *error) { _cleanup_(sd_bus_error_free) sd_bus_error error_buffer = SD_BUS_ERROR_NULL; AsyncPolkitQuery *q = userdata; int r; assert(reply); assert(q); assert(q->slot); q->slot =...
static int async_polkit_callback(sd_bus_message *reply, void *userdata, sd_bus_error *error) { _cleanup_(sd_bus_error_free) sd_bus_error error_buffer = SD_BUS_ERROR_NULL; AsyncPolkitQuery *q = userdata; int r; assert(reply); assert(q); assert(q->slot); q->slot = sd_bus_slot_unref(q->slot); assert(!q->reply); q->reply =...
CVE-2020-1712
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f627ad0a19b4302c29ab15d5d3bac6a3
php/php-src
b8048de333325c21c9763aa0270c5cb54f03cbab
1,584,011,044
ext/mbstring/php_unicode.c
convert_case_filter
c
static int convert_case_filter(int c, void *void_data) { struct convert_case_data *data = (struct convert_case_data *) void_data; unsigned out[3]; unsigned len, i; /* Handle invalid characters early, as we assign special meaning to * codepoints above 0xffffff. */ if (UNEXPECTED(c > 0xffffff)) { (*data->next_f...
static int convert_case_filter(int c, void *void_data) { struct convert_case_data *data = (struct convert_case_data *) void_data; unsigned out[3]; unsigned len, i; if (UNEXPECTED(c > 0xffffff)) { (*data->next_filter->filter_function)(c, data->next_filter); return 0; } switch (data->case_mode) { case PHP_UNICODE_CASE_UP...
CVE-2020-7065
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8ffa8c218bf135e1d7040a50039c7ad7
php/php-src
db848e1482c1871d8b2a4185f0c6ac261069e4bd
1,584,011,044
ext/mbstring/php_unicode.c
convert_case_filter
c
static int convert_case_filter(int c, void *void_data) { struct convert_case_data *data = (struct convert_case_data *) void_data; unsigned out[3]; unsigned len, i; /* Handle invalid characters early, as we assign special meaning to * codepoints above 0xffffff. */ if (UNEXPECTED(c > 0xffffff)) { (*data->next_f...
static int convert_case_filter(int c, void *void_data) { struct convert_case_data *data = (struct convert_case_data *) void_data; unsigned out[3]; unsigned len, i; if (UNEXPECTED(c > 0xffffff)) { (*data->next_filter->filter_function)(c, data->next_filter); return 0; } switch (data->case_mode) { case PHP_UNICODE_CASE_UP...
CVE-2020-7065
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b2ec183efe11adb7a398819fbc0f4b75
att/ast
c7de8b641266bac7c77942239ac659edfee9ecd2
1,576,201,610
src/cmd/ksh93/sh/arith.c
sh_strnum
c
Sfdouble_t sh_strnum(Shell_t *shp, const char *str, char **ptr, int mode) { Sfdouble_t d; char *last; if (*str == 0) { if (ptr) *ptr = (char *)str; return 0; } errno = 0; d = number(str, &last, shp->inarith ? 0 : 10, NULL); if (*last) { if (*last != '.' || last[1] !=...
Sfdouble_t sh_strnum(Shell_t *shp, const char *str, char **ptr, int mode) { Sfdouble_t d; char *last; if (*str == 0) { if (ptr) *ptr = (char *)str; return 0; } errno = 0; d = number(str, &last, shp->inarith ? 0 : 10, NULL); if (*last) { if (*last != '.' || last[1] != '.') { d = strval(shp, str, &last, arith, mode); Var...
CVE-2019-14868
CWE-77
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
72b24a84d5f8425e89db5dca8a1127ff
crawl/crawl
768f60da87a3fa0b5561da5ade9309577c176d04
1,581,597,115
crawl-ref/source/clua.cc
CLua::init_libraries
cpp
void CLua::init_libraries() { lua_stack_cleaner clean(state()); // Open Crawl bindings cluaopen_kills(_state); cluaopen_you(_state); cluaopen_item(_state); cluaopen_food(_state); cluaopen_crawl(_state); cluaopen_file(_state); cluaopen_moninf(_state); cluaopen_options(_state); ...
void CLua::init_libraries() { lua_stack_cleaner clean(state()); cluaopen_kills(_state); cluaopen_you(_state); cluaopen_item(_state); cluaopen_food(_state); cluaopen_crawl(_state); cluaopen_file(_state); cluaopen_moninf(_state); cluaopen_options(_state); cluaopen_travel(_state); cluaopen_view(_state); cluaopen_spells(_s...
CVE-2020-11722
CWE-434
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
35cbc909c2261a977ec79e2c679c0de4
GNOME/file-roller
21dfcdbfe258984db89fb65243a1a888924e45a0
1,586,677,115
src/fr-archive-libarchive.c
extract_archive_thread
c
static void extract_archive_thread (GSimpleAsyncResult *result, GObject *object, GCancellable *cancellable) { ExtractData *extract_data; LoadData *load_data; GHashTable *checked_folders; GHashTable *created_files; GHashTable *folders_created...
static void extract_archive_thread (GSimpleAsyncResult *result, GObject *object, GCancellable *cancellable) { ExtractData *extract_data; LoadData *load_data; GHashTable *checked_folders; GHashTable *created_files; GHashTable *folders_created_during_extraction; struct archive *a; struct archive_entry *entry; int r; extr...
CVE-2020-11736
CWE-22;CWE-59
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
84023904e8766ae5764d643be0710b08
xen-project/xen
0763a7ebfcdad66cf9e5475a1301eefb29bae9ed
1,586,860,353
xen/common/xenoprof.c
alloc_xenoprof_struct
c
static int alloc_xenoprof_struct( struct domain *d, int max_samples, int is_passive) { struct vcpu *v; int nvcpu, npages, bufsize, max_bufsize; unsigned max_max_samples; int i; nvcpu = 0; for_each_vcpu ( d, v ) nvcpu++; if ( !nvcpu ) return -EINVAL; d->xenoprof = x...
static int alloc_xenoprof_struct( struct domain *d, int max_samples, int is_passive) { struct vcpu *v; int nvcpu, npages, bufsize, max_bufsize; unsigned max_max_samples; int i; nvcpu = 0; for_each_vcpu ( d, v ) nvcpu++; if ( !nvcpu ) return -EINVAL; d->xenoprof = xzalloc(struct xenoprof); if ( d->xenoprof == NULL ) { p...
CVE-2020-11740
CWE-212
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1e01b585ddfcdb6370b708d6a74c5c18
xen-project/xen
d6f22d5d9e8d6848ec229083ac9fb044f0adea93
1,586,860,952
xen/common/grant_table.c
do_grant_table_op
c
long do_grant_table_op( unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) uop, unsigned int count) { long rc; unsigned int opaque_in = cmd & GNTTABOP_ARG_MASK, opaque_out = 0; if ( (int)count < 0 ) return -EINVAL; if ( (cmd &= GNTTABOP_CMD_MASK) != GNTTABOP_cache_flush && opaque_in ) ...
long do_grant_table_op( unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) uop, unsigned int count) { long rc; unsigned int opaque_in = cmd & GNTTABOP_ARG_MASK, opaque_out = 0; if ( (int)count < 0 ) return -EINVAL; if ( (cmd &= GNTTABOP_CMD_MASK) != GNTTABOP_cache_flush && opaque_in ) return -EINVAL; rc = -EFAULT; switch (...
CVE-2020-11742
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f80e469a1eb18e9aea09d0659fce69c3
xen-project/xen
da0c66c8f48042a0186799014af69db0303b1da5
1,586,860,862
xen/common/grant_table.c
map_grant_ref
c
static void map_grant_ref( struct gnttab_map_grant_ref *op) { struct domain *ld, *rd, *owner = NULL; struct grant_table *lgt, *rgt; grant_ref_t ref; grant_handle_t handle; mfn_t mfn; struct page_info *pg = NULL; int rc = GNTST_okay; unsigned int cache_flags, clear_flags ...
static void map_grant_ref( struct gnttab_map_grant_ref *op) { struct domain *ld, *rd, *owner = NULL; struct grant_table *lgt, *rgt; grant_ref_t ref; grant_handle_t handle; mfn_t mfn; struct page_info *pg = NULL; int rc = GNTST_okay; unsigned int cache_flags, clear_flags = 0, refcnt = 0, typecnt = 0; bool host_map_creat...
CVE-2020-11743
CWE-755
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0b8eee6388958585e32416a8b5b8486e
git/git
9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b
1,583,960,021
credential.c
credential_write_item
c
static void credential_write_item(FILE *fp, const char *key, const char *value) { if (!value) return; fprintf(fp, "%s=%s\n", key, value); }
static void credential_write_item(FILE *fp, const char *key, const char *value) { if (!value) return; fprintf(fp, "%s=%s\n", key, value); }
CVE-2020-5260
CWE-522
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ad8df3f4b975c8ed6a54af5182d82034
GNOME/evolution
6489f20d6905cc797e2b2581c415e558c457caa7
1,581,526,792
src/composer/e-msg-composer.c
handle_mailto
c
static void handle_mailto (EMsgComposer *composer, const gchar *mailto) { EAttachmentView *view; EAttachmentStore *store; EComposerHeaderTable *table; GList *to = NULL, *cc = NULL, *bcc = NULL; EDestination **tov, **ccv, **bccv; gchar *subject = NULL, *body = NULL; gchar *header, *content, *buf; ...
static void handle_mailto (EMsgComposer *composer, const gchar *mailto) { EAttachmentView *view; EAttachmentStore *store; EComposerHeaderTable *table; GList *to = NULL, *cc = NULL, *bcc = NULL; EDestination **tov, **ccv, **bccv; gchar *subject = NULL, *body = NULL; gchar *header, *content, *buf; gsize nread, nwritten; ...
CVE-2020-11879
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8095e5246a9b34223dc35bd796f22a1d
contiki-ng/contiki-ng
f7377945e41cb1318b51341fcb055351457dc61d
1,569,497,209
os/net/ipv6/sicslowpan.c
copy_frags2uip
c
static bool copy_frags2uip(int context) { int i; /* Copy from the fragment context info buffer first */ memcpy((uint8_t *)UIP_IP_BUF, (uint8_t *)frag_info[context].first_frag, frag_info[context].first_frag_len); /* Ensure that no previous data is used for reassembly in case of missing fragments. */ ...
static bool copy_frags2uip(int context) { int i; memcpy((uint8_t *)UIP_IP_BUF, (uint8_t *)frag_info[context].first_frag, frag_info[context].first_frag_len); memset((uint8_t *)UIP_IP_BUF + frag_info[context].first_frag_len, 0, frag_info[context].len - frag_info[context].first_frag_len); for(i = 0; i < SICSLOWPAN_FRAGMEN...
CVE-2019-8359
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f4a5c0460448b757279d75757d7b955e
contiki-ng/contiki-ng
ac2eb7e38d68f4014ab3cce4c93c1238f8eea216
1,554,464,721
os/net/ipv6/sicslowpan.c
uncompress_hdr_iphc
c
static void uncompress_hdr_iphc(uint8_t *buf, uint16_t ip_len) { uint8_t tmp, iphc0, iphc1, nhc; struct uip_ext_hdr *exthdr; uint8_t* last_nextheader; uint8_t* ip_payload; uint8_t ext_hdr_len = 0; /* at least two byte will be used for the encoding */ hc06_ptr = packetbuf_ptr + packetbuf_hdr_len + 2; i...
static void uncompress_hdr_iphc(uint8_t *buf, uint16_t ip_len) { uint8_t tmp, iphc0, iphc1, nhc; struct uip_ext_hdr *exthdr; uint8_t* last_nextheader; uint8_t* ip_payload; uint8_t ext_hdr_len = 0; hc06_ptr = packetbuf_ptr + packetbuf_hdr_len + 2; iphc0 = PACKETBUF_IPHC_BUF[0]; iphc1 = PACKETBUF_IPHC_BUF[1]; if(iphc1 & ...
CVE-2019-8359
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
14ddf79cf871e981838ca547d472a5f3
contiki-ng/contiki-ng
17b806a3d95a82f681a895bd4a17b6d6adf31387
1,556,894,144
os/net/ipv6/sicslowpan.c
output
c
static uint8_t output(const linkaddr_t *localdest) { int frag_needed; /* The MAC address of the destination of the packet */ linkaddr_t dest; /* init */ uncomp_hdr_len = 0; packetbuf_hdr_len = 0; /* reset packetbuf buffer */ packetbuf_clear(); packetbuf_ptr = packetbuf_dataptr(); if(callback) { ...
static uint8_t output(const linkaddr_t *localdest) { int frag_needed; linkaddr_t dest; uncomp_hdr_len = 0; packetbuf_hdr_len = 0; packetbuf_clear(); packetbuf_ptr = packetbuf_dataptr(); if(callback) { set_packet_attrs(); } if(localdest == NULL) { linkaddr_copy(&dest, &linkaddr_null); } else { linkaddr_copy(&dest, local...
CVE-2019-8359
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fb212f41b275be14436810db42c529de
contiki-ng/contiki-ng
4379a2eb31d4c1aabc291f779ede62939e93cf84
1,556,890,494
os/net/ipv6/sicslowpan.c
copy_frags2uip
c
static bool copy_frags2uip(int context) { int i; /* Copy from the fragment context info buffer first */ memcpy((uint8_t *)UIP_IP_BUF, (uint8_t *)frag_info[context].first_frag, frag_info[context].first_frag_len); for(i = 0; i < SICSLOWPAN_FRAGMENT_BUFFERS; i++) { /* And also copy all matching fragm...
static bool copy_frags2uip(int context) { int i; memcpy((uint8_t *)UIP_IP_BUF, (uint8_t *)frag_info[context].first_frag, frag_info[context].first_frag_len); for(i = 0; i < SICSLOWPAN_FRAGMENT_BUFFERS; i++) { if(frag_buf[i].len > 0 && frag_buf[i].index == context) { if((frag_buf[i].offset << 3) + frag_buf[i].len > sizeo...
CVE-2019-8359
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ad776fa15bf322378c77e3110296e284
squid-cache/squid
eeebf0f37a72a2de08348e85ae34b02c34e9a811
1,585,819,005
src/auth/digest/Config.cc
authDigestNonceLink
cpp
static void authDigestNonceLink(digest_nonce_h * nonce) { assert(nonce != NULL); ++nonce->references; debugs(29, 9, "nonce '" << nonce << "' now at '" << nonce->references << "'."); }
static void authDigestNonceLink(digest_nonce_h * nonce) { assert(nonce != NULL); ++nonce->references; debugs(29, 9, "nonce '" << nonce << "' now at '" << nonce->references << "'."); }
CVE-2020-11945
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8da24c2d08558244d044ded606546ab9
OpenVPN/openvpn
37bc691e7d26ea4eb61a8a434ebd7a9ae76225ab
1,586,928,617
src/openvpn/multi.c
multi_process_incoming_link
c
bool multi_process_incoming_link(struct multi_context *m, struct multi_instance *instance, const unsigned int mpp_flags) { struct gc_arena gc = gc_new(); struct context *c; struct mroute_addr src, dest; unsigned int mroute_flags; struct multi_instance *mi; bool ret = true; bool floated = fa...
bool multi_process_incoming_link(struct multi_context *m, struct multi_instance *instance, const unsigned int mpp_flags) { struct gc_arena gc = gc_new(); struct context *c; struct mroute_addr src, dest; unsigned int mroute_flags; struct multi_instance *mi; bool ret = true; bool floated = false; if (m->pending) { return...
CVE-2020-11810
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
216d94c43e2df7e5472b731aca0f0382
libgit2/libgit2
3f7851eadca36a99627ad78cbe56a40d3776ed01
1,568,802,725
src/path.c
verify_dotgit_ntfs
c
GIT_INLINE(bool) verify_dotgit_ntfs(git_repository *repo, const char *path, size_t len) { git_buf *reserved = git_repository__reserved_names_win32; size_t reserved_len = git_repository__reserved_names_win32_len; size_t start = 0, i; if (repo) git_repository__reserved_names(&reserved, &reserved_len, repo, true); ...
GIT_INLINE(bool) verify_dotgit_ntfs(git_repository *repo, const char *path, size_t len) { git_buf *reserved = git_repository__reserved_names_win32; size_t reserved_len = git_repository__reserved_names_win32_len; size_t start = 0, i; if (repo) git_repository__reserved_names(&reserved, &reserved_len, repo, true); for (i ...
CVE-2020-12278
CWE-706
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c64a2ab71e197b7f1e79723f364a73ca
taglib/taglib
dfa33bec0806cbb45785accb8cc6c2048a7d40cf
1,699,188,018
taglib/riff/rifffile.cpp
RIFF::File::updateGlobalSize
cpp
void RIFF::File::updateGlobalSize() { const Chunk first = d->chunks.front(); const Chunk last = d->chunks.back(); d->size = static_cast<unsigned int>(last.offset + last.size + last.padding - first.offset + 12); const ByteVector data = ByteVector::fromUInt(d->size, d->endianness == BigEndian); insert(data, d...
void RIFF::File::updateGlobalSize() { const Chunk first = d->chunks.front(); const Chunk last = d->chunks.back(); d->size = static_cast<unsigned int>(last.offset + last.size + last.padding - first.offset + 12); const ByteVector data = ByteVector::fromUInt(d->size, d->endianness == BigEndian); insert(data, d->sizeOffset...
CVE-2023-47466
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
12c712df4d98465fd793c22b5a0f1c5c
uclouvain/openjpeg
d903fbb4ab9ccf9b96c8bc7398fafc0007505a37
1,708,269,420
src/lib/openjp2/dwt.c
opj_dwt_decode_tile
c
static OPJ_BOOL opj_dwt_decode_tile(opj_thread_pool_t* tp, opj_tcd_tilecomp_t* tilec, OPJ_UINT32 numres) { opj_dwt_t h; opj_dwt_t v; opj_tcd_resolution_t* tr = tilec->resolutions; OPJ_UINT32 rw = (OPJ_UINT32)(tr->x1 - tr->x0); /* wi...
static OPJ_BOOL opj_dwt_decode_tile(opj_thread_pool_t* tp, opj_tcd_tilecomp_t* tilec, OPJ_UINT32 numres) { opj_dwt_t h; opj_dwt_t v; opj_tcd_resolution_t* tr = tilec->resolutions; OPJ_UINT32 rw = (OPJ_UINT32)(tr->x1 - tr->x0); OPJ_UINT32 rh = (OPJ_UINT32)(tr->y1 - tr->y0); OPJ_UINT32 w = (OPJ_UINT32)(tilec->resolutions...
CVE-2025-50952
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
eb55c8f7c1c8af2651c00fa7306e8693
Ardour/ardour
96daa4036a
1,583,934,582
libs/pbd/xml++.cc
find_impl
cpp
static XMLSharedNodeList* find_impl(xmlXPathContext* ctxt, const string& xpath) { xmlXPathObject* result = xmlXPathEval((const xmlChar*)xpath.c_str(), ctxt); if (!result) { xmlXPathFreeContext(ctxt); xmlFreeDoc(ctxt->doc); throw XMLException("Invalid XPath: " + xpath); } if (result->type != XPATH_NODESET) ...
static XMLSharedNodeList* find_impl(xmlXPathContext* ctxt, const string& xpath) { xmlXPathObject* result = xmlXPathEval((const xmlChar*)xpath.c_str(), ctxt); if (!result) { xmlXPathFreeContext(ctxt); xmlFreeDoc(ctxt->doc); throw XMLException("Invalid XPath: " + xpath); } if (result->type != XPATH_NODESET) { xmlXPathFre...
CVE-2020-22617
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7916cbe3bc3a8c9645d314309cfe0376
puma/puma
436c71807f00e07070902a03f79fd3e130eb6b18
1,633,896,157
ext/puma_http11/http11_parser.c
puma_parser_execute
c
size_t puma_parser_execute(puma_parser *parser, const char *buffer, size_t len, size_t off) { const char *p, *pe; int cs = parser->cs; assert(off <= len && "offset past end of buffer"); p = buffer+off; pe = buffer+len; /* assert(*pe == '\0' && "pointer does not end on NUL"); */ assert((size_t) (pe - p...
size_t puma_parser_execute(puma_parser *parser, const char *buffer, size_t len, size_t off) { const char *p, *pe; int cs = parser->cs; assert(off <= len && "offset past end of buffer"); p = buffer+off; pe = buffer+len; assert((size_t) (pe - p) == len - off && "pointers aren't same distance"); #line 87 "ext/puma_http11/...
CVE-2021-41136
CWE-444
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5a017426e61e1c075a3729f17c9023fc
puma/puma
acdc3ae571dfae0e045cf09a295280127db65c7f
1,634,042,320
ext/puma_http11/http11_parser.c
puma_parser_execute
c
size_t puma_parser_execute(puma_parser *parser, const char *buffer, size_t len, size_t off) { const char *p, *pe; int cs = parser->cs; assert(off <= len && "offset past end of buffer"); p = buffer+off; pe = buffer+len; /* assert(*pe == '\0' && "pointer does not end on NUL"); */ assert((size_t) (pe - p...
size_t puma_parser_execute(puma_parser *parser, const char *buffer, size_t len, size_t off) { const char *p, *pe; int cs = parser->cs; assert(off <= len && "offset past end of buffer"); p = buffer+off; pe = buffer+len; assert((size_t) (pe - p) == len - off && "pointers aren't same distance"); #line 87 "ext/puma_http11/...
CVE-2021-41136
CWE-444
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
67dc9e7c0c1ecae0d43984eb85955709
heimdal/heimdal
04171147948d0a3636bc6374181926f0fb2ec83a
1,630,021,368
kdc/krb5tgs.c
tgs_build_reply
c
static krb5_error_code tgs_build_reply(astgs_request_t priv, hdb_entry_ex *krbtgt, krb5_enctype krbtgt_etype, const krb5_keyblock *replykey, int rk_is_subkey, krb5_ticket *ticket, const char **e_text, AuthorizationData **auth_data, const struct sockaddr *from_addr) { krb5_context context = priv->con...
static krb5_error_code tgs_build_reply(astgs_request_t priv, hdb_entry_ex *krbtgt, krb5_enctype krbtgt_etype, const krb5_keyblock *replykey, int rk_is_subkey, krb5_ticket *ticket, const char **e_text, AuthorizationData **auth_data, const struct sockaddr *from_addr) { krb5_context context = priv->context; krb5_kdc_confi...
CVE-2021-3671
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
dbf998ca77b759fba182353b24b119aa
electron/electron
225a64a3bd6d2bda8dfdbb7a39324326f79eb9b2
1,630,087,222
shell/common/api/electron_api_native_image_win.cc
NativeImage::CreateThumbnailFromPath
cpp
v8::Local<v8::Promise> NativeImage::CreateThumbnailFromPath( v8::Isolate* isolate, const base::FilePath& path, const gfx::Size& size) { gin_helper::Promise<gfx::Image> promise(isolate); v8::Local<v8::Promise> handle = promise.GetHandle(); HRESULT hr; if (size.IsEmpty()) { promise.RejectWithErro...
v8::Local<v8::Promise> NativeImage::CreateThumbnailFromPath( v8::Isolate* isolate, const base::FilePath& path, const gfx::Size& size) { gin_helper::Promise<gfx::Image> promise(isolate); v8::Local<v8::Promise> handle = promise.GetHandle(); HRESULT hr; if (size.IsEmpty()) { promise.RejectWithErrorMessage("size must not b...
CVE-2021-39184
CWE-862
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c9bc2a38feb2bc7dfb7dba20babce115
gpac/gpac
a0e6aa849002863a63e6f9e9daecca47042954c4
1,578,576,909
src/isomedia/box_code_drm.c
senc_Parse
c
GF_Err senc_Parse(GF_BitStream *bs, GF_TrackBox *trak, GF_TrackFragmentBox *traf, GF_SampleEncryptionBox *senc) #else GF_Err senc_Parse(GF_BitStream *bs, GF_TrackBox *trak, void *traf, GF_SampleEncryptionBox *senc) #endif { GF_Err e; u32 i, j, count, sample_number; u64 pos = gf_bs_get_position(bs); #ifdef GPAC_DISA...
GF_Err senc_Parse(GF_BitStream *bs, GF_TrackBox *trak, GF_TrackFragmentBox *traf, GF_SampleEncryptionBox *senc) #else GF_Err senc_Parse(GF_BitStream *bs, GF_TrackBox *trak, void *traf, GF_SampleEncryptionBox *senc) #endif { GF_Err e; u32 i, j, count, sample_number; u64 pos = gf_bs_get_position(bs); #ifdef GPAC_DISABLE_...
CVE-2020-22677
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c6fbe8dec1b478d713b70225bbba16fc
gpac/gpac
7644478ecfa25fd9505ee11ef12deb475cd97025
1,578,576,424
src/isomedia/avc_ext.c
avcc_Read
c
GF_Err avcc_Read(GF_Box *s, GF_BitStream *bs) { u32 i, count; GF_AVCConfigurationBox *ptr = (GF_AVCConfigurationBox *)s; if (ptr->config) gf_odf_avc_cfg_del(ptr->config); ptr->config = gf_odf_avc_cfg_new(); ptr->config->configurationVersion = gf_bs_read_u8(bs); ptr->config->AVCProfileIndication = gf_bs_read_u8(b...
GF_Err avcc_Read(GF_Box *s, GF_BitStream *bs) { u32 i, count; GF_AVCConfigurationBox *ptr = (GF_AVCConfigurationBox *)s; if (ptr->config) gf_odf_avc_cfg_del(ptr->config); ptr->config = gf_odf_avc_cfg_new(); ptr->config->configurationVersion = gf_bs_read_u8(bs); ptr->config->AVCProfileIndication = gf_bs_read_u8(bs); ptr...
CVE-2020-22678
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c78cfded69054e4579ad36c36e44e410
OpenRC/openrc
bb8334104baf4d5a4a442a8647fb9204738f2204
1,633,657,975
src/rc/checkpath.c
clean_path
c
static char *clean_path(char *path) { char *ch; char *ch2; char *str; str = xmalloc(strlen(path)); ch = path; ch2 = str; while (true) { *ch2 = *ch; ch++; ch2++; if (!*(ch-1)) break; while (*(ch - 1) == '/' && *ch == '/') ch++; } /* get rid of trailing / characters */ while ((ch = strrchr(str, ...
static char *clean_path(char *path) { char *ch; char *ch2; char *str; str = xmalloc(strlen(path)); ch = path; ch2 = str; while (true) { *ch2 = *ch; ch++; ch2++; if (!*(ch-1)) break; while (*(ch - 1) == '/' && *ch == '/') ch++; } while ((ch = strrchr(str, '/'))) { if (ch == str) break; if (!*(ch+1)) *ch = 0; else break;...
CVE-2021-42341
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
70b7edb747c7054e83dcf6916bb4df59
vim/vim
35a319b77f897744eec1155b736e9372c9c5575f
1,633,777,135
src/ex_docmd.c
get_address
c
static linenr_T get_address( exarg_T *eap UNUSED, char_u **ptr, cmd_addr_T addr_type, int skip, // only skip the address, don't use it int silent, // no errors or side effects int to_other_file, // flag: may jump to other file int address_count UNUSED) // 1 for first address, >1 after...
static linenr_T get_address( exarg_T *eap UNUSED, char_u **ptr, cmd_addr_T addr_type, int skip, int silent, int to_other_file, int address_count UNUSED) { int c; int i; long n; char_u *cmd; pos_T pos; pos_T *fp; linenr_T lnum; buf_T *buf; cmd = skipwhite(*ptr); lnum = MAXLNUM; do { switch (*cmd) { case '.': ++cmd; swit...
CVE-2021-3875
CWE-122;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3fc8aad924ab8798a4d91ec9e6952904
bfabiszewski/libmobi
c78e186739b50d156cb3da5d08d70294f0490853
1,631,987,775
src/read.c
mobi_parse_huffdic
c
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *huffcdic) { MOBI_RET ret; const size_t offset = mobi_get_kf8offset(m); if (m->mh == NULL || m->mh->huff_rec_index == NULL || m->mh->huff_rec_count == NULL) { debug_print("%s", "HUFF/CDIC records metadata not found in MOBI header\n"); ...
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *huffcdic) { MOBI_RET ret; const size_t offset = mobi_get_kf8offset(m); if (m->mh == NULL || m->mh->huff_rec_index == NULL || m->mh->huff_rec_count == NULL) { debug_print("%s", "HUFF/CDIC records metadata not found in MOBI header\n"); return MOBI_DATA_CORRUPT;...
CVE-2021-3888
CWE-119
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
24f7253f580968edd456129266f66020
eclipse-openj9/openj9
c6e0d9296ff9a3084965d83e207403de373c0bad
1,632,941,024
runtime/compiler/env/VMJ9.cpp
Java_java_lang_invoke_InterfaceHandle_convertITableIndexToVTableIndex
cpp
JNIEXPORT jint JNICALL Java_java_lang_invoke_InterfaceHandle_convertITableIndexToVTableIndex (JNIEnv *env, jclass InterfaceMethodHandle, jlong interfaceArg, jint itableIndex, jlong receiverClassArg) { J9Class *interfaceClass = (J9Class*)(intptr_t)interfaceArg; J9Class *receiverClass = (J9Class*)(intptr_t)...
JNIEXPORT jint JNICALL Java_java_lang_invoke_InterfaceHandle_convertITableIndexToVTableIndex (JNIEnv *env, jclass InterfaceMethodHandle, jlong interfaceArg, jint itableIndex, jlong receiverClassArg) { J9Class *interfaceClass = (J9Class*)(intptr_t)interfaceArg; J9Class *receiverClass = (J9Class*)(intptr_t)receiverClassA...
CVE-2021-41035
CWE-440;CWE-250
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
40b5fb578a248cc01537478742fd2fca
vim/vim
777e7c21b7627be80961848ac560cb0a9978ff43
1,635,170,824
src/move.c
update_topline
c
void update_topline(void) { long line_count; int halfheight; int n; linenr_T old_topline; #ifdef FEAT_DIFF int old_topfill; #endif #ifdef FEAT_FOLDING linenr_T lnum; #endif int check_topline = FALSE; int check_botline = FALSE; long *so_ptr = curwin->w_p_so >= 0 ? &curwin-...
void update_topline(void) { long line_count; int halfheight; int n; linenr_T old_topline; #ifdef FEAT_DIFF int old_topfill; #endif #ifdef FEAT_FOLDING linenr_T lnum; #endif int check_topline = FALSE; int check_botline = FALSE; long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so; int save_so = *so_ptr; if (!scr...
CVE-2021-3903
CWE-122;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6b0eabe38e2221b68c7f2a76c21453f2
hoene/libmysofa
890400ebd092c574707d0c132124f8ff047e20e1
1,633,268,918
src/hdf/dataobject.c
readOHDRHeaderMessageDataLayout
c
static int readOHDRHeaderMessageDataLayout(struct READER *reader, struct DATAOBJECT *data) { int i, err; unsigned size; uint8_t dimensionality, layout_class; uint32_t dataset_element_size; uint64_t data_address, store, data_size; UNUSED(dataset_element_size); ...
static int readOHDRHeaderMessageDataLayout(struct READER *reader, struct DATAOBJECT *data) { int i, err; unsigned size; uint8_t dimensionality, layout_class; uint32_t dataset_element_size; uint64_t data_address, store, data_size; UNUSED(dataset_element_size); UNUSED(data_size); if (fgetc(reader->fhd) != 3) { mylog("obj...
CVE-2021-3756
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ab16a4c533175a5a6c99db58443a99e6
libjxl/libjxl
bb6599932572ed24dbd68b0ea460acbf8d92884e
1,634,743,205
lib/jxl/dec_frame.cc
FrameDecoder::ProcessDCGlobal
cpp
Status FrameDecoder::ProcessDCGlobal(BitReader* br) { PROFILER_FUNC; PassesSharedState& shared = dec_state_->shared_storage; if (shared.frame_header.flags & FrameHeader::kPatches) { bool uses_extra_channels = false; JXL_RETURN_IF_ERROR(shared.image_features.patches.Decode( br, frame_dim_.xsize_pad...
Status FrameDecoder::ProcessDCGlobal(BitReader* br) { PROFILER_FUNC; PassesSharedState& shared = dec_state_->shared_storage; if (shared.frame_header.flags & FrameHeader::kPatches) { bool uses_extra_channels = false; JXL_RETURN_IF_ERROR(shared.image_features.patches.Decode( br, frame_dim_.xsize_padded, frame_dim_.ysize_...
CVE-2021-22563
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bbecc040a5f1b73f3a5428d49088e484
libjxl/libjxl
e05e801278ee1205848e66406a0821f771d47172
1,634,588,776
lib/jxl/dec_cache.cc
LoadBorders
cpp
void LoadBorders(const Rect& block_rect, size_t hshift, size_t vshift, const FrameDimensions& frame_dim, size_t padding, const ImageF& border_storage_h, const ImageF& border_storage_v, const Rect& r, ImageF* plane_out) { constexpr size_t kGroupDataXBorder = PassesDec...
void LoadBorders(const Rect& block_rect, size_t hshift, size_t vshift, const FrameDimensions& frame_dim, size_t padding, const ImageF& border_storage_h, const ImageF& border_storage_v, const Rect& r, ImageF* plane_out) { constexpr size_t kGroupDataXBorder = PassesDecoderState::kGroupDataXBorder; constexpr size_t kGroup...
CVE-2021-22564
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d4d415cc75823076a2dfdf9a795a72d3
fuzzard/xbmc
80c8138c09598e88b4ddb6dbb279fa193bbb3237
1,634,017,110
xbmc/playlists/PlayListPLS.cpp
CPlayListASX::LoadData
cpp
bool CPlayListASX::LoadData(std::istream& stream) { CLog::Log(LOGINFO, "Parsing ASX"); if(stream.peek() == '[') { return LoadAsxIniInfo(stream); } else { CXBMCTinyXML xmlDoc; stream >> xmlDoc; if (xmlDoc.Error()) { CLog::Log(LOGERROR, "Unable to parse ASX info Error: {}", xmlDoc....
bool CPlayListASX::LoadData(std::istream& stream) { CLog::Log(LOGINFO, "Parsing ASX"); if(stream.peek() == '[') { return LoadAsxIniInfo(stream); } else { CXBMCTinyXML xmlDoc; stream >> xmlDoc; if (xmlDoc.Error()) { CLog::Log(LOGERROR, "Unable to parse ASX info Error: {}", xmlDoc.ErrorDesc()); return false; } TiXmlEleme...
CVE-2021-42917
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f6b143915fb7d319cebf5d8c8ab2c8a3
torvalds/linux
fa40d9734a57bcbfa79a280189799f76c88f7bb0
1,635,168,713
net/tipc/crypto.c
tipc_crypto_key_rcv
c
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr) { struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; struct tipc_aead_key *skey = NULL; u16 key_gen = msg_key_gen(hdr); u16 size = msg_data_sz(hdr); u8 *data = msg_data(hdr); spin_lock(&rx->lock); if (unlikely(rx->skey || (key_gen...
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr) { struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; struct tipc_aead_key *skey = NULL; u16 key_gen = msg_key_gen(hdr); u16 size = msg_data_sz(hdr); u8 *data = msg_data(hdr); spin_lock(&rx->lock); if (unlikely(rx->skey || (key_gen == rx->...
CVE-2021-43267
CWE-1284
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8dd2719a5747925eeee2d9368979d07f
vim/vim
0b5b06cb4777d1401fdf83e7d48d287662236e7e
1,636,035,011
src/ex_docmd.c
ex_put
c
static void ex_put(exarg_T *eap) { // ":0put" works like ":1put!". if (eap->line2 == 0) { eap->line2 = 1; eap->forceit = TRUE; } curwin->w_cursor.lnum = eap->line2; do_put(eap->regname, NULL, eap->forceit ? BACKWARD : FORWARD, 1L, PUT_LINE|PUT_CURSLINE); }
static void ex_put(exarg_T *eap) { if (eap->line2 == 0) { eap->line2 = 1; eap->forceit = TRUE; } curwin->w_cursor.lnum = eap->line2; do_put(eap->regname, NULL, eap->forceit ? BACKWARD : FORWARD, 1L, PUT_LINE|PUT_CURSLINE); }
CVE-2021-3927
CWE-122;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
bd414e4224d10bd791e706a926e1a69e
vim/vim
15d9890eee53afc61eb0a03b878a19cb5672f732
1,636,037,165
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-2021-3928
CWE-457;CWE-908
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8324f43f8b514e6a73cebba0571bdd2a
tensorflow/tensorflow
7c1692bd417eb4f9b33ead749a41166d6080af85
1,630,445,034
tensorflow/core/kernels/image/crop_and_resize_op.cc
ComputeAsync
cpp
void ComputeAsync(OpKernelContext* context, DoneCallback done) override { // The shape of 'grads' is [num_boxes, crop_height, crop_width, depth]. const Tensor& grads = context->input(0); // The shape of 'boxes' is [num_boxes, 4]. const Tensor& boxes = context->input(1); // The shape of 'box_index' i...
void ComputeAsync(OpKernelContext* context, DoneCallback done) override { const Tensor& grads = context->input(0); const Tensor& boxes = context->input(1); const Tensor& box_index = context->input(2); const Tensor& image_size = context->input(3); OP_REQUIRES_ASYNC(context, grads.dims() == 4, errors::InvalidArgument("gr...
CVE-2021-41197
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7d9be5ad379c78e93c754ca06721ad41
tensorflow/tensorflow
f09caa532b6e1ac8d2aa61b7832c78c5b79300c6
1,629,381,904
tensorflow/core/kernels/linalg/einsum_op_impl.h
ParseEquation
cpp
static Status ParseEquation(const string& equation, OperandLabels* input_labels, Labels* output_labels, std::vector<DimensionType>* label_types, OperandLabelCounts* input_label_counts, ...
static Status ParseEquation(const string& equation, OperandLabels* input_labels, Labels* output_labels, std::vector<DimensionType>* label_types, OperandLabelCounts* input_label_counts, LabelCounts* output_label_counts, gtl::InlinedVector<bool, 2>* input_has_ellipsis, bool* output_has_ellipsis) { gtl::InlinedVector<stri...
CVE-2021-41201
CWE-824
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7802c98e4ffdc64de38edef63275dcf0
tensorflow/tensorflow
701cfaca222a82afbeeb17496bd718baa65a67d2
1,635,285,002
tensorflow/core/ops/count_ops.cc
SparseCountSparseOutputShapeFn
cpp
Status SparseCountSparseOutputShapeFn(InferenceContext *c) { auto rank = c->Dim(c->input(0), 1); auto nvals = c->UnknownDim(); c->set_output(0, c->Matrix(nvals, rank)); // out.indices c->set_output(1, c->Vector(nvals)); // out.values c->set_output(2, c->Vector(rank)); // out.dense_shape retu...
Status SparseCountSparseOutputShapeFn(InferenceContext *c) { auto rank = c->Dim(c->input(0), 1); auto nvals = c->UnknownDim(); c->set_output(0, c->Matrix(nvals, rank)); c->set_output(1, c->Vector(nvals)); c->set_output(2, c->Vector(rank)); return Status::OK(); }
CVE-2021-41210
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
2ebd9886e9fc44555b1c7c06bcafe075
tensorflow/tensorflow
e8dc63704c88007ee4713076605c90188d66f3d2
1,629,844,897
tensorflow/core/util/tensor_slice_reader.cc
TensorSliceReader::LoadShard
cpp
void TensorSliceReader::LoadShard(int shard) const { CHECK_LT(shard, sss_.size()); if (sss_[shard] || !status_.ok()) { return; // Already loaded, or invalid. } string value; SavedTensorSlices sts; const string fname = fnames_[shard]; VLOG(1) << "Reading meta data from file " << fname << "..."; Tabl...
void TensorSliceReader::LoadShard(int shard) const { CHECK_LT(shard, sss_.size()); if (sss_[shard] || !status_.ok()) { return; } string value; SavedTensorSlices sts; const string fname = fnames_[shard]; VLOG(1) << "Reading meta data from file " << fname << "..."; Table* table; Status s = open_function_(fname, &table); ...
CVE-2021-41203
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3aa9dc03e03615af1497adce07bc3229
tensorflow/tensorflow
368af875869a204b4ac552b9ddda59f6a46a56ec
1,629,917,101
tensorflow/core/util/tensor_slice_reader.h
TensorSliceReader::CopySliceData
cpp
bool TensorSliceReader::CopySliceData(const string& name, const TensorSlice& slice, T* data) const { std::vector<std::pair<TensorSlice, string>> details; const TensorSliceSet* tss; { mutex_lock l(mu_); tss = FindTensorSlice(name, slice, &details); if (!tss && !all...
bool TensorSliceReader::CopySliceData(const string& name, const TensorSlice& slice, T* data) const { std::vector<std::pair<TensorSlice, string>> details; const TensorSliceSet* tss; { mutex_lock l(mu_); tss = FindTensorSlice(name, slice, &details); if (!tss && !all_shards_loaded_) { VLOG(1) << "Did not find slice in pre...
CVE-2021-41203
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
62ad0282c6b1ff1fc5841cf70f94ed50
tensorflow/tensorflow
b619c6f865715ca3b15ef1842b5b95edbaa710ad
1,629,839,587
tensorflow/core/util/tensor_slice_reader.cc
TensorSliceReader::LoadShard
cpp
void TensorSliceReader::LoadShard(int shard) const { CHECK_LT(shard, sss_.size()); if (sss_[shard] || !status_.ok()) { return; // Already loaded, or invalid. } string value; SavedTensorSlices sts; const string fname = fnames_[shard]; VLOG(1) << "Reading meta data from file " << fname << "..."; Tabl...
void TensorSliceReader::LoadShard(int shard) const { CHECK_LT(shard, sss_.size()); if (sss_[shard] || !status_.ok()) { return; } string value; SavedTensorSlices sts; const string fname = fnames_[shard]; VLOG(1) << "Reading meta data from file " << fname << "..."; Table* table; Status s = open_function_(fname, &table); ...
CVE-2021-41203
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
3b156370ae530beba3361c42e7faecea
tensorflow/tensorflow
7731e8dfbe4a56773be5dc94d631611211156659
1,629,390,332
tensorflow/core/common_runtime/constant_folding.cc
IsConstantFoldable
cpp
bool IsConstantFoldable( const Node* n, const std::unordered_map<string, std::vector<PartialTensorShape>>* shape_map, const std::function<bool(const Node*)>& consider, int64_t max_constant_size_in_bytes, std::unordered_map<const Node*, std::vector<Tensor>>* shape_replacement_map) { ...
bool IsConstantFoldable( const Node* n, const std::unordered_map<string, std::vector<PartialTensorShape>>* shape_map, const std::function<bool(const Node*)>& consider, int64_t max_constant_size_in_bytes, std::unordered_map<const Node*, std::vector<Tensor>>* shape_replacement_map) { if (n->IsConstant()) { return true; }...
CVE-2021-41204
CWE-824
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
748506f17549e326f02568fb081bca00
tensorflow/tensorflow
a0d64445116c43cf46a5666bd4eee28e7a82f244
1,633,121,576
tensorflow/core/framework/common_shape_fns.cc
QuantizeV2Shape
cpp
Status QuantizeV2Shape(InferenceContext* c) { int axis = -1; Status s = c->GetAttr("axis", &axis); if (!s.ok() && s.code() != error::NOT_FOUND) { return s; } const int minmax_rank = (axis == -1) ? 0 : 1; TF_RETURN_IF_ERROR(shape_inference::UnchangedShape(c)); ShapeHandle minmax; TF_RETURN_IF_ERROR(c...
Status QuantizeV2Shape(InferenceContext* c) { int axis = -1; Status s = c->GetAttr("axis", &axis); if (!s.ok() && s.code() != error::NOT_FOUND) { return s; } const int minmax_rank = (axis == -1) ? 0 : 1; TF_RETURN_IF_ERROR(shape_inference::UnchangedShape(c)); ShapeHandle minmax; TF_RETURN_IF_ERROR(c->WithRank(c->input(...
CVE-2021-41211
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
cff11168037162f34d5dc5579f33bfb7
tensorflow/tensorflow
05cbebd3c6bb8f517a158b0155debb8df79017ff
1,634,591,866
tensorflow/core/common_runtime/immutable_executor_state.cc
ImmutableExecutorState::BuildControlFlowInfo
cpp
Status ImmutableExecutorState::BuildControlFlowInfo(const Graph* g, ControlFlowInfo* cf_info) { const int num_nodes = g->num_node_ids(); cf_info->frame_names.resize(num_nodes); std::vector<Node*> parent_nodes; parent_nodes.resize(num_nodes); std::vector<bool...
Status ImmutableExecutorState::BuildControlFlowInfo(const Graph* g, ControlFlowInfo* cf_info) { const int num_nodes = g->num_node_ids(); cf_info->frame_names.resize(num_nodes); std::vector<Node*> parent_nodes; parent_nodes.resize(num_nodes); std::vector<bool> visited; visited.resize(num_nodes); string frame_name; std::...
CVE-2021-41217
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c540fc1a162a5df69968518408dce6c8
tensorflow/tensorflow
e6cf28c72ba2eb949ca950d834dd6d66bb01cfae
1,633,488,855
tensorflow/core/kernels/sparse_matmul_op.cc
Compute
cpp
void Compute(OpKernelContext* ctx) override { const Tensor& a = ctx->input(0); const Tensor& b = ctx->input(1); OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(a.shape()), errors::InvalidArgument("a is not a matrix")); OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(b.shape()), e...
void Compute(OpKernelContext* ctx) override { const Tensor& a = ctx->input(0); const Tensor& b = ctx->input(1); OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(a.shape()), errors::InvalidArgument("a is not a matrix")); OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(b.shape()), errors::InvalidArgument("b is not a matrix")); co...
CVE-2021-41219
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b9aa89d39a135dfb051e2b8bc0ab6f7b
tensorflow/tensorflow
aab9998916c2ffbd8f0592059fad352622f89cda
1,632,938,450
tensorflow/core/kernels/fused_batch_norm_op.cc
ComputeWithReservedSpace
cpp
virtual void ComputeWithReservedSpace(OpKernelContext* context, bool use_reserved_space) { Tensor y_backprop = context->input(0); Tensor x = context->input(1); const Tensor& scale = context->input(2); // When is_training=True, batch mean and variance/inverted vari...
virtual void ComputeWithReservedSpace(OpKernelContext* context, bool use_reserved_space) { Tensor y_backprop = context->input(0); Tensor x = context->input(1); const Tensor& scale = context->input(2); const Tensor& saved_mean_or_pop_mean = context->input(3); const Tensor& saved_maybe_inv_var_or_pop_var = context->input...
CVE-2021-41223
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
297e680e4e3becca837a8b46a6b35d07
tensorflow/tensorflow
67bfd9feeecfb3c61d80f0e46d89c170fbee682b
1,633,016,673
tensorflow/core/kernels/sparse_fill_empty_rows_op.cc
SparseFillEmptyRowsOpImpl
cpp
void SparseFillEmptyRowsOpImpl(OpKernelContext* context, AsyncOpKernel::DoneCallback done = nullptr) { // Note that setting this empty lambda as the default parameter value directly // can cause strange compiler/linker errors, so we do it like this instead. if (!done) { done = [...
void SparseFillEmptyRowsOpImpl(OpKernelContext* context, AsyncOpKernel::DoneCallback done = nullptr) { if (!done) { done = [] {}; } const int kIndicesInput = 0; const int kValuesInput = 1; const int kDenseShapeInput = 2; const int kDefaultValueInput = 3; const Tensor& indices_t = context->input(kIndicesInput); const Te...
CVE-2021-41224
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
77f3e5242a47c5739eccaf1ccc6bed5a
tensorflow/tensorflow
e7f497570abb6b4ae5af4970620cd880e4c0c904
1,634,762,465
tensorflow/core/kernels/conv_ops.cc
ctx
cpp
void operator()(OpKernelContext* ctx, const Tensor& input, const Tensor& filter, int row_stride, int col_stride, int row_dilation, int col_dilation, const Padding& padding, const std::vector<int64_t>& explicit_paddings, Tensor* output, TensorFormat...
void operator()(OpKernelContext* ctx, const Tensor& input, const Tensor& filter, int row_stride, int col_stride, int row_dilation, int col_dilation, const Padding& padding, const std::vector<int64_t>& explicit_paddings, Tensor* output, TensorFormat data_format) { DCHECK(data_format == FORMAT_NHWC) << "Grouped conv impl...
CVE-2021-41206
CWE-354
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
cb634099853562308f998f2ad55105b4
tensorflow/tensorflow
4d74d8a00b07441cba090a02e0dd9ed385145bf4
1,626,313,748
tensorflow/core/kernels/xent_op.cc
Compute
cpp
void Compute(OpKernelContext* context) override { const Tensor& logits_in = context->input(0); const Tensor& labels_in = context->input(1); TensorShape shape_in = logits_in.shape(); BCast bcast(BCast::FromShape(logits_in.shape()), BCast::FromShape(labels_in.shape())); if (!logits_i...
void Compute(OpKernelContext* context) override { const Tensor& logits_in = context->input(0); const Tensor& labels_in = context->input(1); TensorShape shape_in = logits_in.shape(); BCast bcast(BCast::FromShape(logits_in.shape()), BCast::FromShape(labels_in.shape())); if (!logits_in.IsSameSize(labels_in)) { OP_REQUIRES...
CVE-2021-41206
CWE-354
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fa513abb64102de0a67deb1bb5be9475
tensorflow/tensorflow
68422b215e618df5ad375bcdc6d2052e9fd3080a
1,633,699,293
tensorflow/core/kernels/linalg/tridiagonal_matmul_op_gpu.cu.cc
Compute
cpp
void Compute(OpKernelContext* context) final { const Tensor& superdiag = context->input(0); const Tensor& maindiag = context->input(1); const Tensor& subdiag = context->input(2); const Tensor& rhs = context->input(3); const int ndims = rhs.dims(); int64 batch_size = 1; for (int i = 0; i < n...
void Compute(OpKernelContext* context) final { const Tensor& superdiag = context->input(0); const Tensor& maindiag = context->input(1); const Tensor& subdiag = context->input(2); const Tensor& rhs = context->input(3); const int ndims = rhs.dims(); int64 batch_size = 1; for (int i = 0; i < ndims - 2; i++) { batch_size *...
CVE-2021-41206
CWE-354
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
23db9ac78df3fde933b62362ec5c3e36
tensorflow/tensorflow
579261dcd446385831fe4f7457d802a59685121d
1,626,313,481
tensorflow/core/kernels/linalg/matrix_solve_op.cc
ComputeAsync
cpp
void ComputeAsync(OpKernelContext* context, DoneCallback done) final { const Tensor& input = context->input(0); const Tensor& rhs = context->input(1); const int ndims = input.dims(); const int64 n = input.dim_size(ndims - 1); const int64 nrhs = rhs.dim_size(ndims - 1); // Validate inputs. OP...
void ComputeAsync(OpKernelContext* context, DoneCallback done) final { const Tensor& input = context->input(0); const Tensor& rhs = context->input(1); const int ndims = input.dims(); const int64 n = input.dim_size(ndims - 1); const int64 nrhs = rhs.dim_size(ndims - 1); OP_REQUIRES_ASYNC( context, ndims >= 2, errors::In...
CVE-2021-41206
CWE-354
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
34de5705a107beeeb644229d2a87f6e3
tensorflow/tensorflow
f2c3931113eaafe9ef558faaddd48e00a6606235
1,634,045,393
tensorflow/core/kernels/inplace_ops.cc
Compute
cpp
void Compute(OpKernelContext* ctx) override { auto x = ctx->input(0); auto i = ctx->input(1); auto v = ctx->input(2); OP_REQUIRES(ctx, TensorShapeUtils::IsVector(i.shape()), errors::InvalidArgument("i must be a vector. ", i.shape().DebugString()))...
void Compute(OpKernelContext* ctx) override { auto x = ctx->input(0); auto i = ctx->input(1); auto v = ctx->input(2); OP_REQUIRES(ctx, TensorShapeUtils::IsVector(i.shape()), errors::InvalidArgument("i must be a vector. ", i.shape().DebugString())); OP_REQUIRES(ctx, x.dims() == v.dims(), errors::InvalidArgument( "x and ...
CVE-2021-41207
CWE-369
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
a537574e414be7f0230209e738f48148
tensorflow/tensorflow
5c8c9a8bfe750f9743d0c859bae112060b216f5c
1,635,259,731
tensorflow/core/kernels/boosted_trees/stats_ops.cc
Compute
cpp
void Compute(OpKernelContext* const context) override { // node_id_range const Tensor* node_id_range_t; OP_REQUIRES_OK(context, context->input("node_id_range", &node_id_range_t)); const auto node_id_range = node_id_range_t->vec<int32>(); OP_REQUIRES( context, node_id_range_t->dims() == 1, ...
void Compute(OpKernelContext* const context) override { const Tensor* node_id_range_t; OP_REQUIRES_OK(context, context->input("node_id_range", &node_id_range_t)); const auto node_id_range = node_id_range_t->vec<int32>(); OP_REQUIRES( context, node_id_range_t->dims() == 1, errors::InvalidArgument("node_id_range must be ...
CVE-2021-41208
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7fc653e68ed2a20551d560fa7844464c
tensorflow/tensorflow
c79ba87153ee343401dbe9d1954d7f79e521eb14
1,634,258,340
tensorflow/core/ops/array_ops.cc
TransposeShapeFn
cpp
Status TransposeShapeFn(InferenceContext* c) { ShapeHandle input = c->input(0); ShapeHandle perm_shape = c->input(1); const Tensor* perm = c->input_tensor(1); DimensionHandle perm_elems = c->NumElements(perm_shape); // If we don't have rank information on the input or value information on // perm we can't r...
Status TransposeShapeFn(InferenceContext* c) { ShapeHandle input = c->input(0); ShapeHandle perm_shape = c->input(1); const Tensor* perm = c->input_tensor(1); DimensionHandle perm_elems = c->NumElements(perm_shape); if (!c->RankKnown(input) && !c->ValueKnown(perm_elems) && perm == nullptr) { c->set_output(0, c->Unknown...
CVE-2021-41216
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
a8632f51cbd9db3619c1462392f75589
tensorflow/tensorflow
25d622ffc432acc736b14ca3904177579e733cc6
1,633,451,475
tensorflow/core/kernels/split_v_op.cc
ComputeEasyCases
cpp
void ComputeEasyCases(OpKernelContext* context, bool* done, std::vector<Tlen>* split_sizes_vec) { const int32_t num_split = context->num_outputs(); const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const Tensor& split_tensor = context->input...
void ComputeEasyCases(OpKernelContext* context, bool* done, std::vector<Tlen>* split_sizes_vec) { const int32_t num_split = context->num_outputs(); const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const Tensor& split_tensor = context->input(1); const Tensor& split_dim_tensor = co...
CVE-2021-41222
CWE-682
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
57e4c5e349ea6098c29be5ff18cf1ddb
tensorflow/tensorflow
68867bf01239d9e1048f98cbad185bf4761bedd3
1,632,925,225
tensorflow/core/grappler/optimizers/auto_parallel.cc
AutoParallel::Initialize
cpp
Status AutoParallel::Initialize(const GrapplerItem& item) { num_gpus_ = GetNumAvailableGPUs(); LOG(INFO) << "Number of GPUs: " << num_gpus_; item_ = &item; graph_ = item.graph; LOG(INFO) << "Original graph size: " << graph_.node_size(); if (item.fetch.empty()) { return Status(error::INVALID_ARGUMENT, "N...
Status AutoParallel::Initialize(const GrapplerItem& item) { num_gpus_ = GetNumAvailableGPUs(); LOG(INFO) << "Number of GPUs: " << num_gpus_; item_ = &item; graph_ = item.graph; LOG(INFO) << "Original graph size: " << graph_.node_size(); if (item.fetch.empty()) { return Status(error::INVALID_ARGUMENT, "No fetch nodes pr...
CVE-2021-41225
CWE-908
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
dfef19e46d83204c92e9d83f7b137604
NICMx/FORT-validator
425e0f4037b4543fe8044ac96ca71d6d02d7d8c5
1,634,665,621
src/object/certificate.c
get_certificate_type
c
static int get_certificate_type(X509 *cert, bool is_ta, enum cert_type *result) { if (is_ta) { *result = TA; return 0; } if (X509_check_ca(cert) == 1) { *result = CA; return 0; } if (has_bgpsec_router_eku(cert)) { *result = BGPSEC; return 0; } return pr_val_err("Certificate is not TA, CA nor BGPse...
static int get_certificate_type(X509 *cert, bool is_ta, enum cert_type *result) { if (is_ta) { *result = TA; return 0; } if (X509_check_ca(cert) == 1) { *result = CA; return 0; } if (has_bgpsec_router_eku(cert)) { *result = BGPSEC; return 0; } return pr_val_err("Certificate is not TA, CA nor BGPsec. Ignoring..."); }
CVE-2021-43114
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6533fb2550aff5330db59e380b8710dc
xiph/speex
870ff845b32f314aec0036641ffe18aba4916887
1,594,689,903
src/wav_io.c
read_wav_header
c
int read_wav_header(FILE *file, int *rate, int *channels, int *format, spx_int32_t *size) { char ch[5]; spx_int32_t itmp; spx_int16_t stmp; spx_int32_t bpersec; spx_int16_t balign; int skip_bytes; int i; ch[4]=0; #if 0 fread(ch, 1, 4, file); if (strcmp(ch, "RIFF")!=0) { fseek(fil...
int read_wav_header(FILE *file, int *rate, int *channels, int *format, spx_int32_t *size) { char ch[5]; spx_int32_t itmp; spx_int16_t stmp; spx_int32_t bpersec; spx_int16_t balign; int skip_bytes; int i; ch[4]=0; #if 0 fread(ch, 1, 4, file); if (strcmp(ch, "RIFF")!=0) { fseek(file, 0, SEEK_SET); return 0; } fread(&itmp...
CVE-2020-23903
CWE-369
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0b4803685ccb1af48960ebcf56014944
vim/vim
64066b9acd9f8cffdf4840f797748f938a13f2d6
1,637,169,776
src/regexp_nfa.c
nfa_regmatch
c
static int nfa_regmatch( nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *submatch, regsubs_T *m) { int result = FALSE; size_t size = 0; int flag = 0; int go_to_nextline = FALSE; nfa_thread_T *t; nfa_list_T list[2]; int listidx; nfa_list_T *thislist; nfa_lis...
static int nfa_regmatch( nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *submatch, regsubs_T *m) { int result = FALSE; size_t size = 0; int flag = 0; int go_to_nextline = FALSE; nfa_thread_T *t; nfa_list_T list[2]; int listidx; nfa_list_T *thislist; nfa_list_T *nextlist; int *listids = NULL; int listids_len = 0; nf...
CVE-2021-3974
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
84dae78316686c076e143468bab5141e
vim/vim
a062006b9de0b2947ab5fb376c6e67ef92a8cd69
1,637,164,360
src/normal.c
n_start_visual_mode
c
static void n_start_visual_mode(int c) { #ifdef FEAT_CONCEAL int cursor_line_was_concealed = curwin->w_p_cole > 0 && conceal_cursor_line(curwin); #endif VIsual_mode = c; VIsual_active = TRUE; VIsual_reselect = TRUE; trigger_modechanged(); // Corner case: the 0 position in a tab may chang...
static void n_start_visual_mode(int c) { #ifdef FEAT_CONCEAL int cursor_line_was_concealed = curwin->w_p_cole > 0 && conceal_cursor_line(curwin); #endif VIsual_mode = c; VIsual_active = TRUE; VIsual_reselect = TRUE; trigger_modechanged(); if (c == Ctrl_V && (get_ve_flags() & VE_BLOCK) && gchar_cursor() == TAB) { valida...
CVE-2021-3968
CWE-122;CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1e5d96c2ad59c8f5b4b5c08e03d1dbc5
ImageMagick/ImageMagick
82775af03bbb10a0a1d0e15c0156c75673b4525e
1,636,183,382
coders/dcm.c
ReadDCMImage
c
static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define ThrowDCMException(exception,message) \ { \ RelinquishDCMMemory(&info,&map,stream_info,stack,data); \ ThrowReaderException((exception),(message)); \ } char explicit_vr[MagickPathExtent], implicit_vr[MagickPathExtent...
static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define ThrowDCMException(exception,message) \ { \ RelinquishDCMMemory(&info,&map,stream_info,stack,data); \ ThrowReaderException((exception),(message)); \ } char explicit_vr[MagickPathExtent], implicit_vr[MagickPathExtent], magick[Magic...
CVE-2021-3962
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ee9d2a970ef5120f3732935bfdde23d7
CroatiaControlLtd/asterix
3f765d387d239ccc44e278a2ffa600fb6a6587f9
1,637,651,591
src/asterix/DataItemFormatExplicit.cpp
DataItemFormatExplicit::getText
cpp
bool DataItemFormatExplicit::getText(std::string &strResult, std::string &strHeader, const unsigned int formatType, unsigned char *pData, long nLength) { std::list<DataItemFormat *>::iterator it; int bodyLength = 0; bool ret = false; pData++; // skip explicit length...
bool DataItemFormatExplicit::getText(std::string &strResult, std::string &strHeader, const unsigned int formatType, unsigned char *pData, long nLength) { std::list<DataItemFormat *>::iterator it; int bodyLength = 0; bool ret = false; pData++; for (it = m_lSubItems.begin(); it != m_lSubItems.end(); it++) { DataItemForma...
CVE-2021-44144
CWE-125
SINGLE_FUNCTION_NO_MENTION
false