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 | 31beca06b99e5548478c5ed79763922d | vim/vim | 69082916c8b5d321545d60b9f5facad0a2dd5a4e | 1,663,871,719 | src/eval.c | eval_next_non_blank | c | char_u *
eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext)
{
char_u *p = skipwhite(arg);
*getnext = FALSE;
if (in_vim9script()
&& evalarg != NULL
&& (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL
|| *p == NL)
&& (*p == NUL || *p == NL
|| (vim9... | char_u * eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext) { char_u *p = skipwhite(arg); *getnext = FALSE; if (in_vim9script() && evalarg != NULL && (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL || *p == NL) && (*p == NUL || *p == NL || (vim9_comment_start(p) && VIM_ISWHITE(p[-1])))) { ch... | CVE-2022-3278 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | bde4dd20559deddab1ea437469b34808 | wazuh/wazuh | a57d3293964e5489bef188f7d424b45c762595fb | 1,662,361,265 | src/os_execd/exec.c | GetCommandbyName | c | char *GetCommandbyName(const char *name, int *timeout)
{
int i = 0;
// Filter custom commands
if (name[0] == '!') {
static char command[OS_FLSIZE];
if (snprintf(command, sizeof(command), "%s/%s", AR_BINDIR, name + 1) >= (int)sizeof(command)) {
mwarn("Cannot execute command '%3... | char *GetCommandbyName(const char *name, int *timeout) { int i = 0; if (name[0] == '!') { static char command[OS_FLSIZE]; if (snprintf(command, sizeof(command), "%s/%s", AR_BINDIR, name + 1) >= (int)sizeof(command)) { mwarn("Cannot execute command '%32s...': path too long.", name + 1); return NULL; } *timeout = 0; retu... | CVE-2022-40497 | CWE-94 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d81773a3548a8caf20e0e1938a5832fb | wazuh/wazuh | 065b175952c344d00a4af9cc9f5d28e964ce33fd | 1,662,362,321 | src/os_execd/exec.c | ReadExecConfig | c | int ReadExecConfig()
{
int i = 0, j = 0, dup_entry = 0;
FILE *fp;
FILE *process_file;
char buffer[OS_MAXSTR + 1];
/* Clean up */
for (i = 0; i <= exec_size + 1; i++) {
memset(exec_names[i], '\0', OS_FLSIZE + 1);
memset(exec_cmd[i], '\0', OS_FLSIZE + 1);
exec_timeout[i] =... | int ReadExecConfig() { int i = 0, j = 0, dup_entry = 0; FILE *fp; FILE *process_file; char buffer[OS_MAXSTR + 1]; for (i = 0; i <= exec_size + 1; i++) { memset(exec_names[i], '\0', OS_FLSIZE + 1); memset(exec_cmd[i], '\0', OS_FLSIZE + 1); exec_timeout[i] = 0; } exec_size = 0; fp = fopen(DEFAULTAR, "r"); if (!fp) { merr... | CVE-2022-40497 | CWE-94 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 279291c85f158beec60690ebfddba26d | cloudbase/ovs | 2ed6505555cdcb46f9b1f0329d1491b75290fc73 | 1,563,378,916 | lib/flow.c | minimask_equal | c | bool
minimask_equal(const struct minimask *a, const struct minimask *b)
{
return !memcmp(a, b, sizeof *a
+ MINIFLOW_VALUES_SIZE(miniflow_n_values(&a->masks)));
} | bool minimask_equal(const struct minimask *a, const struct minimask *b) { return !memcmp(a, b, sizeof *a + MINIFLOW_VALUES_SIZE(miniflow_n_values(&a->masks))); } | CVE-2022-32166 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | bf46f8d6bc085b722da82ba6340127c2 | open5gs/open5gs | c2f6a020a7b505e0d55748464406fb9aca062026 | 1,664,057,843 | lib/core/ogs-tlv.c | ogs_tlv_parse_block | c | ogs_tlv_t *ogs_tlv_parse_block(uint32_t length, void *data, uint8_t mode)
{
uint8_t *pos = data;
uint8_t *blk = data;
ogs_tlv_t *root = NULL;
ogs_tlv_t *prev = NULL;
ogs_tlv_t *curr = NULL;
root = curr = ogs_tlv_get();
ogs_assert(curr);
pos = tlv_get_element(curr, pos, mode);
og... | ogs_tlv_t *ogs_tlv_parse_block(uint32_t length, void *data, uint8_t mode) { uint8_t *pos = data; uint8_t *blk = data; ogs_tlv_t *root = NULL; ogs_tlv_t *prev = NULL; ogs_tlv_t *curr = NULL; root = curr = ogs_tlv_get(); ogs_assert(curr); pos = tlv_get_element(curr, pos, mode); ogs_assert(pos); while(pos - blk < length) ... | CVE-2022-3354 | CWE-404 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a1d30995d17edc8c8753f7d2c8d6bb80 | Nheko-Reborn/nheko | 67bee15a389f9b8a9f6c3a340558d1e2319e7199 | 1,664,357,812 | src/encryption/Olm.cpp | handle_olm_message | cpp | void
handle_olm_message(const OlmMessage &msg, const UserKeyCache &otherUserDeviceKeys)
{
nhlog::crypto()->info("sender : {}", msg.sender);
nhlog::crypto()->info("sender_key: {}", msg.sender_key);
if (msg.sender_key == olm::client()->identity_keys().ed25519) {
nhlog::crypto()->warn("Ignoring olm... | void handle_olm_message(const OlmMessage &msg, const UserKeyCache &otherUserDeviceKeys) { nhlog::crypto()->info("sender : {}", msg.sender); nhlog::crypto()->info("sender_key: {}", msg.sender_key); if (msg.sender_key == olm::client()->identity_keys().ed25519) { nhlog::crypto()->warn("Ignoring olm message from ourselves!... | CVE-2022-39264 | CWE-295;CWE-287 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | adac1dbb0cc0631bd568feff855d0d59 | qemu/qemu | 1d7678dec4761acdc43439da6ceda41a703ba1a6 | 1,395,831,939 | block/vhdx.c | vhdx_parse_metadata | c | static int vhdx_parse_metadata(BlockDriverState *bs, BDRVVHDXState *s)
{
int ret = 0;
uint8_t *buffer;
int offset = 0;
uint32_t i = 0;
VHDXMetadataTableEntry md_entry;
buffer = qemu_blockalign(bs, VHDX_METADATA_TABLE_MAX_SIZE);
ret = bdrv_pread(bs->file, s->metadata_rt.file_offset, buffer,... | static int vhdx_parse_metadata(BlockDriverState *bs, BDRVVHDXState *s) { int ret = 0; uint8_t *buffer; int offset = 0; uint32_t i = 0; VHDXMetadataTableEntry md_entry; buffer = qemu_blockalign(bs, VHDX_METADATA_TABLE_MAX_SIZE); ret = bdrv_pread(bs->file, s->metadata_rt.file_offset, buffer, VHDX_METADATA_TABLE_MAX_SIZE)... | CVE-2014-0148 | CWE-835 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 066b624ad3463c466a66ebd726f095a0 | axiomatic-systems/Bento4 | f7ba0dca622837bfab063e500f6013640e8e76e4 | 1,547,320,534 | Source/C++/Core/Ap4Sample.cpp | AP4_Sample::ReadData | cpp | AP4_Result
AP4_Sample::ReadData(AP4_DataBuffer& data, AP4_Size size, AP4_Size offset)
{
// check that we have a stream
if (m_DataStream == NULL) return AP4_FAILURE;
// shortcut
if (size == 0) return AP4_SUCCESS;
// check the size
if (m_Size < size+offset) return AP4_FAILURE;
// set the bu... | AP4_Result AP4_Sample::ReadData(AP4_DataBuffer& data, AP4_Size size, AP4_Size offset) { if (m_DataStream == NULL) return AP4_FAILURE; if (size == 0) return AP4_SUCCESS; if (m_Size < size+offset) return AP4_FAILURE; AP4_Result result = data.SetDataSize(size); if (AP4_FAILED(result)) return result; result = m_DataStream-... | CVE-2022-41846 | CWE-770 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dc9d50dc8603453f596324de8eaf1e47 | lief-project/LIEF | 24935f654f6df700a9a062298258b9485f584502 | 1,662,952,218 | src/MachO/Binary.cpp | segment_from_offset | cpp | const SegmentCommand* Binary::segment_from_offset(uint64_t offset) const {
if (offset_seg_.empty()) {
return nullptr;
}
const auto it_begin = std::begin(offset_seg_);
if (offset < it_begin->first) {
return nullptr;
}
auto it = offset_seg_.lower_bound(offset);
if (it->first == offset || it == it_... | const SegmentCommand* Binary::segment_from_offset(uint64_t offset) const { if (offset_seg_.empty()) { return nullptr; } const auto it_begin = std::begin(offset_seg_); if (offset < it_begin->first) { return nullptr; } auto it = offset_seg_.lower_bound(offset); if (it->first == offset || it == it_begin) { SegmentCommand*... | CVE-2022-40923 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3d2d8c78df24d8f06b33fbaea64975ce | pjsip/pjproject | d2acb9af4e27b5ba75d658690406cec9c274c5cc | 1,665,032,113 | pjmedia/src/pjmedia/transport_srtp.c | srtp_rtp_cb | c | static void srtp_rtp_cb(pjmedia_tp_cb_param *param)
{
transport_srtp *srtp = (transport_srtp *) param->user_data;
void *pkt = param->pkt;
pj_ssize_t size = param->size;
int len = (int)size;
srtp_err_status_t err;
void (*cb)(void*, void*, pj_ssize_t) = NULL;
void (*cb2)(pjmedia_tp_cb_param*) ... | static void srtp_rtp_cb(pjmedia_tp_cb_param *param) { transport_srtp *srtp = (transport_srtp *) param->user_data; void *pkt = param->pkt; pj_ssize_t size = param->size; int len = (int)size; srtp_err_status_t err; void (*cb)(void*, void*, pj_ssize_t) = NULL; void (*cb2)(pjmedia_tp_cb_param*) = NULL; void *cb_data = NULL... | CVE-2022-39269 | CWE-319 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0adc2756f28dc202a4304926f77b19c2 | antirez/redis | 9fdcc15962f9ff4baebe6fdd947816f43f730d50 | 1,528,704,522 | src/redis-cli.c | cliRefreshPrompt | c | static void cliRefreshPrompt(void) {
int len;
if (config.eval_ldb) return;
if (config.hostsocket != NULL)
len = snprintf(config.prompt,sizeof(config.prompt),"redis %s",
config.hostsocket);
else
len = anetFormatAddr(config.prompt, sizeof(config.prompt),
... | static void cliRefreshPrompt(void) { int len; if (config.eval_ldb) return; if (config.hostsocket != NULL) len = snprintf(config.prompt,sizeof(config.prompt),"redis %s", config.hostsocket); else len = anetFormatAddr(config.prompt, sizeof(config.prompt), config.hostip, config.hostport); if (config.dbnum != 0) len += snpr... | CVE-2018-12326 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8f8203fbcaf87b63bf6aa980c3b3b824 | antirez/redis | 52a00201fca331217c3b4b8b634f6a0f57d6b7d3 | 1,526,305,540 | deps/lua/src/lua_cmsgpack.c | mp_pack | c | int mp_pack(lua_State *L) {
int nargs = lua_gettop(L);
int i;
mp_buf *buf;
if (nargs == 0)
return luaL_argerror(L, 0, "MessagePack pack needs input.");
buf = mp_buf_new(L);
for(i = 1; i <= nargs; i++) {
/* Copy argument i to top of stack for _encode processing;
* the e... | int mp_pack(lua_State *L) { int nargs = lua_gettop(L); int i; mp_buf *buf; if (nargs == 0) return luaL_argerror(L, 0, "MessagePack pack needs input."); buf = mp_buf_new(L); for(i = 1; i <= nargs; i++) { lua_pushvalue(L, i); mp_encode_lua_type(L,buf,0); lua_pushlstring(L,(char*)buf->b,buf->len); buf->free += buf->len; b... | CVE-2018-11218 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1f88b70764593ef9e61c21ff221eef3b | antirez/redis | e89086e09a38cc6713bcd4b9c29abf92cf393936 | 1,526,375,629 | deps/lua/src/lua_struct.c | b_unpack | c | static int b_unpack (lua_State *L) {
Header h;
const char *fmt = luaL_checkstring(L, 1);
size_t ld;
const char *data = luaL_checklstring(L, 2, &ld);
size_t pos = luaL_optinteger(L, 3, 1) - 1;
int n = 0; /* number of results */
defaultoptions(&h);
while (*fmt) {
int opt = *fmt++;
size_t size = o... | static int b_unpack (lua_State *L) { Header h; const char *fmt = luaL_checkstring(L, 1); size_t ld; const char *data = luaL_checklstring(L, 2, &ld); size_t pos = luaL_optinteger(L, 3, 1) - 1; int n = 0; defaultoptions(&h); while (*fmt) { int opt = *fmt++; size_t size = optsize(L, opt, &fmt); pos += gettoalign(pos, &h, ... | CVE-2018-11219 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 123e5128b51ee418ca01cffe7531c8ed | libjpeg-turbo/libjpeg-turbo | 43e84cff1bb2bd8293066f6ac4eb0df61ddddbc6 | 1,528,846,020 | rdbmp.c | start_input_bmp | c | METHODDEF(void)
start_input_bmp(j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
{
bmp_source_ptr source = (bmp_source_ptr)sinfo;
U_CHAR bmpfileheader[14];
U_CHAR bmpinfoheader[64];
#define GET_2B(array, offset) \
((unsigned short)UCH(array[offset]) + \
(((unsigned short)UCH(array[offset + 1])) << 8))
#define ... | METHODDEF(void) start_input_bmp(j_compress_ptr cinfo, cjpeg_source_ptr sinfo) { bmp_source_ptr source = (bmp_source_ptr)sinfo; U_CHAR bmpfileheader[14]; U_CHAR bmpinfoheader[64]; #define GET_2B(array, offset) \ ((unsigned short)UCH(array[offset]) + \ (((unsigned short)UCH(array[offset + 1])) << 8)) #define GET_4B(array... | CVE-2018-1152 | CWE-369 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c2b3d3e7f5a22b17285bfa0c63d818b6 | dovecot/core | 000030feb7a30f193197f1aab8a7b04a26b42735 | 1,488,801,586 | src/auth/db-dict.c | db_dict_iter_lookup_key_values | c | static int db_dict_iter_lookup_key_values(struct db_dict_value_iter *iter)
{
struct db_dict_iter_key *key;
string_t *path;
const char *error;
int ret;
/* sort the keys so that we'll first lookup the keys without
default value. if their lookup fails, the user doesn't exist. */
array_sort(&iter->keys, db_dict_... | static int db_dict_iter_lookup_key_values(struct db_dict_value_iter *iter) { struct db_dict_iter_key *key; string_t *path; const char *error; int ret; array_sort(&iter->keys, db_dict_iter_key_cmp); path = t_str_new(128); str_append(path, DICT_PATH_SHARED); array_foreach_modifiable(&iter->keys, key) { if (!key->used) co... | CVE-2017-2669 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 06770f3cc8145196e33185caf47ff3b4 | torvalds/linux | a45b599ad808c3c982fdcdc12b0b8611c2f92824 | 1,526,646,198 | drivers/scsi/sg.c | sg_build_indirect | c | static int
sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size)
{
int ret_sz = 0, i, k, rem_sz, num, mx_sc_elems;
int sg_tablesize = sfp->parentdp->sg_tablesize;
int blk_size = buff_size, order;
gfp_t gfp_mask = GFP_ATOMIC | __GFP_COMP | __GFP_NOWARN;
struct sg_device *sdp = sfp->parentdp;
if (b... | static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) { int ret_sz = 0, i, k, rem_sz, num, mx_sc_elems; int sg_tablesize = sfp->parentdp->sg_tablesize; int blk_size = buff_size, order; gfp_t gfp_mask = GFP_ATOMIC | __GFP_COMP | __GFP_NOWARN; struct sg_device *sdp = sfp->parentdp; if (blk_size... | CVE-2018-1000204 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 57343319b77f296c7ceb82d53948cc85 | MarlinFirmware/Marlin | 3ba974f841c4aab920fefe345196437d52e3b8aa | 1,528,018,360 | Marlin/cardreader.cpp | diveToFile | cpp | const char* CardReader::diveToFile(SdFile*& curDir, const char * const path, const bool echo) {
SdFile myDir;
if (path[0] != '/') { curDir = &workDir; return path; }
curDir = &root;
const char *dirname_start = &path[1];
while (dirname_start) {
char * const dirname_end = strchr(dirname_start, '/');
if... | const char* CardReader::diveToFile(SdFile*& curDir, const char * const path, const bool echo) { SdFile myDir; if (path[0] != '/') { curDir = &workDir; return path; } curDir = &root; const char *dirname_start = &path[1]; while (dirname_start) { char * const dirname_end = strchr(dirname_start, '/'); if (dirname_end <= di... | CVE-2018-1000537 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 81c88ee50f953809cdc4aa5f5809a1bb | xen-project/xen | 724e5aa31b58d1e430ad36b484cf0ec021497399 | 1,528,894,296 | tools/libxl/libxl_dm.c | qemu_disk_scsi_drive_string | c | static char *qemu_disk_scsi_drive_string(libxl__gc *gc, const char *target_path,
int unit, const char *format,
const libxl_device_disk *disk,
int colo_mode, const char **id_ptr)
{
char *drive =... | static char *qemu_disk_scsi_drive_string(libxl__gc *gc, const char *target_path, int unit, const char *format, const libxl_device_disk *disk, int colo_mode, const char **id_ptr) { char *drive = NULL; const char *exportname = disk->colo_export; const char *active_disk = disk->active_disk; const char *hidden_disk = disk-... | CVE-2018-12892 | CWE-200 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 99c1b6bf41471ee1704cb16765a8a721 | xen-project/xen | 17bf51297220dcd74da29de99320b6b1c72d1fa5 | 1,530,162,260 | xen/arch/x86/traps.c | do_debug | c | void do_debug(struct cpu_user_regs *regs)
{
unsigned long dr6;
struct vcpu *v = current;
/* Stash dr6 as early as possible. */
dr6 = read_debugreg(6);
if ( debugger_trap_entry(TRAP_debug, regs) )
return;
/*
* At the time of writing (March 2018), on the subject of %dr6:
*
... | void do_debug(struct cpu_user_regs *regs) { unsigned long dr6; struct vcpu *v = current; dr6 = read_debugreg(6); if ( debugger_trap_entry(TRAP_debug, regs) ) return; write_debugreg(6, X86_DR6_DEFAULT); if ( !guest_mode(regs) ) { if ( regs->eflags & X86_EFLAGS_TF ) { if ( (regs->rip >= (unsigned long)sysenter_entry) && ... | CVE-2018-12893 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 04d135de4bbd073d2731c5ef0f2eba10 | torvalds/linux | bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a | 1,528,469,629 | fs/xfs/libxfs/xfs_attr_leaf.c | xfs_attr_shortform_to_leaf | c | int
xfs_attr_shortform_to_leaf(
struct xfs_da_args *args,
struct xfs_buf **leaf_bp)
{
xfs_inode_t *dp;
xfs_attr_shortform_t *sf;
xfs_attr_sf_entry_t *sfe;
xfs_da_args_t nargs;
char *tmpbuffer;
int error, i, size;
xfs_dablk_t blkno;
struct xfs_buf *bp;
xfs_ifork_t *ifp;
trace_xfs_attr_sf_to_leaf(args);
d... | int xfs_attr_shortform_to_leaf( struct xfs_da_args *args, struct xfs_buf **leaf_bp) { xfs_inode_t *dp; xfs_attr_shortform_t *sf; xfs_attr_sf_entry_t *sfe; xfs_da_args_t nargs; char *tmpbuffer; int error, i, size; xfs_dablk_t blkno; struct xfs_buf *bp; xfs_ifork_t *ifp; trace_xfs_attr_sf_to_leaf(args); dp = args->dp; if... | CVE-2018-13094 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e4b7b1240431a3449e17424d0f7c4e4c | torvalds/linux | 23fcb3340d033d9f081e21e6c12c2db7eaa541d3 | 1,529,641,557 | fs/xfs/libxfs/xfs_inode_buf.c | xfs_dinode_verify | c | xfs_failaddr_t
xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */... | xfs_failaddr_t xfs_dinode_verify( struct xfs_mount *mp, xfs_ino_t ino, struct xfs_dinode *dip) { xfs_failaddr_t fa; uint16_t mode; uint16_t flags; uint64_t flags2; uint64_t di_size; if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC)) return __this_address; if (dip->di_version >= 3) { if (!xfs_sb_version_hascrc(&mp->m_s... | CVE-2018-13095 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9e9ba951d349fba98268ea0937dee64f | libsndfile/libsndfile | df18323c622b54221ee7ace74b177cdcccc152d7 | 1,535,475,677 | programs/sndfile-deinterleave.c | main | c | int
main (int argc, char **argv)
{ STATE state ;
SF_INFO sfinfo ;
char pathname [512], ext [32], *cptr ;
int ch, double_split ;
if (argc != 2)
{ if (argc != 1)
puts ("\nError : need a single input file.\n") ;
usage_exit () ;
} ;
memset (&state, 0, sizeof (state)) ;
memset (&sfinfo, 0, sizeof (sfinfo)) ;... | int main (int argc, char **argv) { STATE state ; SF_INFO sfinfo ; char pathname [512], ext [32], *cptr ; int ch, double_split ; if (argc != 2) { if (argc != 1) puts ("\nError : need a single input file.\n") ; usage_exit () ; } ; memset (&state, 0, sizeof (state)) ; memset (&sfinfo, 0, sizeof (sfinfo)) ; if ((state.infi... | CVE-2018-13139 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | fa64df8fac1e74afb7450719e487b6ee | ntop/ntopng | 30610bda60cbfc058f90a1c0a17d0e8f4516221a | 1,529,234,665 | src/HTTPserver.cpp | HTTPserver::HTTPserver | cpp | HTTPserver::HTTPserver(const char *_docs_dir, const char *_scripts_dir) {
struct mg_callbacks callbacks;
static char ports[256], ssl_cert_path[MAX_PATH] = { 0 }, access_log_path[MAX_PATH] = { 0 };
const char *http_binding_addr = ntop->getPrefs()->get_http_binding_address();
const char *https_binding_addr = ntop... | HTTPserver::HTTPserver(const char *_docs_dir, const char *_scripts_dir) { struct mg_callbacks callbacks; static char ports[256], ssl_cert_path[MAX_PATH] = { 0 }, access_log_path[MAX_PATH] = { 0 }; const char *http_binding_addr = ntop->getPrefs()->get_http_binding_address(); const char *https_binding_addr = ntop->getPre... | CVE-2018-12520 | CWE-335 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0d6ba8c8ddc4e7d2746e0aa4160725a4 | qemu/qemu | 9c6b899f7a46893ab3b671e341a2234e9c0c060e | 1,492,412,003 | hw/9pfs/9p-local.c | local_name_to_path | c | static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path,
const char *name, V9fsPath *target)
{
if (dir_path) {
v9fs_path_sprintf(target, "%s/%s", dir_path->data, name);
} else {
v9fs_path_sprintf(target, "%s", name);
}
return 0;
} | static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else { v9fs_path_sprintf(target, "%s", name); } return 0; } | CVE-2017-7471 | CWE-732 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3c6371384d5cb5309534086921abbd8d | EOSIO/eos | cc5722858cc24808f7bd4fa699718eec0240b3a2 | 1,529,016,509 | libraries/chain/include/eosio/chain/abi_serializer.hpp | add | cpp | static void add(mutable_variant_object &out, const char* name, const action& act, Resolver resolver, size_t recursion_depth) {
FC_ASSERT( ++recursion_depth < abi_serializer::max_recursion_depth, "recursive definition, max_recursion_depth" );
mutable_variant_object mvo;
mvo("account", act.acco... | static void add(mutable_variant_object &out, const char* name, const action& act, Resolver resolver, size_t recursion_depth) { FC_ASSERT( ++recursion_depth < abi_serializer::max_recursion_depth, "recursive definition, max_recursion_depth" ); mutable_variant_object mvo; mvo("account", act.account); mvo("name", act.name)... | CVE-2018-1000618 | CWE-674 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5172fc65e0c1917b073af8926faad469 | posva/catimg | cddcdd9455b461943dcd56ef7403f1bdd9ade24b | 1,538,296,092 | src/sh_image.c | img_free | c | void img_free(image_t *img)
{
free(img->pixels);
} | void img_free(image_t *img) { free(img->pixels); } | CVE-2018-13794 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4a2d9a3a4694395c2c2b85819b39cb01 | posva/catimg | 302fa0974057f6587d9e9a9ff43de0d9a8ed048d | 1,537,687,569 | src/sh_image.c | stbi__xload_main | c | STBIDEF unsigned char *stbi__xload_main(stbi__context *s, int *x, int *y, int *frames, int *channels)
{
unsigned char *result = 0;
if (stbi__gif_test(s)) {
stbi__gif g;
gif_result head;
gif_result *prev = 0, *gr = &head;
memset(&g, 0, size... | STBIDEF unsigned char *stbi__xload_main(stbi__context *s, int *x, int *y, int *frames, int *channels) { unsigned char *result = 0; if (stbi__gif_test(s)) { stbi__gif g; gif_result head; gif_result *prev = 0, *gr = &head; memset(&g, 0, sizeof(g)); memset(&head, 0, sizeof(head)); *frames = 0; while ((gr->data = stbi__gif... | CVE-2018-13794 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 949d94370f4ff3fdd2c5cc5605b3c272 | ceph/ceph | 8f396cf35a3826044b089141667a196454c0a587 | 1,525,440,086 | src/auth/cephx/CephxSessionHandler.cc | CephxSessionHandler::_calc_signature | cpp | int CephxSessionHandler::_calc_signature(Message *m, uint64_t *psig)
{
const ceph_msg_header& header = m->get_header();
const ceph_msg_footer& footer = m->get_footer();
// optimized signature calculation
// - avoid temporary allocated buffers from encode_encrypt[_enc_bl]
// - skip the leading 4 byte wrapper ... | int CephxSessionHandler::_calc_signature(Message *m, uint64_t *psig) { const ceph_msg_header& header = m->get_header(); const ceph_msg_footer& footer = m->get_footer(); struct { __u8 v; __le64 magic; __le32 len; __le32 header_crc; __le32 front_crc; __le32 middle_crc; __le32 data_crc; } __attribute__ ((packed)) sigblock... | CVE-2018-1129 | CWE-287 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3e4b39bcf1c7659468c4d751991afccc | znc/znc | a7bfbd93812950b7444841431e8e297e62cb524e | 1,531,513,604 | src/Config.cpp | CConfig::Write | cpp | void CConfig::Write(CFile& File, unsigned int iIndentation) {
CString sIndentation = CString(iIndentation, '\t');
for (const auto& it : m_ConfigEntries) {
for (const CString& sValue : it.second) {
File.Write(sIndentation + it.first + " = " + sValue + "\n");
}
}
for (const a... | void CConfig::Write(CFile& File, unsigned int iIndentation) { CString sIndentation = CString(iIndentation, '\t'); for (const auto& it : m_ConfigEntries) { for (const CString& sValue : it.second) { File.Write(sIndentation + it.first + " = " + sValue + "\n"); } } for (const auto& it : m_SubConfigs) { for (const auto& it2... | CVE-2018-14055 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 49e203b71aa9c1064f99a1bc1b2d793c | znc/znc | a4a5aeeb17d32937d8c7d743dae9a4cc755ce773 | 1,531,516,348 | src/WebModules.cpp | CWebSock::GetSkinPath | cpp | CString CWebSock::GetSkinPath(const CString& sSkinName) {
CString sRet = CZNC::Get().GetZNCPath() + "/webskins/" + sSkinName;
if (!CFile::IsDir(sRet)) {
sRet = CZNC::Get().GetCurPath() + "/webskins/" + sSkinName;
if (!CFile::IsDir(sRet)) {
sRet = CString(_SKINDIR_) + "/" + sSkinNam... | CString CWebSock::GetSkinPath(const CString& sSkinName) { CString sRet = CZNC::Get().GetZNCPath() + "/webskins/" + sSkinName; if (!CFile::IsDir(sRet)) { sRet = CZNC::Get().GetCurPath() + "/webskins/" + sSkinName; if (!CFile::IsDir(sRet)) { sRet = CString(_SKINDIR_) + "/" + sSkinName; } } return sRet + "/"; } | CVE-2018-14056 | CWE-22 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c2939f579c2ded9cd469a7860e69519f | neomutt/neomutt | 36a29280448097f34ce9c94606195f2ac643fed1 | 1,530,983,756 | imap/command.c | cmd_handle_untagged | c | static int cmd_handle_untagged(struct ImapData *idata)
{
unsigned int count = 0;
char *s = imap_next_word(idata->buf);
char *pn = imap_next_word(s);
if ((idata->state >= IMAP_SELECTED) && isdigit((unsigned char) *s))
{
pn = s;
s = imap_next_word(s);
/* EXISTS and EXPUNGE are always related to th... | static int cmd_handle_untagged(struct ImapData *idata) { unsigned int count = 0; char *s = imap_next_word(idata->buf); char *pn = imap_next_word(s); if ((idata->state >= IMAP_SELECTED) && isdigit((unsigned char) *s)) { pn = s; s = imap_next_word(s); if (mutt_str_strncasecmp("EXISTS", s, 6) == 0) { mutt_debug(2, "Handli... | CVE-2018-14349 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9b2328d5b75d526ad44138d080edae2a | neomutt/neomutt | 1b0f0d0988e6df4e32e9f4bf8780846ea95d4485 | 1,530,983,026 | imap/message.c | msg_parse_fetch | c | static int msg_parse_fetch(struct ImapHeader *h, char *s)
{
char tmp[SHORT_STRING];
char *ptmp = NULL;
if (!s)
return -1;
while (*s)
{
SKIPWS(s);
if (mutt_str_strncasecmp("FLAGS", s, 5) == 0)
{
s = msg_parse_flags(h, s);
if (!s)
return -1;
}
else if (mutt_str_str... | static int msg_parse_fetch(struct ImapHeader *h, char *s) { char tmp[SHORT_STRING]; char *ptmp = NULL; if (!s) return -1; while (*s) { SKIPWS(s); if (mutt_str_strncasecmp("FLAGS", s, 5) == 0) { s = msg_parse_flags(h, s); if (!s) return -1; } else if (mutt_str_strncasecmp("UID", s, 3) == 0) { s += 3; SKIPWS(s); if (mutt... | CVE-2018-14350 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 0a28cff5ee7d8f6063552c66f9f3ab4d | neomutt/neomutt | 3c49c44be9b459d9c616bcaef6eb5d51298c1741 | 1,530,987,598 | imap/command.c | cmd_parse_status | c | static void cmd_parse_status(struct ImapData *idata, char *s)
{
char *value = NULL;
struct Buffy *inc = NULL;
struct ImapMbox mx;
struct ImapStatus *status = NULL;
unsigned int olduv, oldun;
unsigned int litlen;
short new = 0;
short new_msg_count = 0;
char *mailbox = imap_next_word(s);
/* We need ... | static void cmd_parse_status(struct ImapData *idata, char *s) { char *value = NULL; struct Buffy *inc = NULL; struct ImapMbox mx; struct ImapStatus *status = NULL; unsigned int olduv, oldun; unsigned int litlen; short new = 0; short new_msg_count = 0; char *mailbox = imap_next_word(s); if (imap_get_literal_count(mailbo... | CVE-2018-14351 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dcf28d21b2838a632bda984bf4c128ae | neomutt/neomutt | 95e80bf9ff10f68cb6443f760b85df4117cb15eb | 1,530,921,014 | imap/imap.c | imap_subscribe | c | int imap_subscribe(char *path, bool subscribe)
{
struct ImapData *idata = NULL;
char buf[LONG_STRING];
char mbox[LONG_STRING];
char errstr[STRING];
struct Buffer err, token;
struct ImapMbox mx;
if (!mx_is_imap(path) || imap_parse_path(path, &mx) || !mx.mbox)
{
mutt_error(_("Bad mailbox name"));
... | int imap_subscribe(char *path, bool subscribe) { struct ImapData *idata = NULL; char buf[LONG_STRING]; char mbox[LONG_STRING]; char errstr[STRING]; struct Buffer err, token; struct ImapMbox mx; if (!mx_is_imap(path) || imap_parse_path(path, &mx) || !mx.mbox) { mutt_error(_("Bad mailbox name")); return -1; } idata = ima... | CVE-2018-14354 | CWE-78 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5e72c837ae0e78228721515a8abdc0a0 | neomutt/neomutt | 57971dba06346b2d7179294f4528b8d4427a7c5d | 1,531,139,186 | imap/util.c | imap_hcache_open | c | header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path)
{
struct ImapMbox mx;
struct Url url;
char cachepath[PATH_MAX];
char mbox[PATH_MAX];
if (path)
imap_cachepath(idata, path, mbox, sizeof(mbox));
else
{
if (!idata->ctx || imap_parse_path(idata->ctx->path, &mx) < 0)
re... | header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path) { struct ImapMbox mx; struct Url url; char cachepath[PATH_MAX]; char mbox[PATH_MAX]; if (path) imap_cachepath(idata, path, mbox, sizeof(mbox)); else { if (!idata->ctx || imap_parse_path(idata->ctx->path, &mx) < 0) return NULL; imap_cachepath(ida... | CVE-2018-14355 | CWE-22 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2ae1bf62273b43f8bf01b90c28a12521 | neomutt/neomutt | 93b8ac558752d09e1c56d4f1bc82631316fa9c82 | 1,530,989,734 | pop.c | fetch_uidl | c | static int fetch_uidl(char *line, void *data)
{
int i, index;
struct Context *ctx = (struct Context *) data;
struct PopData *pop_data = (struct PopData *) ctx->data;
char *endp = NULL;
errno = 0;
index = strtol(line, &endp, 10);
if (errno)
return -1;
while (*endp == ' ')
endp++;
memmove(line,... | static int fetch_uidl(char *line, void *data) { int i, index; struct Context *ctx = (struct Context *) data; struct PopData *pop_data = (struct PopData *) ctx->data; char *endp = NULL; errno = 0; index = strtol(line, &endp, 10); if (errno) return -1; while (*endp == ' ') endp++; memmove(line, endp, strlen(endp) + 1); f... | CVE-2018-14356 | CWE-824 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | bb0fd10f3755ed866e644c0cea07e126 | neomutt/neomutt | 9e927affe3a021175f354af5fa01d22657c20585 | 1,530,649,332 | nntp.c | nntp_fetch_headers | c | static int nntp_fetch_headers(struct Context *ctx, void *hc, anum_t first,
anum_t last, int restore)
{
struct NntpData *nntp_data = ctx->data;
struct FetchCtx fc;
struct Header *hdr = NULL;
char buf[HUGE_STRING];
int rc = 0;
int oldmsgcount = ctx->msgcount;
anum_t current;
... | static int nntp_fetch_headers(struct Context *ctx, void *hc, anum_t first, anum_t last, int restore) { struct NntpData *nntp_data = ctx->data; struct FetchCtx fc; struct Header *hdr = NULL; char buf[HUGE_STRING]; int rc = 0; int oldmsgcount = ctx->msgcount; anum_t current; anum_t first_over = first; #ifdef USE_HCACHE v... | CVE-2018-14361 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a4ee16800888caedd8fad5294571273e | wireshark/wireshark | 3b77c0a596a8071aebc1de71e3f79e5e15e919ca | 1,528,585,912 | epan/proto.c | proto_tree_add_string | c | proto_item *
proto_tree_add_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
gint length, const char* value)
{
proto_item *pi;
header_field_info *hfinfo;
CHECK_FOR_NULL_TREE(tree);
TRY_TO_FAKE_THIS_ITEM(tree, hfindex, hfinfo);
DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING(hfinfo);
if (hfinfo... | proto_item * proto_tree_add_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char* value) { proto_item *pi; header_field_info *hfinfo; CHECK_FOR_NULL_TREE(tree); TRY_TO_FAKE_THIS_ITEM(tree, hfindex, hfinfo); DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING(hfinfo); if (hfinfo->display == STR_UNI... | CVE-2018-14339 | CWE-20;CWE-835 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 832ab9bf9f1ac556af6f3fce3549d9df | wireshark/wireshark | 672d882a53f96730e4ef1e5b1639c585823b0df8 | 1,526,386,084 | epan/tvbuff_zlib.c | tvb_uncompress | c | tvbuff_t *
tvb_uncompress(tvbuff_t *tvb, const int offset, int comprlen)
{
gint err;
guint bytes_out = 0;
guint8 *compr;
guint8 *uncompr = NULL;
tvbuff_t *uncompr_tvb = NULL;
z_streamp strm;
Bytef *strmbuf;
guint inits_done = 0;
gint wbits = MAX_WBI... | tvbuff_t * tvb_uncompress(tvbuff_t *tvb, const int offset, int comprlen) { gint err; guint bytes_out = 0; guint8 *compr; guint8 *uncompr = NULL; tvbuff_t *uncompr_tvb = NULL; z_streamp strm; Bytef *strmbuf; guint inits_done = 0; gint wbits = MAX_WBITS; guint8 *next; guint bufsiz; #ifdef TVB_Z_DEBUG guint inflate_passes... | CVE-2018-14340 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b305c249bc38f7f8883ebffaad764d41 | wireshark/wireshark | 2e716c32be6aa20e1813b0002878853e71f8b2f4 | 1,527,468,155 | epan/dissectors/packet-dcm.c | dissect_dcm_tag_value | c | static guint32
dissect_dcm_tag_value(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_pdv_t *pdv,
guint32 offset, guint16 grp, guint16 elm,
guint32 vl, guint32 vl_max, const gchar* vr, gchar **tag_value)
{
/* Based on the value representation, decode the val... | static guint32 dissect_dcm_tag_value(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_pdv_t *pdv, guint32 offset, guint16 grp, guint16 elm, guint32 vl, guint32 vl_max, const gchar* vr, gchar **tag_value) { proto_item *pitem = NULL; gboolean is_little_endian; if (pdv->syntax == DCM_EBE) is_little_endian = ... | CVE-2018-14341 | CWE-835;CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5812a91be5d3f9dbb3912c9a18634c56 | wireshark/wireshark | 4f7153685b39a164aea09ba7f96ebb648b8328ae | 1,526,375,329 | epan/dissectors/packet-ismp.c | dissect_ismp_edp | c | static void
dissect_ismp_edp(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *ismp_tree)
{
/* local variables used for EDP dissection */
int neighbors_count = 0;
int tuples_count = 0;
guint16 device_type = 0;
guint16 num_neighbors = 0;
guint16 num_tuples = 0;
guint16 tuple_type = 0;
guint16 tuple_leng... | static void dissect_ismp_edp(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *ismp_tree) { int neighbors_count = 0; int tuples_count = 0; guint16 device_type = 0; guint16 num_neighbors = 0; guint16 num_tuples = 0; guint16 tuple_type = 0; guint16 tuple_length = 0; proto_item *edp_ti, *ti; proto_tree *edp_tree;... | CVE-2018-14344 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9ccb9724bc8f3858662505e63a5956b9 | wireshark/wireshark | 81ce5fcb3e37a0aaeb7532f7a2a09366f16fa310 | 1,531,416,663 | epan/dissectors/packet-coap.c | dissect_coap | c | static int
dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_)
{
gint offset = 0;
proto_item *coap_root;
proto_item *pi;
proto_tree *coap_tree;
guint8 ttype;
guint8 token_len;
guint8 code;
guint8 code... | static int dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { gint offset = 0; proto_item *coap_root; proto_item *pi; proto_tree *coap_tree; guint8 ttype; guint8 token_len; guint8 code; guint8 code_class; guint16 mid; gint coap_length; gchar *coap_token_str; coap_info *coinfo; co... | CVE-2018-14367 | CWE-252 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f6d25b9547e80ec734973962e409e4a1 | wireshark/wireshark | 038cd225bfa54e2a7ade4043118796334920a61e | 1,528,877,558 | epan/dissectors/packet-http2.c | inflate_http2_header_block | c | static void
inflate_http2_header_block(tvbuff_t *tvb, packet_info *pinfo, guint offset,
proto_tree *tree, size_t headlen,
http2_session_t *h2session, guint8 flags)
{
guint8 *headbuf;
proto_tree *header_tree;
proto_item *header, *ti;
int header_name_l... | static void inflate_http2_header_block(tvbuff_t *tvb, packet_info *pinfo, guint offset, proto_tree *tree, size_t headlen, http2_session_t *h2session, guint8 flags) { guint8 *headbuf; proto_tree *header_tree; proto_item *header, *ti; int header_name_length; int header_value_length; const gchar *header_name; const gchar ... | CVE-2018-14369 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 98aef3c784d11a6fcab7c0e3fc975e60 | wireshark/wireshark | b1446124eebc3ea5591d18e719c2a5cff3630638 | 1,526,563,914 | epan/crypt/airpdcap.c | AirPDcapScanForKeys | c | static INT AirPDcapScanForKeys(
PAIRPDCAP_CONTEXT ctx,
const guint8 *data,
const guint mac_header_len,
const guint tot_len,
AIRPDCAP_SEC_ASSOCIATION_ID id
)
{
guint tot_len_left;
const UCHAR *addr;
guint bodyLength;
PAIRPDCAP_SEC_ASSOCIATION sta_sa;
PAIRPDCAP_SEC_ASSOCIATION sa;
... | static INT AirPDcapScanForKeys( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, AIRPDCAP_SEC_ASSOCIATION_ID id ) { guint tot_len_left; const UCHAR *addr; guint bodyLength; PAIRPDCAP_SEC_ASSOCIATION sta_sa; PAIRPDCAP_SEC_ASSOCIATION sa; guint offset = 0; const guint8 dot1x_hea... | CVE-2018-14370 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3b040af791dc978fa6997179a40dd9c5 | FFmpeg/FFmpeg | 3a2d21bc5f97aa0161db3ae731fc2732be6108b8 | 1,530,901,405 | libavformat/movenc.c | ff_mov_write_packet | c | int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVMuxContext *mov = s->priv_data;
AVIOContext *pb = s->pb;
MOVTrack *trk = &mov->tracks[pkt->stream_index];
AVCodecParameters *par = trk->par;
unsigned int samples_in_chunk = 0;
int size = pkt->size, ret = 0;
uint8_t *reformatted_... | int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) { MOVMuxContext *mov = s->priv_data; AVIOContext *pb = s->pb; MOVTrack *trk = &mov->tracks[pkt->stream_index]; AVCodecParameters *par = trk->par; unsigned int samples_in_chunk = 0; int size = pkt->size, ret = 0; uint8_t *reformatted_data = NULL; ret = check_pkt... | CVE-2018-14394 | CWE-369 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 60a8dd6c99855c9079054312bb7e8017 | FFmpeg/FFmpeg | fa19fbcf712a6a6cc5a5cfdc3254a97b9bce6582 | 1,530,994,602 | libavformat/movenc.c | mov_write_audio_tag | c | static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
{
int64_t pos = avio_tell(pb);
int version = 0;
uint32_t tag = track->tag;
if (track->mode == MODE_MOV) {
if (track->timescale > UINT16_MAX) {
if (mov_get_lpcm_flags(track->par->... | static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int version = 0; uint32_t tag = track->tag; if (track->mode == MODE_MOV) { if (track->timescale > UINT16_MAX) { if (mov_get_lpcm_flags(track->par->codec_id)) tag = AV_RL32("lpcm"); ver... | CVE-2018-14395 | CWE-369 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | eebc262b4cb5fdd7d7d85b659ce51083 | FFmpeg/FFmpeg | 2c0e98a0b478284bdff6d7a4062522605a8beae5 | 1,530,994,602 | libavformat/movenc.c | mov_write_audio_tag | c | static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track)
{
int64_t pos = avio_tell(pb);
int version = 0;
uint32_t tag = track->tag;
if (track->mode == MODE_MOV) {
if (track->timescale > UINT16_MAX) {
if (mov_get_lpcm_flags(track->par->... | static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int version = 0; uint32_t tag = track->tag; if (track->mode == MODE_MOV) { if (track->timescale > UINT16_MAX) { if (mov_get_lpcm_flags(track->par->codec_id)) tag = AV_RL32("lpcm"); ver... | CVE-2018-14395 | CWE-369 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 23ef11611f450402367330a10225d57e | GNOME/evolution-data-server | f26a6f67 | 1,462,902,251 | camel/providers/imapx/camel-imapx-server.c | imapx_connect_to_server | c | static gboolean
imapx_connect_to_server (CamelIMAPXServer *is,
GCancellable *cancellable,
GError **error)
{
CamelNetworkSettings *network_settings;
CamelNetworkSecurityMethod method;
CamelIMAPXStore *store;
CamelSettings *settings;
GIOStream *connection = NULL;
GI... | static gboolean imapx_connect_to_server (CamelIMAPXServer *is, GCancellable *cancellable, GError **error) { CamelNetworkSettings *network_settings; CamelNetworkSecurityMethod method; CamelIMAPXStore *store; CamelSettings *settings; GIOStream *connection = NULL; GIOStream *tls_stream; GSocket *socket; guint len; guchar ... | CVE-2016-10727 | CWE-200 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e6c056c0a1fd71a1782fb0512487f2bc | FFmpeg/FFmpeg | cced03dd667a5df6df8fd40d8de0bff477ee02e8 | 1,530,635,584 | libavformat/mms.c | ff_mms_asf_header_parser | c | int ff_mms_asf_header_parser(MMSContext *mms)
{
uint8_t *p = mms->asf_header;
uint8_t *end;
int flags, stream_id;
mms->stream_num = 0;
if (mms->asf_header_size < sizeof(ff_asf_guid) * 2 + 22 ||
memcmp(p, ff_asf_header, sizeof(ff_asf_guid))) {
av_log(NULL, AV_LOG_ERROR,
... | int ff_mms_asf_header_parser(MMSContext *mms) { uint8_t *p = mms->asf_header; uint8_t *end; int flags, stream_id; mms->stream_num = 0; if (mms->asf_header_size < sizeof(ff_asf_guid) * 2 + 22 || memcmp(p, ff_asf_header, sizeof(ff_asf_guid))) { av_log(NULL, AV_LOG_ERROR, "Corrupt stream (invalid ASF header, size=%d)\n", ... | CVE-2018-1999010 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c6470a76d13871d5184a5665a033ff07 | FFmpeg/FFmpeg | 2b46ebdbff1d8dec7a3d8ea280a612b91a582869 | 1,530,637,283 | libavformat/asfdec_o.c | parse_video_info | c | static int parse_video_info(AVIOContext *pb, AVStream *st)
{
uint16_t size_asf; // ASF-specific Format Data size
uint32_t size_bmp; // BMP_HEADER-specific Format Data size
unsigned int tag;
st->codecpar->width = avio_rl32(pb);
st->codecpar->height = avio_rl32(pb);
avio_skip(pb, 1); // skip res... | static int parse_video_info(AVIOContext *pb, AVStream *st) { uint16_t size_asf; uint32_t size_bmp; unsigned int tag; st->codecpar->width = avio_rl32(pb); st->codecpar->height = avio_rl32(pb); avio_skip(pb, 1); size_asf = avio_rl16(pb); tag = ff_get_bmp_header(pb, st, &size_bmp); st->codecpar->codec_tag = tag; st->codec... | CVE-2018-1999011 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1fdb47017a7844dc90b653102906ec83 | FFmpeg/FFmpeg | 9807d3976be0e92e4ece3b4b1701be894cd7c2e1 | 1,530,641,682 | libavformat/pva.c | read_part_of_packet | c | static int read_part_of_packet(AVFormatContext *s, int64_t *pts,
int *len, int *strid, int read_packet) {
AVIOContext *pb = s->pb;
PVAContext *pvactx = s->priv_data;
int syncword, streamid, reserved, flags, length, pts_flag;
int64_t pva_pts = AV_NOPTS_VALUE, startpos;
... | static int read_part_of_packet(AVFormatContext *s, int64_t *pts, int *len, int *strid, int read_packet) { AVIOContext *pb = s->pb; PVAContext *pvactx = s->priv_data; int syncword, streamid, reserved, flags, length, pts_flag; int64_t pva_pts = AV_NOPTS_VALUE, startpos; int ret; recover: startpos = avio_tell(pb); syncwor... | CVE-2018-1999012 | CWE-835 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 870740742d3172b8d3b2ccfde80e373c | FFmpeg/FFmpeg | a7e032a277452366771951e29fd0bf2bd5c029f0 | 1,530,639,466 | libavformat/rmdec.c | rm_read_multi | c | static int rm_read_multi(AVFormatContext *s, AVIOContext *pb,
AVStream *st, char *mime)
{
int number_of_streams = avio_rb16(pb);
int number_of_mdpr;
int i, ret;
unsigned size2;
for (i = 0; i<number_of_streams; i++)
avio_rb16(pb);
number_of_mdpr = avio_rb16(pb);
... | static int rm_read_multi(AVFormatContext *s, AVIOContext *pb, AVStream *st, char *mime) { int number_of_streams = avio_rb16(pb); int number_of_mdpr; int i, ret; unsigned size2; for (i = 0; i<number_of_streams; i++) avio_rb16(pb); number_of_mdpr = avio_rb16(pb); if (number_of_mdpr != 1) { avpriv_request_sample(s, "MLTI ... | CVE-2018-1999013 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b6553b5b2aed252ea23d52f1d8e20a2f | FFmpeg/FFmpeg | bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75 | 1,530,635,886 | libavformat/mxfdec.c | mxf_parse_structural_metadata | c | static int mxf_parse_structural_metadata(MXFContext *mxf)
{
MXFPackage *material_package = NULL;
int i, j, k, ret;
av_log(mxf->fc, AV_LOG_TRACE, "metadata sets count %d\n", mxf->metadata_sets_count);
/* TODO: handle multiple material packages (OP3x) */
for (i = 0; i < mxf->packages_count; i++) {
... | static int mxf_parse_structural_metadata(MXFContext *mxf) { MXFPackage *material_package = NULL; int i, j, k, ret; av_log(mxf->fc, AV_LOG_TRACE, "metadata sets count %d\n", mxf->metadata_sets_count); for (i = 0; i < mxf->packages_count; i++) { material_package = mxf_resolve_strong_ref(mxf, &mxf->packages_refs[i], Mater... | CVE-2018-1999014 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 69c250ba6a1bc09c62027594ca3879fa | FFmpeg/FFmpeg | 5aba5b89d0b1d73164d3b81764828bb8b20ff32a | 1,530,643,712 | libavcodec/mpeg4videodec.c | read_quant_matrix_ext | c | static void read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb)
{
int i, j, v;
if (get_bits1(gb)) {
/* intra_quantiser_matrix */
for (i = 0; i < 64; i++) {
v = get_bits(gb, 8);
j = s->idsp.idct_permutation[ff_zigzag_direct[i]];
s->intra_matrix[j] ... | static void read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb) { int i, j, v; if (get_bits1(gb)) { for (i = 0; i < 64; i++) { v = get_bits(gb, 8); j = s->idsp.idct_permutation[ff_zigzag_direct[i]]; s->intra_matrix[j] = v; s->chroma_intra_matrix[j] = v; } } if (get_bits1(gb)) { for (i = 0; i < 64; i++) { get_bi... | CVE-2018-1999015 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ad788130c69af90d68b896dcf0314a00 | poppler/poppler | 004e3c10df0abda214f0c293f9e269fdd979c5ee | 1,531,938,687 | poppler/Parser.cc | Parser::getObj | cpp | Object Parser::getObj(GBool simpleOnly,
Guchar *fileKey,
CryptAlgorithm encAlgorithm, int keyLength,
int objNum, int objGen, int recursion,
GBool strict) {
Object obj;
Stream *str;
DecryptStream *decrypt;
const GooString *s;
GooString *s2;
int c;
// refill buffer aft... | Object Parser::getObj(GBool simpleOnly, Guchar *fileKey, CryptAlgorithm encAlgorithm, int keyLength, int objNum, int objGen, int recursion, GBool strict) { Object obj; Stream *str; DecryptStream *decrypt; const GooString *s; GooString *s2; int c; if (inlineImg == 2) { buf1 = lexer->getObj(); buf2 = lexer->getObj(); inl... | CVE-2018-13988 | CWE-125 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 11df4f8add182baf1e16abf44f773a6b | GNOME/NetworkManager-vpnc | 07ac18a32b4 | 1,531,493,464 | src/nm-vpnc-service.c | validate_one_property | c | static void
validate_one_property (const char *key, const char *value, gpointer user_data)
{
ValidateInfo *info = (ValidateInfo *) user_data;
ValidProperty *prop = NULL;
long int tmp;
int i;
if (*(info->error))
return;
info->have_items = TRUE;
/* 'name' is the setting name; always allowed but unused */
if ... | static void validate_one_property (const char *key, const char *value, gpointer user_data) { ValidateInfo *info = (ValidateInfo *) user_data; ValidProperty *prop = NULL; long int tmp; int i; if (*(info->error)) return; info->have_items = TRUE; if (!strcmp (key, NM_SETTING_NAME)) return; for (i = 0; info->table[i].name;... | CVE-2018-10900 | CWE-78 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 167fefbcec160966dcecafcec6f736dd | xorg/xserver | d7ac755f0b618eb1259d93c8a16ec6e39a18627c | 1,488,305,905 | os/mitauth.c | MitCheckCookie | c | XID
MitCheckCookie(unsigned short data_length,
const char *data, ClientPtr client, const char **reason)
{
struct auth *auth;
for (auth = mit_auth; auth; auth = auth->next) {
if (data_length == auth->len &&
memcmp(data, auth->data, (int) data_length) == 0)
return a... | XID MitCheckCookie(unsigned short data_length, const char *data, ClientPtr client, const char **reason) { struct auth *auth; for (auth = mit_auth; auth; auth = auth->next) { if (data_length == auth->len && memcmp(data, auth->data, (int) data_length) == 0) return auth->id; } *reason = "Invalid MIT-MAGIC-COOKIE-1 key"; r... | CVE-2017-2624 | CWE-200 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7ebd5023282cb4cf235e55eefcd24b99 | xorg/lib/libXdmcp | 0554324ec6bbc2071f5d1f8ad211a1643e29eb1f | 1,491,326,018 | Key.c | XdmcpGenerateKey | c | void
XdmcpGenerateKey (XdmAuthKeyPtr key)
{
#ifndef HAVE_ARC4RANDOM_BUF
long lowbits, highbits;
srandom ((int)getpid() ^ time((Time_t *)0));
lowbits = random ();
highbits = random ();
getbits (lowbits, key->data);
getbits (highbits, key->data + 4);
#else
arc4random_buf(key->data, 8);
#en... | void XdmcpGenerateKey (XdmAuthKeyPtr key) { #ifndef HAVE_ARC4RANDOM_BUF long lowbits, highbits; srandom ((int)getpid() ^ time((Time_t *)0)); lowbits = random (); highbits = random (); getbits (lowbits, key->data); getbits (highbits, key->data + 4); #else arc4random_buf(key->data, 8); #endif } | CVE-2017-2625 | CWE-331;CWE-320 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e5cc47d8741be1197d939ac27c530324 | qemu/qemu | 2563c9c6b8670400c48e562034b321a7cf3d9a85 | 1,488,896,187 | nbd/client.c | drop_sync | c | static ssize_t drop_sync(QIOChannel *ioc, size_t size)
{
ssize_t ret = 0;
char small[1024];
char *buffer;
buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, MIN(65536, size));
if (count <= 0) {
g... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) { ssize_t ret = 0; char small[1024]; char *buffer; buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size)); while (size > 0) { ssize_t count = read_sync(ioc, buffer, MIN(65536, size)); if (count <= 0) { goto cleanup; } assert(count <= size); size -= coun... | CVE-2017-2630 | CWE-121;CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1be7ed4773e12e81b1af7b9d0d6e4468 | util-linux/util-linux | dffab154d29a288aa171ff50263ecc8f2e14a891 | 1,485,943,089 | login-utils/su-common.c | create_watching_parent | c | static void
create_watching_parent (void)
{
pid_t child;
sigset_t ourset;
struct sigaction oldact[3];
int status = 0;
int retval;
retval = pam_open_session (pamh, 0);
if (is_pam_failure(retval))
{
cleanup_pam (retval);
errx (EXIT_FAILURE, _("cannot open session: %s"),
pam_strerror (... | static void create_watching_parent (void) { pid_t child; sigset_t ourset; struct sigaction oldact[3]; int status = 0; int retval; retval = pam_open_session (pamh, 0); if (is_pam_failure(retval)) { cleanup_pam (retval); errx (EXIT_FAILURE, _("cannot open session: %s"), pam_strerror (pamh, retval)); } else _pam_session_o... | CVE-2017-2616 | CWE-362 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7870d0e1010f5f0915db13b6d355c00a | xorg/lib/libICE | ff5e59f32255913bb1cdf51441b98c9107ae165b | 1,491,325,973 | src/iceauth.c | IceGenerateMagicCookie | c | char *
IceGenerateMagicCookie (
int len
)
{
char *auth;
#ifndef HAVE_ARC4RANDOM_BUF
long ldata[2];
int seed;
int value;
int i;
#endif
if ((auth = malloc (len + 1)) == NULL)
return (NULL);
#ifdef HAVE_ARC4RANDOM_BUF
arc4random_buf(auth, len);
#else
#ifdef ITIMER_REAL
... | char * IceGenerateMagicCookie ( int len ) { char *auth; #ifndef HAVE_ARC4RANDOM_BUF long ldata[2]; int seed; int value; int i; #endif if ((auth = malloc (len + 1)) == NULL) return (NULL); #ifdef HAVE_ARC4RANDOM_BUF arc4random_buf(auth, len); #else #ifdef ITIMER_REAL { struct timeval now; X_GETTIMEOFDAY (&now); ldata[0]... | CVE-2017-2626 | CWE-331 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ca539a474f5af4871b44042db6a5a8ad | lavv17/lftp | a27e07d90a4608ceaf928b1babb27d4d803e1992 | 1,533,016,655 | src/MirrorJob.cc | MirrorJob::Do | cpp | int MirrorJob::Do()
{
int res;
int m=STALL;
FileInfo *file;
Job *j;
switch(state)
{
case(INITIAL_STATE):
remove_this_source_dir=(remove_source_dirs && source_dir.last_char()!='/');
if(!strcmp(target_dir,".") || !strcmp(target_dir,"..") || (FlagSet(SCAN_ALL_FIRST) && parent_mirror)... | int MirrorJob::Do() { int res; int m=STALL; FileInfo *file; Job *j; switch(state) { case(INITIAL_STATE): remove_this_source_dir=(remove_source_dirs && source_dir.last_char()!='/'); if(!strcmp(target_dir,".") || !strcmp(target_dir,"..") || (FlagSet(SCAN_ALL_FIRST) && parent_mirror)) create_target_dir=false; source_sessi... | CVE-2018-10916 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 31f33bb7aba53d3197b23b5ee83976d5 | simsong/tcpflow | a4e1cd14eb5ccc51ed271b65b3420f7d692c40eb | 1,533,252,789 | src/wifipcap/wifipcap.cpp | WifiPacket::handle_prism | cpp | void WifiPacket::handle_prism(const u_char *pc, size_t len)
{
prism2_pkthdr hdr;
/* get the fields */
hdr.host_time = EXTRACT_LE_32BITS(pc+32);
hdr.mac_time = EXTRACT_LE_32BITS(pc+44);
hdr.channel = EXTRACT_LE_32BITS(pc+56);
hdr.rssi = EXTRACT_LE_32BITS(pc+68);
hdr.sq = EXTRACT_LE_32... | void WifiPacket::handle_prism(const u_char *pc, size_t len) { prism2_pkthdr hdr; hdr.host_time = EXTRACT_LE_32BITS(pc+32); hdr.mac_time = EXTRACT_LE_32BITS(pc+44); hdr.channel = EXTRACT_LE_32BITS(pc+56); hdr.rssi = EXTRACT_LE_32BITS(pc+68); hdr.sq = EXTRACT_LE_32BITS(pc+80); hdr.signal = EXTRACT_LE_32BITS(pc+92); hdr.n... | CVE-2018-14938 | CWE-125;CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dc5044b950cef9e78409aca74c4d0fa3 | rpm-software-management/rpm | c815822c8bdb138066ff58c624ae83e3a12ebfa9 | 1,506,501,917 | lib/verify.c | rpmfilesVerify | c | rpmVerifyAttrs rpmfilesVerify(rpmfiles fi, int ix, rpmVerifyAttrs omitMask)
{
rpm_mode_t fmode = rpmfilesFMode(fi, ix);
rpmfileAttrs fileAttrs = rpmfilesFFlags(fi, ix);
rpmVerifyAttrs flags = rpmfilesVFlags(fi, ix);
const char * fn = rpmfilesFN(fi, ix);
struct stat sb;
rpmVerifyAttrs vfy = RPMVE... | rpmVerifyAttrs rpmfilesVerify(rpmfiles fi, int ix, rpmVerifyAttrs omitMask) { rpm_mode_t fmode = rpmfilesFMode(fi, ix); rpmfileAttrs fileAttrs = rpmfilesFFlags(fi, ix); rpmVerifyAttrs flags = rpmfilesVFlags(fi, ix); const char * fn = rpmfilesFN(fi, ix); struct stat sb; rpmVerifyAttrs vfy = RPMVERIFY_NONE; switch (rpmfi... | CVE-2017-7500 | CWE-59 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 220c55af47c7bb9f1b5f07555809f35a | xen-project/xen | d8800a82c3840b06b17672eddee4878bbfdacc6d | 1,534,151,243 | xen/arch/x86/spec_ctrl.c | parse_spec_ctrl | c | static int __init parse_spec_ctrl(const char *s)
{
const char *ss;
int val, rc = 0;
do {
ss = strchr(s, ',');
if ( !ss )
ss = strchr(s, '\0');
/* Global and Xen-wide disable. */
val = parse_bool(s, ss);
if ( !val )
{
opt_msr_sc_pv = f... | static int __init parse_spec_ctrl(const char *s) { const char *ss; int val, rc = 0; do { ss = strchr(s, ','); if ( !ss ) ss = strchr(s, '\0'); val = parse_bool(s, ss); if ( !val ) { opt_msr_sc_pv = false; opt_msr_sc_hvm = false; opt_eager_fpu = 0; disable_common: opt_rsb_pv = false; opt_rsb_hvm = false; opt_thunk = THU... | CVE-2018-3620 | CWE-203 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 664dcc3575b5665beefe6f67e5a38044 | GNOME/libxml2 | 2240fbf5912054af025fb6e01e26375100275e74 | 1,532,942,051 | xzlib.c | xz_decomp | c | static int
xz_decomp(xz_statep state)
{
int ret;
unsigned had;
unsigned long crc, len;
lzma_stream *strm = &(state->strm);
lzma_action action = LZMA_RUN;
/* fill output buffer up to end of deflate stream */
had = strm->avail_out;
do {
/* get more input for inflate() */
... | static int xz_decomp(xz_statep state) { int ret; unsigned had; unsigned long crc, len; lzma_stream *strm = &(state->strm); lzma_action action = LZMA_RUN; had = strm->avail_out; do { if (strm->avail_in == 0 && xz_avail(state) == -1) return -1; if (strm->avail_in == 0) { xz_error(state, LZMA_DATA_ERROR, "unexpected end o... | CVE-2018-14567 | CWE-835 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4a949db3561e09763980e2bdabb2e59b | intel/openlldp | cf3f54d1883e5bc23e4c4006a63e1dde88684013 | 1,529,594,928 | lldp_basman_clif.c | print_mng_addr | c | void print_mng_addr(u16 len, char *info)
{
u8 addrlen;
u8 addrnum;
u8 iftype;
u8 oidlen;
u32 ifnum;
u32 offset;
int i;
char buf[132];
if (len < 9 || len > 167) {
printf("Bad Management Address TLV: %*.*s\n",
2*len, 2*len, info);
return;
}
hexstr2bin(info, (u8 *)&addrlen, sizeof(addrlen));
hexstr2bi... | void print_mng_addr(u16 len, char *info) { u8 addrlen; u8 addrnum; u8 iftype; u8 oidlen; u32 ifnum; u32 offset; int i; char buf[132]; if (len < 9 || len > 167) { printf("Bad Management Address TLV: %*.*s\n", 2*len, 2*len, info); return; } hexstr2bin(info, (u8 *)&addrlen, sizeof(addrlen)); hexstr2bin(info+2, (u8 *)&addr... | CVE-2018-10932 | CWE-117;CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 53ce2d1296710f6aafb572ced809cf3e | GNOME/pango | 71aaeaf020340412b8d012fe23a556c0420eda5f | 1,534,552,176 | pango/pango-emoji.c | _pango_emoji_iter_next | c | gboolean
_pango_emoji_iter_next (PangoEmojiIter *iter)
{
PangoEmojiType current_emoji_type = PANGO_EMOJI_TYPE_INVALID;
if (iter->end == iter->text_end)
return FALSE;
iter->start = iter->end;
for (; iter->end < iter->text_end; iter->end = g_utf8_next_char (iter->end))
{
gunichar ch = g_utf8_get_... | gboolean _pango_emoji_iter_next (PangoEmojiIter *iter) { PangoEmojiType current_emoji_type = PANGO_EMOJI_TYPE_INVALID; if (iter->end == iter->text_end) return FALSE; iter->start = iter->end; for (; iter->end < iter->text_end; iter->end = g_utf8_next_char (iter->end)) { gunichar ch = g_utf8_get_char (iter->end); if ((!(... | CVE-2018-15120 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3849efa362dd0414aaa835cdf7a1eea9 | xkbcommon/libxkbcommon | 1f9d1248c07cda8aaff762429c0dce146de8632a | 1,520,712,647 | src/xkbcomp/expr.c | ExprResolveBoolean | c | bool
ExprResolveBoolean(struct xkb_context *ctx, const ExprDef *expr,
bool *set_rtrn)
{
bool ok = false;
const char *ident;
switch (expr->expr.op) {
case EXPR_VALUE:
if (expr->expr.value_type != EXPR_TYPE_BOOLEAN) {
log_err(ctx,
"Found constant... | bool ExprResolveBoolean(struct xkb_context *ctx, const ExprDef *expr, bool *set_rtrn) { bool ok = false; const char *ident; switch (expr->expr.op) { case EXPR_VALUE: if (expr->expr.value_type != EXPR_TYPE_BOOLEAN) { log_err(ctx, "Found constant of type %s where boolean was expected\n", expr_value_type_to_string(expr->e... | CVE-2018-15853 | CWE-400 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 792a0bce8e11f6c2c1c0191123838b28 | xkbcommon/libxkbcommon | 917636b1d0d70205a13f89062b95e3a0fc31d4ff | 1,520,777,226 | src/xkbcomp/keymap.c | CompileKeymap | c | bool
CompileKeymap(XkbFile *file, struct xkb_keymap *keymap, enum merge_mode merge)
{
bool ok;
XkbFile *files[LAST_KEYMAP_FILE_TYPE + 1] = { NULL };
enum xkb_file_type type;
struct xkb_context *ctx = keymap->ctx;
/* Collect section files and check for duplicates. */
for (file = (XkbFile *) file... | bool CompileKeymap(XkbFile *file, struct xkb_keymap *keymap, enum merge_mode merge) { bool ok; XkbFile *files[LAST_KEYMAP_FILE_TYPE + 1] = { NULL }; enum xkb_file_type type; struct xkb_context *ctx = keymap->ctx; for (file = (XkbFile *) file->defs; file; file = (XkbFile *) file->common.next) { if (file->file_type < FIR... | CVE-2018-15855 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2bef9b1b9cb2252a1ab73c2d7bc43975 | xkbcommon/libxkbcommon | 842e4351c2c97de6051cab6ce36b4a81e709a0e1 | 1,520,837,035 | src/compose/parser.c | lex | c | static enum rules_token
lex(struct scanner *s, union lvalue *val)
{
skip_more_whitespace_and_comments:
/* Skip spaces. */
while (is_space(peek(s)))
if (next(s) == '\n')
return TOK_END_OF_LINE;
/* Skip comments. */
if (chr(s, '#')) {
skip_to_eol(s);
goto skip_more_whi... | static enum rules_token lex(struct scanner *s, union lvalue *val) { skip_more_whitespace_and_comments: while (is_space(peek(s))) if (next(s) == '\n') return TOK_END_OF_LINE; if (chr(s, '#')) { skip_to_eol(s); goto skip_more_whitespace_and_comments; } if (eof(s)) return TOK_END_OF_FILE; s->token_line = s->line; s->token... | CVE-2018-15856 | CWE-835 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | a601eda0486ca3c7e7bcb69e41b2e6d0 | apache/trafficserver | f9f017a9035a1befcc9e3afe689be54aa6c11576 | 1,519,781,650 | proxy/http/remap/UrlRewrite.cc | UrlRewrite::PerformACLFiltering | cpp | void
UrlRewrite::PerformACLFiltering(HttpTransact::State *s, url_mapping *map)
{
if (unlikely(!s || s->acl_filtering_performed || !s->client_connection_enabled)) {
return;
}
s->acl_filtering_performed = true; // small protection against reverse mapping
if (map->filter) {
int method = s->... | void UrlRewrite::PerformACLFiltering(HttpTransact::State *s, url_mapping *map) { if (unlikely(!s || s->acl_filtering_performed || !s->client_connection_enabled)) { return; } s->acl_filtering_performed = true; if (map->filter) { int method = s->hdr_info.client_request.method_get_wksidx(); int method_wksidx = (method != ... | CVE-2018-1318 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | d0a2157406f2dd72d792160e5266ba95 | apache/trafficserver | ef4542258018775834b13d804d8d0584fcb135d4 | 1,519,854,306 | proxy/http/HttpTransact.cc | HttpTransact::build_error_response | cpp | void
HttpTransact::build_error_response(State *s, HTTPStatus status_code, const char *reason_phrase_or_null, const char *error_body_type)
{
char body_language[256], body_type[256];
if (nullptr == error_body_type) {
error_body_type = "default";
}
// Make sure that if this error occured before we initailzie... | void HttpTransact::build_error_response(State *s, HTTPStatus status_code, const char *reason_phrase_or_null, const char *error_body_type) { char body_language[256], body_type[256]; if (nullptr == error_body_type) { error_body_type = "default"; } initialize_state_variables_from_request(s, &s->hdr_info.client_request); i... | CVE-2018-8004 | CWE-444 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 3002d90d490c0421fb899f150af54e50 | apache/trafficserver | c54b47b4ec5dfad855a5cb342d84796e35ec6be6 | 1,520,292,078 | proxy/hdrs/HTTP.cc | http_parser_parse_req | cpp | ParseResult
http_parser_parse_req(HTTPParser *parser, HdrHeap *heap, HTTPHdrImpl *hh, const char **start, const char *end,
bool must_copy_strings, bool eof, bool strict_uri_parsing)
{
if (parser->m_parsing_http) {
MIMEScanner *scanner = &parser->m_mime_parser.m_scanner;
URLImpl *url;
... | ParseResult http_parser_parse_req(HTTPParser *parser, HdrHeap *heap, HTTPHdrImpl *hh, const char **start, const char *end, bool must_copy_strings, bool eof, bool strict_uri_parsing) { if (parser->m_parsing_http) { MIMEScanner *scanner = &parser->m_mime_parser.m_scanner; URLImpl *url; ParseResult err; bool line_is_real;... | CVE-2018-8004 | CWE-444 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dcc28108b889686a4c4317e51b0f32aa | apache/trafficserver | 015c9bc58d5ebf733060e6b23f54bfb143155f9d | 1,518,647,549 | proxy/http/HttpConfig.h | OverridableHttpConfigParams | cpp | OverridableHttpConfigParams()
: maintain_pristine_host_hdr(1),
chunking_enabled(1),
negative_caching_enabled(0),
negative_revalidating_enabled(0),
cache_when_to_revalidate(0),
keep_alive_enabled_in(1),
keep_alive_enabled_out(1),
keep_alive_post_out(1),
server_session_... | OverridableHttpConfigParams() : maintain_pristine_host_hdr(1), chunking_enabled(1), negative_caching_enabled(0), negative_revalidating_enabled(0), cache_when_to_revalidate(0), keep_alive_enabled_in(1), keep_alive_enabled_out(1), keep_alive_post_out(1), server_session_sharing_match(TS_SERVER_SESSION_SHARING_MATCH_BOTH),... | CVE-2018-8005 | CWE-400 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | c77c4d8b18070e59afb79488f4c1ef61 | wireshark/wireshark | f98fbce64cb230e94a2cafc410a3cedad657b485 | 1,532,272,699 | epan/dissectors/packet-btatt.c | dissect_attribute_value | c | static gint
dissect_attribute_value(proto_tree *tree, proto_item *patron_item, packet_info *pinfo, tvbuff_t *old_tvb,
gint old_offset, gint length, guint16 handle, bluetooth_uuid_t uuid, btatt_data_t *att_data)
{
proto_item *sub_item;
proto_tree *sub_tree = NULL;
tvbuff_t *tvb;
gint ... | static gint dissect_attribute_value(proto_tree *tree, proto_item *patron_item, packet_info *pinfo, tvbuff_t *old_tvb, gint old_offset, gint length, guint16 handle, bluetooth_uuid_t uuid, btatt_data_t *att_data) { proto_item *sub_item; proto_tree *sub_tree = NULL; tvbuff_t *tvb; gint offset = 0; bluetooth_uuid_t sub_uui... | CVE-2018-16056 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ee509cffe549e0659a88b99282e8efd9 | wireshark/wireshark | c48d6a6d60c5c9111838a945966b6cb8750777be | 1,534,230,189 | epan/dissectors/packet-btavdtp.c | dissect_sep | c | static gint
dissect_sep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset,
guint32 interface_id, guint32 adapter_id, guint32 chandle)
{
proto_tree *sep_tree;
proto_item *sep_item;
guint i_sep = 1;
guint media_type;
guint type;
guin... | static gint dissect_sep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, guint32 interface_id, guint32 adapter_id, guint32 chandle) { proto_tree *sep_tree; proto_item *sep_item; guint i_sep = 1; guint media_type; guint type; guint seid; guint in_use; guint items; guint32 direction; direction = (pinfo->... | CVE-2018-16058 | CWE-665 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 2fe95654e23c61cd7265a2b3e9c07c5b | ArtifexSoftware/ghostpdl | 78911a01b67d590b4a91afac2e8417360b934156 | 1,535,007,299 | psi/zdevice2.c | z2restore | c | static int
z2restore(i_ctx_t *i_ctx_p)
{
while (gs_gstate_saved(gs_gstate_saved(igs))) {
if (restore_page_device(igs, gs_gstate_saved(igs)))
return push_callout(i_ctx_p, "%restore1pagedevice");
gs_grestore(igs);
}
if (restore_page_device(igs, gs_gstate_saved(igs)))
return... | static int z2restore(i_ctx_t *i_ctx_p) { while (gs_gstate_saved(gs_gstate_saved(igs))) { if (restore_page_device(igs, gs_gstate_saved(igs))) return push_callout(i_ctx_p, "%restore1pagedevice"); gs_grestore(igs); } if (restore_page_device(igs, gs_gstate_saved(igs))) return push_callout(i_ctx_p, "%restorepagedevice"); re... | CVE-2018-16509 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | fc3017a3c435dfb051dc4c32236161c3 | ArtifexSoftware/ghostpdl | b326a71659b7837d3acde954b18bda1a6f5e9498 | 1,534,857,845 | psi/zcolor.c | zsetcolor | c | static int
zsetcolor(i_ctx_t * i_ctx_p)
{
os_ptr op = osp;
es_ptr ep;
const gs_color_space * pcs = gs_currentcolorspace(igs);
gs_client_color cc;
int n_comps, n_numeric_comps, num_offset = 0, code, depth;
PS_colour_space_t *space;
/* initialize ... | static int zsetcolor(i_ctx_t * i_ctx_p) { os_ptr op = osp; es_ptr ep; const gs_color_space * pcs = gs_currentcolorspace(igs); gs_client_color cc; int n_comps, n_numeric_comps, num_offset = 0, code, depth; PS_colour_space_t *space; cc.pattern = 0; if ((n_comps = cs_num_components(pcs)) < 0) { n_comps = -n_comps; if (r_h... | CVE-2018-16513 | CWE-704 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | cd4b00c21d8c576068d13e62a64e9917 | ArtifexSoftware/ghostpdl | 241d91112771a6104de10b3948c3f350d6690c1d | 1,535,028,078 | psi/imain.c | gs_main_finit | c | int
gs_main_finit(gs_main_instance * minst, int exit_status, int code)
{
i_ctx_t *i_ctx_p = minst->i_ctx_p;
gs_dual_memory_t dmem = {0};
int exit_code;
ref error_object;
char *tempnames;
/* NB: need to free gs_name_table
*/
/*
* Previous versions of this code closed the devices i... | int gs_main_finit(gs_main_instance * minst, int exit_status, int code) { i_ctx_t *i_ctx_p = minst->i_ctx_p; gs_dual_memory_t dmem = {0}; int exit_code; ref error_object; char *tempnames; tempnames = gs_main_tempnames(minst); gs_finit_push_systemdict(i_ctx_p); if (minst->init_done >= 2) { gs_main_run_string(minst, "/BGP... | CVE-2018-16541 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 54f9e7d81945267c6f8eb1a75acab82c | ArtifexSoftware/ghostpdl | b575e1ec42cc86f6a58c603f2a88fcc2af699cc8 | 1,535,016,056 | psi/interp.c | gs_call_interp | c | static int
gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors,
int *pexit_code, ref * perror_object)
{
ref *epref = pref;
ref doref;
ref *perrordict;
ref error_name;
int code, ccode;
ref saref;
i_ctx_t *i_ctx_p = *pi_ctx_p;
int *gc_signal = &imemory_system->gs_... | static int gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors, int *pexit_code, ref * perror_object) { ref *epref = pref; ref doref; ref *perrordict; ref error_name; int code, ccode; ref saref; i_ctx_t *i_ctx_p = *pi_ctx_p; int *gc_signal = &imemory_system->gs_lib_ctx->gcsignal; *pexit_code = 0; *gc_signal ... | CVE-2018-16542 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 5ab17057fa0051cf65d42b3b64e1b946 | ClusterLabs/pacemaker | 5d71e65049 | 1,478,176,990 | lib/common/ipc.c | crm_client_new | c | crm_client_t *
crm_client_new(qb_ipcs_connection_t * c, uid_t uid_client, gid_t gid_client)
{
static uid_t uid_server = 0;
static gid_t gid_cluster = 0;
crm_client_t *client = NULL;
CRM_LOG_ASSERT(c);
if (c == NULL) {
return NULL;
}
if (gid_cluster == 0) {
uid_server = get... | crm_client_t * crm_client_new(qb_ipcs_connection_t * c, uid_t uid_client, gid_t gid_client) { static uid_t uid_server = 0; static gid_t gid_cluster = 0; crm_client_t *client = NULL; CRM_LOG_ASSERT(c); if (c == NULL) { return NULL; } if (gid_cluster == 0) { uid_server = getuid(); if(crm_user_lookup(CRM_DAEMON_USER, NULL... | CVE-2016-7035 | CWE-285 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 4861435861e1c63b914f75c51a993c22 | ArtifexSoftware/ghostpdl | 643b24dbd002fb9c131313253c307cf3951b3d47 | 1,536,296,832 | psi/zdevice2.c | restore_page_device | c | static int
restore_page_device(i_ctx_t *i_ctx_p, const gs_gstate * pgs_old, const gs_gstate * pgs_new)
{
gx_device *dev_old = gs_currentdevice(pgs_old);
gx_device *dev_new;
gx_device *dev_t1;
gx_device *dev_t2;
bool samepagedevice = obj_eq(dev_old->memory, &gs_int_gstate(pgs_old)->pagedevice,
... | static int restore_page_device(i_ctx_t *i_ctx_p, const gs_gstate * pgs_old, const gs_gstate * pgs_new) { gx_device *dev_old = gs_currentdevice(pgs_old); gx_device *dev_new; gx_device *dev_t1; gx_device *dev_t2; bool samepagedevice = obj_eq(dev_old->memory, &gs_int_gstate(pgs_old)->pagedevice, &gs_int_gstate(pgs_new)->p... | CVE-2018-16802 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ef957a63addc9e8eb0fa2f22dde629b6 | nothings/stb | 6570d6a825e2982a4f1c9ae7173a737eed4dd6f0 | 1,551,494,879 | stb_image.h | stbi__gif_load_next | cpp | static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)
{
int dispose;
int first_frame;
int pi;
int pcount;
STBI_NOTUSED(req_comp);
// on first frame, any non-written pixels get the background colour (non-transparent)
first_frame = 0;
... | static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back) { int dispose; int first_frame; int pi; int pcount; STBI_NOTUSED(req_comp); first_frame = 0; if (g->out == 0) { if (!stbi__gif_header(s, g, comp,0)) return 0; g->out = (stbi_uc *) stbi__malloc(4 * g->w * g->h... | CVE-2018-16981 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f26a9529f0b1007d45d37cc0d85d7ebc | bro/bro | c2b18849f8bb833253538f5dfedb4ed1dc176a30 | 1,536,792,477 | src/analyzer/protocol/irc/IRC.cc | IRC_Analyzer::DeliverStream | cpp | void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
{
tcp::TCP_ApplicationAnalyzer::DeliverStream(length, line, orig);
if ( starttls )
{
ForwardStream(length, line, orig);
return;
}
// check line size
if ( length > 512 )
{
Weird("irc_line_size_exceeded");
return;
}
strin... | void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig) { tcp::TCP_ApplicationAnalyzer::DeliverStream(length, line, orig); if ( starttls ) { ForwardStream(length, line, orig); return; } if ( length > 512 ) { Weird("irc_line_size_exceeded"); return; } string myline = string((const char*) line, length... | CVE-2018-17019 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | f163afce354dd731008ecdecaed1f333 | logological/gpp | 329aa63a70d32d1e2ae529130a792e0c6ae4ce79 | 1,590,648,959 | src/gpp.c | ParseText | c | void ParseText(void) {
int l, cs, ce;
char c, *s;
struct COMMENT *p;
/* look for comments first */
if (!C->in_comment) {
cs = 1;
for (p = S->comments; p != NULL ; p = p->next)
if (!(p->flags[C->ambience] & FLAG_IGNORE))
if (matchStartSequence(p->start, &c... | void ParseText(void) { int l, cs, ce; char c, *s; struct COMMENT *p; if (!C->in_comment) { cs = 1; for (p = S->comments; p != NULL ; p = p->next) if (!(p->flags[C->ambience] & FLAG_IGNORE)) if (matchStartSequence(p->start, &cs)) { l = ce = findCommentEnd(p->end, p->quote, p->warn, cs, p->flags[C->ambience]); matchEndSe... | CVE-2018-17076 | CWE-119 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8d9c242a7d29e35de10283892dde4446 | ArtifexSoftware/ghostpdl | fb713b3818b52d8a6cf62c951eba2e1795ff9624 | 1,536,214,582 | psi/interp.c | gs_call_interp | c | static int
gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors,
int *pexit_code, ref * perror_object)
{
ref *epref = pref;
ref doref;
ref *perrordict;
ref error_name;
int code, ccode;
ref saref;
i_ctx_t *i_ctx_p = *pi_ctx_p;
int *gc_signal = &imemory_system->gs_... | static int gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors, int *pexit_code, ref * perror_object) { ref *epref = pref; ref doref; ref *perrordict; ref error_name; int code, ccode; ref saref; i_ctx_t *i_ctx_p = *pi_ctx_p; int *gc_signal = &imemory_system->gs_lib_ctx->gcsignal; *pexit_code = 0; *gc_signal ... | CVE-2018-17183 | CWE-Other | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 93c2450c8ea37cbe3e5ce49debde4588 | Exiv2/exiv2 | 4f5b757c898860fae47eafc000d08436bdd6f43f | 1,539,168,707 | src/tags_int.cpp | tagList | cpp | const TagInfo* tagList(IfdId ifdId)
{
const GroupInfo* ii = find(groupInfo, ifdId);
if (ii == 0 || ii->tagList_ == 0) return 0;
return ii->tagList_();
} | const TagInfo* tagList(IfdId ifdId) { const GroupInfo* ii = find(groupInfo, ifdId); if (ii == 0 || ii->tagList_ == 0) return 0; return ii->tagList_(); } | CVE-2018-17230 | CWE-787 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b1cf43b6d63cb647be4d4e724471e8e7 | Exiv2/exiv2 | 670fb73dd5ee8acab90971c4878de29f9fc43a02 | 1,539,410,670 | src/tiffimage.cpp | TiffImage::readMetadata | cpp | void TiffImage::readMetadata()
{
#ifdef DEBUG
std::cerr << "Reading TIFF file " << io_->path() << "\n";
#endif
if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
IoCloser closer(*io_);
// Ensure that this is the correct image type
if (!isTiff... | void TiffImage::readMetadata() { #ifdef DEBUG std::cerr << "Reading TIFF file " << io_->path() << "\n"; #endif if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError()); IoCloser closer(*io_); if (!isTiffType(*io_, false)) { if (io_->error() || io_->eof()) throw Error(kerFailedToReadImageData)... | CVE-2018-17282 | CWE-476 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8963e8ead792799548b1d92eac864d02 | git/git | a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46 | 1,537,771,037 | fsck.c | fsck_gitmodules_fn | c | static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)
{
struct fsck_gitmodules_data *data = vdata;
const char *subsection, *key;
int subsection_len;
char *name;
if (parse_config_key(var, "submodule", &subsection, &subsection_len, &key) < 0 ||
!subsection)
return 0;
name = xmemdup... | static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata) { struct fsck_gitmodules_data *data = vdata; const char *subsection, *key; int subsection_len; char *name; if (parse_config_key(var, "submodule", &subsection, &subsection_len, &key) < 0 || !subsection) return 0; name = xmemdupz(subsection, s... | CVE-2018-17456 | CWE-88 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e6be5d1af9604aba7620033185c89ab5 | git/git | 1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404 | 1,537,771,339 | fsck.c | fsck_gitmodules_fn | c | static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)
{
struct fsck_gitmodules_data *data = vdata;
const char *subsection, *key;
int subsection_len;
char *name;
if (parse_config_key(var, "submodule", &subsection, &subsection_len, &key) < 0 ||
!subsection)
return 0;
name = xmemdup... | static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata) { struct fsck_gitmodules_data *data = vdata; const char *subsection, *key; int subsection_len; char *name; if (parse_config_key(var, "submodule", &subsection, &subsection_len, &key) < 0 || !subsection) return 0; name = xmemdupz(subsection, s... | CVE-2018-17456 | CWE-88 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ea78fd3f9e54b39ab24a7d11b56fd298 | torvalds/linux | 2a3f93459d689d990b3ecfbe782fec89b97d3279 | 1,538,056,402 | arch/arm64/kvm/guest.c | set_core_reg | c | static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg)
{
__u32 __user *uaddr = (__u32 __user *)(unsigned long)reg->addr;
struct kvm_regs *regs = vcpu_gp_regs(vcpu);
int nr_regs = sizeof(*regs) / sizeof(__u32);
__uint128_t tmp;
void *valp = &tmp;
u64 off;
int err = 0;
/* Our ID is an inde... | static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) { __u32 __user *uaddr = (__u32 __user *)(unsigned long)reg->addr; struct kvm_regs *regs = vcpu_gp_regs(vcpu); int nr_regs = sizeof(*regs) / sizeof(__u32); __uint128_t tmp; void *valp = &tmp; u64 off; int err = 0; off = core_reg_offset_from_id... | CVE-2018-18021 | CWE-20 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 9a2baf02723318ab249ee0dd8d14415f | ArtifexSoftware/ghostpdl | a6807394bd94 | 1,538,485,378 | psi/interp.c | gs_call_interp | c | static int
gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors,
int *pexit_code, ref * perror_object)
{
ref *epref = pref;
ref doref;
ref *perrordict;
ref error_name;
int code, ccode;
ref saref;
i_ctx_t *i_ctx_p = *pi_ctx_p;
int *gc_signal = &imemory_system->gs_... | static int gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors, int *pexit_code, ref * perror_object) { ref *epref = pref; ref doref; ref *perrordict; ref error_name; int code, ccode; ref saref; i_ctx_t *i_ctx_p = *pi_ctx_p; int *gc_signal = &imemory_system->gs_lib_ctx->gcsignal; *pexit_code = 0; *gc_signal ... | CVE-2018-17961 | CWE-209 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 822ab1815be2c1c1b8e179ea39b8449b | AcademySoftwareFoundation/openexr | adbc1900cb9d25fcc4df008d4008b781cf2fa4f8 | 1,561,623,317 | IlmBase/IlmThread/IlmThreadPool.cpp | ThreadPool::Data::~Data | cpp | ThreadPool::Data::~Data()
{
#ifdef ILMBASE_FORCE_CXX03
provider->finish();
#else
ThreadPoolProvider *p = provider.load( std::memory_order_relaxed );
p->finish();
#endif
} | ThreadPool::Data::~Data() { #ifdef ILMBASE_FORCE_CXX03 provider->finish(); #else ThreadPoolProvider *p = provider.load( std::memory_order_relaxed ); p->finish(); #endif } | CVE-2018-18443 | CWE-772 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b6f941db0463a0bd0e321265d2195a55 | pganalyze/libpg_query | bc8a2f43a8fa30948da34a7543713c16630b49fb | 1,560,003,909 | src/pg_query_parse_plpgsql.c | pg_query_parse_plpgsql | c | PgQueryPlpgsqlParseResult pg_query_parse_plpgsql(const char* input)
{
MemoryContext ctx = NULL;
PgQueryPlpgsqlParseResult result = {0};
PgQueryInternalParsetreeAndError parse_result;
createFunctionStmts statements;
size_t i;
ctx = pg_query_enter_memory_context("pg_query_parse_plpgsql");
parse_result = pg_query... | PgQueryPlpgsqlParseResult pg_query_parse_plpgsql(const char* input) { MemoryContext ctx = NULL; PgQueryPlpgsqlParseResult result = {0}; PgQueryInternalParsetreeAndError parse_result; createFunctionStmts statements; size_t i; ctx = pg_query_enter_memory_context("pg_query_parse_plpgsql"); parse_result = pg_query_raw_pars... | CVE-2018-18482 | CWE-772 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 72ca3bff28b396357bfa4e47b560d029 | EvgeniyPatlan/qpress | ddb312090ebd5794e81bc6fb1dfb4e79eda48761 | 1,660,937,598 | qpress.cpp | decompress_directory | cpp | void decompress_directory(string extract_dir, bool std_out)
{
char c;
string curdir;
size_t r = 0;
unsigned int chunk_size;
curdir = string(extract_dir);
for(;;)
{
r = aread(&c, 1);
if (r == 0)
return;
if(c == 'D')
{
// read ... | void decompress_directory(string extract_dir, bool std_out) { char c; string curdir; size_t r = 0; unsigned int chunk_size; curdir = string(extract_dir); for(;;) { r = aread(&c, 1); if (r == 0) return; if(c == 'D') { chunk_size = fread32(); try_aread(tmp, chunk_size + 1); curdir = curdir + DELIM_STR + tmp; PRINT(FILES_... | CVE-2022-45866 | CWE-22 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | fb1598d4e4cae700ca596fa8db5040f5 | percona/percona-xtrabackup | dac3d82f559efbf06d116c066d30e688fe3fb323 | 1,659,727,366 | storage/innobase/xtrabackup/src/quicklz/quicklz.c | qlz_decompress | c | size_t qlz_decompress(const char *source, void *destination, qlz_state_decompress *state)
{
size_t dsiz = qlz_size_decompressed(source);
#if QLZ_STREAMING_BUFFER > 0
if (state->stream_counter + qlz_size_decompressed(source) - 1 >= QLZ_STREAMING_BUFFER)
#endif
{
if((*source & 1) == 1)
{
reset_table_decompres... | size_t qlz_decompress(const char *source, void *destination, qlz_state_decompress *state) { size_t dsiz = qlz_size_decompressed(source); #if QLZ_STREAMING_BUFFER > 0 if (state->stream_counter + qlz_size_decompressed(source) - 1 >= QLZ_STREAMING_BUFFER) #endif { if((*source & 1) == 1) { reset_table_decompress(state); ds... | CVE-2022-45866 | CWE-22 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | ec71db074f345715a45bc8c9f16e74ba | nextcloud/desktop | 564a3ad987a40135c9d6dedd5a1238caf0ce2d52 | 1,665,403,544 | src/cmd/simplesslerrorhandler.cpp | SimpleSslErrorHandler::handleErrors | cpp | bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, const QSslConfiguration &conf, QList<QSslCertificate> *certs, OCC::AccountPtr account)
{
Q_UNUSED(conf);
if (!account || !certs) {
qDebug() << "account and certs parameters are required!";
return false;
}
if (account->tr... | bool SimpleSslErrorHandler::handleErrors(QList<QSslError> errors, const QSslConfiguration &conf, QList<QSslCertificate> *certs, OCC::AccountPtr account) { Q_UNUSED(conf); if (!account || !certs) { qDebug() << "account and certs parameters are required!"; return false; } if (account->trustCertificates()) { for (const au... | CVE-2022-39334 | CWE-295 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | dfd3b4619829c779d59a755f5fdac2e7 | julianhille/MuhammaraJS | a0588a33efc68f22e4666d8576a57654f579d659 | 1,667,462,517 | src/deps/PDFWriter/PDFParser.cpp | PDFParser::ParseLastXrefPosition | cpp | EStatusCode PDFParser::ParseLastXrefPosition()
{
EStatusCode status = PDFHummus::eSuccess;
// next two lines should be the xref position and then "startxref"
do
{
// find and read xref position
if(!GoBackTillToken())
{
status = PDFHummus::eFailure;
TRACE_LOG("PDFParser::ParseXrefPosition, couldn't fi... | EStatusCode PDFParser::ParseLastXrefPosition() { EStatusCode status = PDFHummus::eSuccess; do { if(!GoBackTillToken()) { status = PDFHummus::eFailure; TRACE_LOG("PDFParser::ParseXrefPosition, couldn't find xref position token"); break; } GoBackTillLineStart(); mStream->SetPositionFromEnd(GetCurrentPositionFromEnd()); m... | CVE-2022-41957 | CWE-690 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 6be3196431d5fdd2dfd0d7a3d333bc81 | julianhille/MuhammaraJS | 7a6a7a8ba1d854d85d3be0b9ec6911b9ab06e355 | 1,668,578,463 | src/deps/PDFWriter/PDFModifiedPage.cpp | PDFModifiedPage::WritePage | cpp | PDFHummus::EStatusCode PDFModifiedPage::WritePage()
{
EStatusCode status = EndContentContext(); // just in case someone forgot to close the latest content context
do {
if (status != eSuccess || !mIsDirty) {
break;
}
// allocate an object ID for the new contents stream (for placing the form)
// ... | PDFHummus::EStatusCode PDFModifiedPage::WritePage() { EStatusCode status = EndContentContext(); do { if (status != eSuccess || !mIsDirty) { break; } ObjectsContext& objectContext = mWriter->GetObjectsContext(); ObjectIDType newContentObjectID = objectContext.GetInDirectObjectsRegistry().AllocateNewObjectID(); ObjectIDT... | CVE-2022-41957 | CWE-690 | 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.