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
ad9265511697d928495e90a757464ee2
wolfSSL/wolfssl
999f84518c0b2820565f69eda001ab79664d634c
1,706,072,955
wolfcrypt/src/rsa.c
RsaFunctionSync
c
static int RsaFunctionSync(const byte* in, word32 inLen, byte* out, word32* outLen, int type, RsaKey* key, WC_RNG* rng) { DECL_MP_INT_SIZE_DYN(tmp, mp_bitsused(&key->n), RSA_MAX_SIZE); int ret = 0; (void)rng; NEW_MP_INT_SIZE(tmp, mp_bitsused(&key->n), key->heap, DYNAMIC_TYPE_RSA); #ifdef MP_INT...
static int RsaFunctionSync(const byte* in, word32 inLen, byte* out, word32* outLen, int type, RsaKey* key, WC_RNG* rng) { DECL_MP_INT_SIZE_DYN(tmp, mp_bitsused(&key->n), RSA_MAX_SIZE); int ret = 0; (void)rng; NEW_MP_INT_SIZE(tmp, mp_bitsused(&key->n), key->heap, DYNAMIC_TYPE_RSA); #ifdef MP_INT_SIZE_CHECK_NULL if (tmp ...
CVE-2024-1545
CWE-74
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
daa2e26d5a4f382a222e6a9061c2cd48
bitcoin/bitcoin
1429f8377017c0029cb87c4d355c37b796432611
1,673,878,432
src/blockencodings.cpp
PartiallyDownloadedBlock::FillBlock
cpp
ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing) { assert(!header.IsNull()); uint256 hash = header.GetHash(); block = header; block.vtx.resize(txn_available.size()); size_t tx_missing_offset = 0; for (size_t i = 0; i < txn_available....
ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing) { assert(!header.IsNull()); uint256 hash = header.GetHash(); block = header; block.vtx.resize(txn_available.size()); size_t tx_missing_offset = 0; for (size_t i = 0; i < txn_available.size(); i++) { if (!txn_a...
CVE-2024-35202
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c81503e07b9e8477c53efb53013d9a96
bytecodealliance/wasm-micro-runtime
44e8ea688104bac99903db63a18098f0934962ff
1,707,028,757
core/iwasm/interpreter/wasm_loader.c
check_wasi_abi_compatibility
c
static bool check_wasi_abi_compatibility(const WASMModule *module, #if WASM_ENABLE_MULTI_MODULE != 0 bool main_module, #endif char *error_buf, uint32 error_buf_size) { /** * be careful with: * wasi compatiable modules(command/reactor) which don't i...
static bool check_wasi_abi_compatibility(const WASMModule *module, #if WASM_ENABLE_MULTI_MODULE != 0 bool main_module, #endif char *error_buf, uint32 error_buf_size) { WASMExport *initialize = NULL, *memory = NULL, *start = NULL; start = wasm_loader_find_export(module, "", "_start", EXPORT_KIND_FUNC, error_buf, error_b...
CVE-2024-25431
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d6b33ab9f1d51996cfef7f4ed0494aa4
bytecodealliance/wasm-micro-runtime
b8ff98c810f1bf8e8000f44be2f4af30a7ba43fa
1,707,116,458
core/iwasm/interpreter/wasm_loader.c
wasm_loader_check_br
c
static bool wasm_loader_check_br(WASMLoaderContext *loader_ctx, uint32 depth, char *error_buf, uint32 error_buf_size) { BranchBlock *target_block, *cur_block; BlockType *target_block_type; uint8 *types = NULL, *frame_ref; uint32 arity = 0; int32 i, available_stack_cell; uint...
static bool wasm_loader_check_br(WASMLoaderContext *loader_ctx, uint32 depth, char *error_buf, uint32 error_buf_size) { BranchBlock *target_block, *cur_block; BlockType *target_block_type; uint8 *types = NULL, *frame_ref; uint32 arity = 0; int32 i, available_stack_cell; uint16 cell_num; if (loader_ctx->csp_num < depth ...
CVE-2024-27532
CWE-476
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
94cbe6a7e9174c27fe404b4479832340
justdan96/tsMuxer
762163acf3f5e32cb60ff7f27d64c256c98814da
1,711,095,000
tsMuxer/movDemuxer.cpp
MovDemuxer::mov_read_ctts
cpp
int MovDemuxer::mov_read_ctts(MOVAtom atom) { const auto st = reinterpret_cast<MOVStreamContext*>(tracks[num_tracks - 1]); get_byte(); // version get_be24(); // flags const unsigned entries = get_be32(); st->ctts_data.resize(entries); for (unsigned i = 0; i < entries; i++) { st->ct...
int MovDemuxer::mov_read_ctts(MOVAtom atom) { const auto st = reinterpret_cast<MOVStreamContext*>(tracks[num_tracks - 1]); get_byte(); get_be24(); const unsigned entries = get_be32(); st->ctts_data.resize(entries); for (unsigned i = 0; i < entries; i++) { st->ctts_data[i].count = get_be32(); st->ctts_data[i].duration =...
CVE-2024-41209
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b94bb62ff9b740ff4b133e0aa32cccb6
gpac/gpac
b68b3f0bf5c366e003221d78fd663a1d5514a876
1,693,487,976
src/filters/isoffin_read_ch.c
isor_reader_get_sample
c
void isor_reader_get_sample(ISOMChannel *ch) { GF_Err e; Bool skip_sample=GF_FALSE; u32 sample_desc_index; if (ch->sample) return; if (ch->next_track) { ch->track = ch->next_track; if (!ch->owner->nodata) gf_isom_set_sample_alloc(ch->owner->mov, ch->track, isor_sample_alloc, ch); ch->next_track = 0; } ...
void isor_reader_get_sample(ISOMChannel *ch) { GF_Err e; Bool skip_sample=GF_FALSE; u32 sample_desc_index; if (ch->sample) return; if (ch->next_track) { ch->track = ch->next_track; if (!ch->owner->nodata) gf_isom_set_sample_alloc(ch->owner->mov, ch->track, isor_sample_alloc, ch); ch->next_track = 0; } if (ch->to_init) ...
CVE-2023-4679
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
64f87c15216c72760ea7b6255fa41ada
contiki-ng/contiki-ng
1f76a633103f224acabe7bda8255ba571db61736
1,724,327,981
os/net/routing/rpl-classic/rpl-ext-header.c
rpl_ext_header_srh_update
c
int rpl_ext_header_srh_update(void) { #if RPL_WITH_NON_STORING struct uip_routing_hdr *rh_header; struct uip_rpl_srh_hdr *srh_header; /* Look for routing ext header */ rh_header = (struct uip_routing_hdr *)uipbuf_search_header(uip_buf, uip_len, UIP_P...
int rpl_ext_header_srh_update(void) { #if RPL_WITH_NON_STORING struct uip_routing_hdr *rh_header; struct uip_rpl_srh_hdr *srh_header; rh_header = (struct uip_routing_hdr *)uipbuf_search_header(uip_buf, uip_len, UIP_PROTO_ROUTING); if(rh_header != NULL && rh_header->routing_type == RPL_RH_TYPE_SRH) { uint8_t cmpri, cmpr...
CVE-2023-29001
CWE-674
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7fe65fc390f0b25ae19c76f0af0b22d0
contiki-ng/contiki-ng
f0595243e32ff5f406455bf81e89dd3908deefb4
1,694,784,447
os/net/ipv6/uip6.c
uip_process
c
void uip_process(uint8_t flag) { uint8_t *last_header; uint8_t protocol; uint8_t *next_header; struct uip_ext_hdr *ext_ptr; #if UIP_TCP int c; register struct uip_conn *uip_connr = uip_conn; #endif /* UIP_TCP */ #if UIP_UDP if(flag == UIP_UDP_SEND_CONN) { goto udp_send; } #endif /* UIP_UDP */ uip_...
void uip_process(uint8_t flag) { uint8_t *last_header; uint8_t protocol; uint8_t *next_header; struct uip_ext_hdr *ext_ptr; #if UIP_TCP int c; register struct uip_conn *uip_connr = uip_conn; #endif #if UIP_UDP if(flag == UIP_UDP_SEND_CONN) { goto udp_send; } #endif uip_sappdata = uip_appdata = &uip_buf[UIP_IPTCPH_LEN];...
CVE-2023-29001
CWE-674
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5dbbb9d01ab7093e2edf06eaca695f65
contiki-ng/contiki-ng
99d32334f179310176e53b2ae960bf05d025c938
1,724,327,989
os/net/routing/rpl-lite/rpl-ext-header.c
rpl_ext_header_srh_update
c
int rpl_ext_header_srh_update(void) { struct uip_routing_hdr *rh_header; struct uip_rpl_srh_hdr *srh_header; uint8_t cmpri, cmpre; uint8_t ext_len; uint8_t padding; uint8_t path_len; uint8_t segments_left; uip_ipaddr_t current_dest_addr; /* Look for routing ext header */ rh_header = (struct uip_rou...
int rpl_ext_header_srh_update(void) { struct uip_routing_hdr *rh_header; struct uip_rpl_srh_hdr *srh_header; uint8_t cmpri, cmpre; uint8_t ext_len; uint8_t padding; uint8_t path_len; uint8_t segments_left; uip_ipaddr_t current_dest_addr; rh_header = (struct uip_routing_hdr *)uipbuf_search_header(uip_buf, uip_len, UIP_P...
CVE-2023-29001
CWE-674
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5c720f7673eeda303f95905633ff8a08
FFmpeg/FFmpeg
0895ef0d6d6406ee6cd158fc4d47d80f201b8e9c
1,708,170,357
libavcodec/speexdec.c
parse_speex_extradata
c
static int parse_speex_extradata(AVCodecContext *avctx, const uint8_t *extradata, int extradata_size) { SpeexContext *s = avctx->priv_data; const uint8_t *buf = av_strnstr(extradata, "Speex ", extradata_size); if (!buf) return AVERROR_INVALIDDATA; buf += 28; s->version_id = bytestre...
static int parse_speex_extradata(AVCodecContext *avctx, const uint8_t *extradata, int extradata_size) { SpeexContext *s = avctx->priv_data; const uint8_t *buf = av_strnstr(extradata, "Speex ", extradata_size); if (!buf) return AVERROR_INVALIDDATA; buf += 28; s->version_id = bytestream_get_le32(&buf); buf += 4; s->rate ...
CVE-2024-35369
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fb445cc1b7ea2cf5142413276c48f8a7
FFmpeg/FFmpeg
d973fcbcc2f944752ff10e6a76b0b2d9329937a7
1,696,019,897
libavformat/cafdec.c
read_pakt_chunk
c
static int read_pakt_chunk(AVFormatContext *s, int64_t size) { AVIOContext *pb = s->pb; AVStream *st = s->streams[0]; CafContext *caf = s->priv_data; int64_t pos = 0, ccount, num_packets; int i; int ret; ccount = avio_tell(pb); num_packets = avio_rb64(pb); if (num_packets < ...
static int read_pakt_chunk(AVFormatContext *s, int64_t size) { AVIOContext *pb = s->pb; AVStream *st = s->streams[0]; CafContext *caf = s->priv_data; int64_t pos = 0, ccount, num_packets; int i; int ret; ccount = avio_tell(pb); num_packets = avio_rb64(pb); if (num_packets < 0 || INT32_MAX / sizeof(AVIndexEntry) < num_p...
CVE-2024-36617
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
33e8690c893102f1c5c0c23e4c14af16
FFmpeg/FFmpeg
7a089ed8e049e3bfcb22de1250b86f2106060857
1,710,278,597
libavformat/avidec.c
check_stream_max_drift
c
static int check_stream_max_drift(AVFormatContext *s) { int64_t min_pos, pos; int i; int *idx = av_calloc(s->nb_streams, sizeof(*idx)); if (!idx) return AVERROR(ENOMEM); for (min_pos = pos = 0; min_pos != INT64_MAX; pos = min_pos + 1LU) { int64_t max_dts = INT64_MIN / 2; int6...
static int check_stream_max_drift(AVFormatContext *s) { int64_t min_pos, pos; int i; int *idx = av_calloc(s->nb_streams, sizeof(*idx)); if (!idx) return AVERROR(ENOMEM); for (min_pos = pos = 0; min_pos != INT64_MAX; pos = min_pos + 1LU) { int64_t max_dts = INT64_MIN / 2; int64_t min_dts = INT64_MAX / 2; int64_t max_buf...
CVE-2024-36618
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
5a4b90e9bf9659f2cd30a3e6ac505cfe
FFmpeg/FFmpeg
0ba058579f332b3060d8470a04ddd3fbf305be61
1,660,259,134
libavcodec/vp9.c
vp9_decode_frame
c
static int vp9_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt) { const uint8_t *data = pkt->data; int size = pkt->size; VP9Context *s = avctx->priv_data; int ret, i, j, ref; int retain_segmap_ref = s->s.frames[REF_FRAME_SEGMAP].segmentat...
static int vp9_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt) { const uint8_t *data = pkt->data; int size = pkt->size; VP9Context *s = avctx->priv_data; int ret, i, j, ref; int retain_segmap_ref = s->s.frames[REF_FRAME_SEGMAP].segmentation_map && (!s->s.h.segmentation.enabled || !s->...
CVE-2024-36615
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
628fcc1a8a5c5577474ec909ea03d2c5
ros-navigation/navigation2
e83263cfb5a946687822c8088ac25ff3ff657bd4
1,710,432,308
nav2_util/include/nav2_util/simple_action_server.hpp
deactivate
cpp
void deactivate() { debug_msg("Deactivating..."); { std::lock_guard<std::recursive_mutex> lock(update_mutex_); server_active_ = false; stop_execution_ = true; } if (!execution_future_.valid()) { return; } if (is_running()) { warn_msg( "Requested to deac...
void deactivate() { debug_msg("Deactivating..."); { std::lock_guard<std::recursive_mutex> lock(update_mutex_); server_active_ = false; stop_execution_ = true; } if (!execution_future_.valid()) { return; } if (is_running()) { warn_msg( "Requested to deactivate server but goal is still executing." " Should check if actio...
CVE-2024-30961
CWE-94
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b33c95608e293487b80a834d6341de1c
ros-navigation/navigation2
11075c092277a34fe56283cad9bc0f1e3a649830
1,715,090,737
nav2_util/include/nav2_util/simple_action_server.hpp
deactivate
cpp
void deactivate() { debug_msg("Deactivating..."); { std::lock_guard<std::recursive_mutex> lock(update_mutex_); server_active_ = false; stop_execution_ = true; } if (!execution_future_.valid()) { return; } if (is_running()) { warn_msg( "Requested to deac...
void deactivate() { debug_msg("Deactivating..."); { std::lock_guard<std::recursive_mutex> lock(update_mutex_); server_active_ = false; stop_execution_ = true; } if (!execution_future_.valid()) { return; } if (is_running()) { warn_msg( "Requested to deactivate server but goal is still executing." " Should check if actio...
CVE-2024-30961
CWE-94
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f6deffd52b6f06784d82b3a721e66ec2
ros-navigation/navigation2
6a41d35a4e8131046fba0aa3f13cb980246e6d36
1,710,432,135
nav2_util/include/nav2_util/simple_action_server.hpp
deactivate
cpp
void deactivate() { debug_msg("Deactivating..."); { std::lock_guard<std::recursive_mutex> lock(update_mutex_); server_active_ = false; stop_execution_ = true; } if (!execution_future_.valid()) { return; } if (is_running()) { warn_msg( "Requested to deac...
void deactivate() { debug_msg("Deactivating..."); { std::lock_guard<std::recursive_mutex> lock(update_mutex_); server_active_ = false; stop_execution_ = true; } if (!execution_future_.valid()) { return; } if (is_running()) { warn_msg( "Requested to deactivate server but goal is still executing." " Should check if actio...
CVE-2024-30961
CWE-94
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
4bc5b16b31dbf209633ceb97cd289845
rizinorg/rizin
c025dcee40c8eac2ab559f2caa3798a2dbf019e4
1,707,304,195
librz/bin/dwarf/endian_reader.c
read_string
c
RZ_IPI char *read_string(RzBinEndianReader *reader) { st64 offset = (st64)rz_buf_tell(reader->buffer); RET_NULL_IF_FAIL(offset != -1); char *x = rz_buf_get_string(reader->buffer, offset); RET_NULL_IF_FAIL(x); ut64 len = strlen(x) + 1; rz_buf_seek(reader->buffer, (st64)len, SEEK_CUR); return x; }
RZ_IPI char *read_string(RzBinEndianReader *reader) { st64 offset = (st64)rz_buf_tell(reader->buffer); RET_NULL_IF_FAIL(offset != -1); char *x = rz_buf_get_string(reader->buffer, offset); RET_NULL_IF_FAIL(x); ut64 len = strlen(x) + 1; rz_buf_seek(reader->buffer, (st64)len, SEEK_CUR); return x; }
CVE-2024-31668
CWE-78
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
cb60650c988aed0dd70748db2f49c3d1
FFmpeg/FFmpeg
50d8e4f27398fd5778485a827d7a2817921f8540
1,696,020,689
libavformat/dxa.c
dxa_read_header
c
static int dxa_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; DXAContext *c = s->priv_data; AVStream *st, *ast; uint32_t tag; int32_t fps; int w, h; int num, den; int flags; int ret; tag = avio_rl32(pb); if (tag != MKTAG('D', 'E', 'X', 'A')) return AVERRO...
static int dxa_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; DXAContext *c = s->priv_data; AVStream *st, *ast; uint32_t tag; int32_t fps; int w, h; int num, den; int flags; int ret; tag = avio_rl32(pb); if (tag != MKTAG('D', 'E', 'X', 'A')) return AVERROR_INVALIDDATA; flags = avio_r8(pb); c->frames = avio_...
CVE-2024-36613
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ccbe18bbb55d7c40475cf5993c43e42e
MonetDB/MonetDB
ad02ef1ea3ef96fd6a4ba92f55fbb130394cd0f8
1,705,324,029
gdk/gdk_heap.c
HEAP_free
c
void HEAP_free(Heap *heap, var_t mem) { HEADER *hheader = HEAP_index(heap, 0, HEADER); CHUNK *beforep; CHUNK *blockp; CHUNK *afterp; size_t after, before, block = mem; assert(hheader->alignment == 8 || hheader->alignment == 4); if (hheader->alignment != 8 && hheader->alignment != 4) { GDKerror("Heap structure...
void HEAP_free(Heap *heap, var_t mem) { HEADER *hheader = HEAP_index(heap, 0, HEADER); CHUNK *beforep; CHUNK *blockp; CHUNK *afterp; size_t after, before, block = mem; assert(hheader->alignment == 8 || hheader->alignment == 4); if (hheader->alignment != 8 && hheader->alignment != 4) { GDKerror("Heap structure corrupt\n...
CVE-2024-57623
CWE-404
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
835e8c8b0ced2da70636960074beba31
MonetDB/MonetDB
c6af27dde3207767db4cb31b71d9d43379ea4e10
1,706,094,488
sql/server/rel_statistics_functions.c
sql_min_max_propagate_statistics
c
static void sql_min_max_propagate_statistics(mvc *sql, sql_exp *e) { list *l = e->l; sql_exp *first = l->h->data; atom *omin, *omax; if ((omin = find_prop_and_get(first->p, PROP_MIN)) && (omax = find_prop_and_get(first->p, PROP_MAX))) { set_minmax_property(sql, e, PROP_MAX, omax); set_minmax_property(sql, e, P...
static void sql_min_max_propagate_statistics(mvc *sql, sql_exp *e) { list *l = e->l; sql_exp *first = l->h->data; atom *omin, *omax; if ((omin = find_prop_and_get(first->p, PROP_MIN)) && (omax = find_prop_and_get(first->p, PROP_MAX))) { set_minmax_property(sql, e, PROP_MAX, omax); set_minmax_property(sql, e, PROP_MIN, ...
CVE-2024-57630
CWE-89
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ffaa7af453803087951eb30f6febe3ab
MonetDB/MonetDB
6b25a219cecda3212f3e47bfd91148cb858eb0ad
1,706,107,634
sql/server/rel_unnest.c
push_up_groupby
c
static sql_rel * push_up_groupby(mvc *sql, sql_rel *rel, list *ad) { /* input rel is dependent join with on the right a groupby */ if (rel && (is_join(rel->op) || is_semi(rel->op)) && is_dependent(rel)) { sql_rel *l = rel->l, *r = rel->r; /* left of rel should be a set */ if (l && is_distinct_set(sql, l, ad) &...
static sql_rel * push_up_groupby(mvc *sql, sql_rel *rel, list *ad) { if (rel && (is_join(rel->op) || is_semi(rel->op)) && is_dependent(rel)) { sql_rel *l = rel->l, *r = rel->r; if (l && is_distinct_set(sql, l, ad) && r && is_groupby(r->op)) { list *sexps, *jexps, *a = rel_projections(sql, rel->l, NULL, 1, 1); node *n; ...
CVE-2024-57631
CWE-89
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
41971cd6c137affe0fddf95d36e4397d
openlink/virtuoso-opensource
18fe9fdd2ef8380d1c7fcd48a2f6e6e401817724
1,700,740,120
libsrc/Wi/sqlo.c
sqlo_select_scope
c
void sqlo_select_scope (sqlo_t * so, ST ** ptree) { ST *tree = *ptree; char tmp[10]; ST *texp = tree->_.select_stmt.table_exp; ST *top_exp = SEL_TOP (tree); int inx; op_table_t * old_dt = so->so_this_dt; dk_set_t res = NULL; #ifndef NO_DT_EXPANSION #endif TNEW (op_table_t, ot); TNEW (sql_scope_t, sco)...
void sqlo_select_scope (sqlo_t * so, ST ** ptree) { ST *tree = *ptree; char tmp[10]; ST *texp = tree->_.select_stmt.table_exp; ST *top_exp = SEL_TOP (tree); int inx; op_table_t * old_dt = so->so_this_dt; dk_set_t res = NULL; #ifndef NO_DT_EXPANSION #endif TNEW (op_table_t, ot); TNEW (sql_scope_t, sco); memset (sco, 0, ...
CVE-2024-57635
CWE-89
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
19f75fdf52c17584fb2fab6f792f0bf0
neocturne/fastd
9df7e516378441d2d17b89f9db5c27c8312d8f12
1,735,513,728
src/receive.c
unknown_hash_entry
c
fastd_handshake_timeout_t *unknown_hash_entry(int64_t base, size_t i, const fastd_peer_address_t *addr) { int64_t slice = base - i; uint32_t hash = ctx.unknown_handshake_seed; fastd_hash(&hash, &slice, sizeof(slice)); fastd_peer_address_hash(&hash, addr); fastd_hash_final(&hash); return &ctx.unknown_handshakes[(...
fastd_handshake_timeout_t *unknown_hash_entry(int64_t base, size_t i, const fastd_peer_address_t *addr) { int64_t slice = base - i; uint32_t hash = ctx.unknown_handshake_seed; fastd_hash(&hash, &slice, sizeof(slice)); fastd_peer_address_hash(&hash, addr); fastd_hash_final(&hash); return &ctx.unknown_handshakes[(size_t)...
CVE-2025-24356
CWE-405
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e93ac8a479b60e9dfbb2bc7acf565566
neocturne/fastd
c1a07b3f2b9066c3713c68547da700b85d60f4f7
1,735,511,469
src/log.c
fastd_snprint_peer_address
c
size_t fastd_snprint_peer_address( char *buffer, size_t size, const fastd_peer_address_t *address, const char *iface, bool bind_address, bool hide) { char addr_buf[INET6_ADDRSTRLEN] = ""; switch (address->sa.sa_family) { case AF_UNSPEC: if (bind_address) return snprintf_safe(buffer, size, "any:%u", ntohs(add...
size_t fastd_snprint_peer_address( char *buffer, size_t size, const fastd_peer_address_t *address, const char *iface, bool bind_address, bool hide) { char addr_buf[INET6_ADDRSTRLEN] = ""; switch (address->sa.sa_family) { case AF_UNSPEC: if (bind_address) return snprintf_safe(buffer, size, "any:%u", ntohs(address->in.si...
CVE-2025-24356
CWE-405
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c3bdc76035b8f136514caf5b005a066f
neocturne/fastd
1f233bee76b722c0b3f9024f2c39c72e9f7e5843
1,704,717,703
src/receive.c
handle_socket_receive
c
static void handle_socket_receive( fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_buffer_t *buffer) { fastd_peer_t *peer = NULL; /* Most of fastd's code should never have to deal with L2TP offload sockets */ if (sock->parent) sock = sock->parent; i...
static void handle_socket_receive( fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_buffer_t *buffer) { fastd_peer_t *peer = NULL; if (sock->parent) sock = sock->parent; if (sock->peer) { if (!fastd_peer_address_equal(&sock->peer->address, remote_addr)) { pr_d...
CVE-2025-24356
CWE-405
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
aa4f95083676dfe0fe430d2b8984a563
neocturne/fastd
3940150e801d0c91460491bec32cbcc5bbc89d5f
1,735,514,048
src/peer.c
fastd_peer_set_established
c
bool fastd_peer_set_established(fastd_peer_t *peer, const fastd_offload_t *offload) { if (peer->offload) { bool need_reset; if (peer->offload == offload) need_reset = !peer->offload->update_session(peer, peer->offload_state); else need_reset = true; if (need_reset) { on_down(peer, false); peer->o...
bool fastd_peer_set_established(fastd_peer_t *peer, const fastd_offload_t *offload) { if (peer->offload) { bool need_reset; if (peer->offload == offload) need_reset = !peer->offload->update_session(peer, peer->offload_state); else need_reset = true; if (need_reset) { on_down(peer, false); peer->offload->free_session(pe...
CVE-2025-24356
CWE-405
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f49bb52c588d33147cc97948ee6d21f1
radareorg/radare2
2e2f2a9b1800d09be09461e7536ac03a301f97f2
1,697,899,025
libr/arch/p/nds32/nds32-dis.h
print_insn32
c
static void print_insn32 (bfd_vma pc, disassemble_info *info, uint32_t insn) { int op = OP6 (insn); const int rt = RT5 (insn); const int ra = RA5 (insn); const int rb = RB5 (insn); const int imm15s = IMMS (insn, 15); const int imm15u = IMMU (insn, 15); uint32_t shift; fprintf_ftype func = info->fprintf_...
static void print_insn32 (bfd_vma pc, disassemble_info *info, uint32_t insn) { int op = OP6 (insn); const int rt = RT5 (insn); const int ra = RA5 (insn); const int rb = RB5 (insn); const int imm15s = IMMS (insn, 15); const int imm15u = IMMU (insn, 15); uint32_t shift; fprintf_ftype func = info->fprintf_func; void *stre...
CVE-2023-46569
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
144e8c9b159f21335e70acf13ae9b9c1
rmagick/rmagick
da823515a13130010f74678dc48f8b08a70cbd14
1,689,490,792
ext/RMagick/rmdraw.c
DrawOptions_initialize
c
VALUE DrawOptions_initialize(VALUE self) { Draw *draw_options; TypedData_Get_Struct(self, Draw, &rm_draw_data_type, draw_options); draw_options->info = AcquireDrawInfo(); if (!draw_options->info) { rb_raise(rb_eNoMemError, "not enough memory to continue"); } GetDrawInfo(NULL, draw_...
VALUE DrawOptions_initialize(VALUE self) { Draw *draw_options; TypedData_Get_Struct(self, Draw, &rm_draw_data_type, draw_options); draw_options->info = AcquireDrawInfo(); if (!draw_options->info) { rb_raise(rb_eNoMemError, "not enough memory to continue"); } GetDrawInfo(NULL, draw_options->info); if (rb_block_given_p()...
CVE-2023-5349
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d6fa381457e2f90104c5da5b89e989d9
gpac/gpac
671976fccc971b3dff8d3dcf6ebd600472ca64bf
1,698,308,918
src/filters/ff_dmx.c
ffdmx_init_common
c
GF_Err ffdmx_init_common(GF_Filter *filter, GF_FFDemuxCtx *ctx, u32 grab_type) { u32 i; u32 nb_a, nb_v, nb_t, clock_id; char szName[50]; if (gf_filter_is_temporary(filter)) { gf_filter_meta_set_instances(filter, ctx->demuxer->av_class->class_name); return GF_OK; } #if (LIBAVCODEC_VERSION_MAJOR >= 59) ctx->...
GF_Err ffdmx_init_common(GF_Filter *filter, GF_FFDemuxCtx *ctx, u32 grab_type) { u32 i; u32 nb_a, nb_v, nb_t, clock_id; char szName[50]; if (gf_filter_is_temporary(filter)) { gf_filter_meta_set_instances(filter, ctx->demuxer->av_class->class_name); return GF_OK; } #if (LIBAVCODEC_VERSION_MAJOR >= 59) ctx->pkt = av_pack...
CVE-2023-46931
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
03efd9a5633d14dc4b936b0022e0de12
FRRouting/frr
0b999c886e241c52bd1f7ef0066700e4b618ebb3
1,677,173,372
bgpd/bgp_flowspec.c
bgp_nlri_parse_flowspec
c
int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr, struct bgp_nlri *packet, int withdraw) { uint8_t *pnt; uint8_t *lim; afi_t afi; safi_t safi; int psize = 0; struct prefix p; void *temp; /* Start processing the NLRI - there may be multiple in the MP_REACH */ pnt = packet->nlri; lim = p...
int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr, struct bgp_nlri *packet, int withdraw) { uint8_t *pnt; uint8_t *lim; afi_t afi; safi_t safi; int psize = 0; struct prefix p; void *temp; pnt = packet->nlri; lim = pnt + packet->length; afi = packet->afi; safi = packet->safi; if (packet->length >= FLOWSPE...
CVE-2023-38406
CWE-755
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
062667b7e3293dcce682c276782995eb
OpenSC/OpenSC
f1993dc4e0b33050b8f72a3558ee88b24c4063b2
1,687,845,042
src/libopensc/card-myeid.c
myeid_enc_dec_sym
c
static int myeid_enc_dec_sym(struct sc_card *card, const u8 *data, size_t datalen, u8 *out, size_t *outlen, int decipher) { struct sc_context *ctx; struct sc_apdu apdu; u8 rbuf[SC_MAX_APDU_BUFFER_SIZE]; u8 sbuf[SC_MAX_APDU_BUFFER_SIZE]; u8 *sdata; int r, padding = 0, cbc = 0; size_t block_size; size_t len,...
static int myeid_enc_dec_sym(struct sc_card *card, const u8 *data, size_t datalen, u8 *out, size_t *outlen, int decipher) { struct sc_context *ctx; struct sc_apdu apdu; u8 rbuf[SC_MAX_APDU_BUFFER_SIZE]; u8 sbuf[SC_MAX_APDU_BUFFER_SIZE]; u8 *sdata; int r, padding = 0, cbc = 0; size_t block_size; size_t len, rest_len; si...
CVE-2023-4535
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f99a0ca961549ecbe3c3490ccfa62ca1
gpac/gpac
db74835944548fc3bdf03121b0e012373bdebb3e
1,698,051,776
src/filters/reframe_mpgvid.c
mpgviddmx_process
c
GF_Err mpgviddmx_process(GF_Filter *filter) { GF_MPGVidDmxCtx *ctx = gf_filter_get_udta(filter); GF_FilterPacket *pck, *dst_pck; u64 byte_offset; s64 vosh_start = -1; s64 vosh_end = -1; GF_Err e; char *data; u8 *start; u32 pck_size; s32 remain; //always reparse duration if (!ctx->duration.num) mpgviddmx_...
GF_Err mpgviddmx_process(GF_Filter *filter) { GF_MPGVidDmxCtx *ctx = gf_filter_get_udta(filter); GF_FilterPacket *pck, *dst_pck; u64 byte_offset; s64 vosh_start = -1; s64 vosh_end = -1; GF_Err e; char *data; u8 *start; u32 pck_size; s32 remain; if (!ctx->duration.num) mpgviddmx_check_dur(filter, ctx); pck = gf_filter_p...
CVE-2023-5998
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d2e649c06a238792d84bacd4bbf8599d
gpac/gpac
75b293cebbaa60cd97cf114121a2c3ff585d24fd
1,701,677,550
src/filters/isoffin_load.c
isor_get_chapters
c
static void isor_get_chapters(GF_ISOFile *file, GF_FilterPid *opid) { u32 i, count; GF_PropertyValue p; GF_PropUIntList times; GF_PropStringList names; count = gf_isom_get_chapter_count(file, 0); if (count) { times.vals = gf_malloc(sizeof(u32)*count); names.vals = gf_malloc(sizeof(char *)*count); times.nb_i...
static void isor_get_chapters(GF_ISOFile *file, GF_FilterPid *opid) { u32 i, count; GF_PropertyValue p; GF_PropUIntList times; GF_PropStringList names; count = gf_isom_get_chapter_count(file, 0); if (count) { times.vals = gf_malloc(sizeof(u32)*count); names.vals = gf_malloc(sizeof(char *)*count); times.nb_items = names...
CVE-2023-47384
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1f56b9b76042a32cf6919fa5719a6a6c
eclipse-openj9/openj9
d4dfa6c62270ea34fcc859355a66bc25b8175237
1,694,019,139
runtime/vm/jvminit.c
predefinedHandlerWrapper
c
static UDATA predefinedHandlerWrapper(struct J9PortLibrary *portLibrary, U_32 gpType, void *gpInfo, void *userData) { J9JavaVM *vm = (J9JavaVM *)userData; J9JavaVMAttachArgs attachArgs = {0}; J9VMThread *vmThread = NULL; IDATA result = JNI_ERR; BOOLEAN shutdownStarted = FALSE; I_32 signal = 0; PORT_ACCESS_FROM_J...
static UDATA predefinedHandlerWrapper(struct J9PortLibrary *portLibrary, U_32 gpType, void *gpInfo, void *userData) { J9JavaVM *vm = (J9JavaVM *)userData; J9JavaVMAttachArgs attachArgs = {0}; J9VMThread *vmThread = NULL; IDATA result = JNI_ERR; BOOLEAN shutdownStarted = FALSE; I_32 signal = 0; PORT_ACCESS_FROM_JAVAVM(v...
CVE-2023-5676
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
484d56b11b34e0e8f6b6deb9e0382633
kkos/oniguruma
aa0188eaedc056dca8374ac03d0177429b495515
1,573,100,035
src/regparse.c
add_ctype_to_cc
c
static int add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env) { #define ASCII_LIMIT 127 int c, r; int ascii_mode; const OnigCodePoint *ranges; OnigCodePoint limit; OnigCodePoint sb_out; OnigEncoding enc = env->enc; ascii_mode = IS_ASCII_MODE_CTYPE_OPTION(ctype, env->options); r = ON...
static int add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env) { #define ASCII_LIMIT 127 int c, r; int ascii_mode; const OnigCodePoint *ranges; OnigCodePoint limit; OnigCodePoint sb_out; OnigEncoding enc = env->enc; ascii_mode = IS_ASCII_MODE_CTYPE_OPTION(ctype, env->options); r = ONIGENC_GET_CTYPE_CODE_R...
CVE-2019-19203
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ce87b45e11babecccb5c7ed7667e06f4
OpenIDC/mod_auth_openidc
5c15dfb08106c2451c2c44ce7ace6813c216ba75
1,570,036,455
src/mod_auth_openidc.c
oidc_handle_logout
c
static int oidc_handle_logout(request_rec *r, oidc_cfg *c, oidc_session_t *session) { oidc_provider_t *provider = NULL; /* pickup the command or URL where the user wants to go after logout */ char *url = NULL; oidc_util_get_request_parameter(r, OIDC_REDIRECT_URI_REQUEST_LOGOUT, &url); oidc_debug(r, "enter (url...
static int oidc_handle_logout(request_rec *r, oidc_cfg *c, oidc_session_t *session) { oidc_provider_t *provider = NULL; char *url = NULL; oidc_util_get_request_parameter(r, OIDC_REDIRECT_URI_REQUEST_LOGOUT, &url); oidc_debug(r, "enter (url=%s)", url); if (oidc_is_front_channel_logout(url)) { return oidc_handle_logout_r...
CVE-2019-14857
CWE-601
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
04f93aca5d8c53bbca181f66b135c736
OpenIDC/mod_auth_openidc
ce37080c6aea30aabae8b4a9b4eea7808445cc8e
1,570,061,131
src/mod_auth_openidc.c
oidc_validate_post_logout_url
c
static apr_byte_t oidc_validate_post_logout_url(request_rec *r, const char *url, char **err_str, char **err_desc) { apr_uri_t uri; const char *c_host = NULL; if (apr_uri_parse(r->pool, url, &uri) != APR_SUCCESS) { *err_str = apr_pstrdup(r->pool, "Malformed URL"); *err_desc = apr_psprintf(r->pool, "Logout URL ...
static apr_byte_t oidc_validate_post_logout_url(request_rec *r, const char *url, char **err_str, char **err_desc) { apr_uri_t uri; const char *c_host = NULL; if (apr_uri_parse(r->pool, url, &uri) != APR_SUCCESS) { *err_str = apr_pstrdup(r->pool, "Malformed URL"); *err_desc = apr_psprintf(r->pool, "Logout URL malformed:...
CVE-2019-14857
CWE-601
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6a533e5bf95e50bd38558aff848393d9
squid-cache/squid
595b2b4576a9e8bd1c5c0b91c035b508ee303d9b
1,562,893,027
src/anyp/Uri.cc
urlAppendDomain
cpp
bool urlAppendDomain(char *host) { /* For IPv4 addresses check for a dot */ /* For IPv6 addresses also check for a colon */ if (Config.appendDomain && !strchr(host, '.') && !strchr(host, ':')) { const int64_t dlen = strlen(host); const int64_t want = dlen + Config.appendDomainLen; if...
bool urlAppendDomain(char *host) { if (Config.appendDomain && !strchr(host, '.') && !strchr(host, ':')) { const int64_t dlen = strlen(host); const int64_t want = dlen + Config.appendDomainLen; if (want > SQUIDHOSTNAMELEN - 1) { debugs(23, 2, "URL domain too large (" << dlen << " bytes)"); return false; } strncat(host, ...
CVE-2019-18677
CWE-352
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d5d5870634ed792c55c12b7574eb02fa
squid-cache/squid
806fd4c2da4606d1aacb3bf2a96595a0ee3fff67
1,562,801,285
src/anyp/Uri.cc
urlAppendDomain
cpp
bool urlAppendDomain(char *host) { if (Config.appendDomain && !strchr(host, '.') && !strchr(host, ':')) { const auto dlen = strlen(host); if (dlen > (SQUIDHOSTNAMELEN - Config.appendDomainLen - 1)) { debugs(23, 2, "URL domain too large (" << dlen << " bytes)"); return false; ...
bool urlAppendDomain(char *host) { if (Config.appendDomain && !strchr(host, '.') && !strchr(host, ':')) { const auto dlen = strlen(host); if (dlen > (SQUIDHOSTNAMELEN - Config.appendDomainLen - 1)) { debugs(23, 2, "URL domain too large (" << dlen << " bytes)"); return false; } strncat(host, Config.appendDomain, SQUIDHO...
CVE-2019-18677
CWE-352
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
508eb726afca8166725833c5e1465af3
squid-cache/squid
aa1dcf87783e0fc7188f83491e897057252a8682
1,565,081,586
src/HttpHeader.cc
parse
cpp
HttpHeaderEntry * HttpHeaderEntry::parse(const char *field_start, const char *field_end, http_hdr_owner_type &msgType) { /* note: name_start == field_start */ const char *name_end = (const char *)memchr(field_start, ':', field_end - field_start); int name_len = name_end ? name_end - field_start :0; cons...
HttpHeaderEntry * HttpHeaderEntry::parse(const char *field_start, const char *field_end, http_hdr_owner_type &msgType) { const char *name_end = (const char *)memchr(field_start, ':', field_end - field_start); int name_len = name_end ? name_end - field_start :0; const char *value_start = field_start + name_len + 1; ++ H...
CVE-2019-18678
CWE-444
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ab24eb2fe943a5cccec15a54f23481bf
squid-cache/squid
2546db0ee85009c86c43d7509bce22c4e6578085
1,565,134,694
src/HttpHeader.cc
parse
cpp
HttpHeaderEntry * HttpHeaderEntry::parse(const char *field_start, const char *field_end, const http_hdr_owner_type msgType) { /* note: name_start == field_start */ const char *name_end = (const char *)memchr(field_start, ':', field_end - field_start); int name_len = name_end ? name_end - field_start :0; ...
HttpHeaderEntry * HttpHeaderEntry::parse(const char *field_start, const char *field_end, const http_hdr_owner_type msgType) { const char *name_end = (const char *)memchr(field_start, ':', field_end - field_start); int name_len = name_end ? name_end - field_start :0; const char *value_start = field_start + name_len + 1;...
CVE-2019-18678
CWE-444
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d5f7c3b8d2b1a47e63e0b7a73b61be4e
squid-cache/squid
7a89776d95644ff0e62d45ee88c50d2afb6661cb
1,569,456,548
src/auth/digest/Config.cc
authDigestNonceEncode
cpp
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); SquidMD5_CTX Md5Ctx; HASH H; SquidMD5Init(&Md5Ctx); SquidMD5Update(&Md5Ctx, reinterpret_cast<const uint8_t *>(&nonce->noncedata), sizeof(nonce->noncedata)); Sq...
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); SquidMD5_CTX Md5Ctx; HASH H; SquidMD5Init(&Md5Ctx); SquidMD5Update(&Md5Ctx, reinterpret_cast<const uint8_t *>(&nonce->noncedata), sizeof(nonce->noncedata)); SquidMD5Final((unsigned char *) H, &Md5Ctx); non...
CVE-2019-18679
CWE-200
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
65835572757078f36d782c922e6e87a8
squid-cache/squid
e7717cc69244f03d751234cffee5cf1fd68f4d37
1,569,455,757
src/auth/digest/Config.cc
authDigestNonceEncode
cpp
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); nonce->key = xcalloc(base64_encode_len(sizeof(digest_nonce_data)), 1); struct base64_encode_ctx ctx; base64_encode_init(&ctx); size_t blen = base64_encode_update(&...
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); nonce->key = xcalloc(base64_encode_len(sizeof(digest_nonce_data)), 1); struct base64_encode_ctx ctx; base64_encode_init(&ctx); size_t blen = base64_encode_update(&ctx, reinterpret_cast<char*>(nonce->key), ...
CVE-2019-18679
CWE-200
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1da5bcf73826b971b214e98474d693ba
squid-cache/squid
21bb6b1a513d0999e8842f5866196579ef44d96e
1,571,067,605
src/auth/digest/Config.cc
authDigestNonceEncode
cpp
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); SquidMD5_CTX Md5Ctx; HASH H; SquidMD5Init(&Md5Ctx); SquidMD5Update(&Md5Ctx, reinterpret_cast<const uint8_t *>(&nonce->noncedata), sizeof(nonce->noncedata)); Sq...
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); SquidMD5_CTX Md5Ctx; HASH H; SquidMD5Init(&Md5Ctx); SquidMD5Update(&Md5Ctx, reinterpret_cast<const uint8_t *>(&nonce->noncedata), sizeof(nonce->noncedata)); SquidMD5Final((unsigned char *) H, &Md5Ctx); non...
CVE-2019-18679
CWE-200
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
09aeef334a89840fb702c6060bead579
squid-cache/squid
f255b00c3c70f1576063187e6506638063af15e0
1,571,066,491
src/auth/digest/Config.cc
authDigestNonceEncode
cpp
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); SquidMD5_CTX Md5Ctx; HASH H; SquidMD5Init(&Md5Ctx); SquidMD5Update(&Md5Ctx, reinterpret_cast<const uint8_t *>(&nonce->noncedata), sizeof(nonce->noncedata)); Sq...
static void authDigestNonceEncode(digest_nonce_h * nonce) { if (!nonce) return; if (nonce->key) xfree(nonce->key); SquidMD5_CTX Md5Ctx; HASH H; SquidMD5Init(&Md5Ctx); SquidMD5Update(&Md5Ctx, reinterpret_cast<const uint8_t *>(&nonce->noncedata), sizeof(nonce->noncedata)); SquidMD5Final((unsigned char *) H, &Md5Ctx); non...
CVE-2019-18679
CWE-200
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fe908c9ac0e7ef87295442829e69b039
LuaJIT/LuaJIT
c017b2bafc24f71620de7225c5fdcd4a71ff2593
1,573,635,100
src/lj_debug.c
lj_debug_getinfo
c
int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, int ext) { int opt_f = 0, opt_L = 0; TValue *frame = NULL; TValue *nextframe = NULL; GCfunc *fn; if (*what == '>') { TValue *func = L->top - 1; api_check(L, tvisfunc(func)); fn = funcV(func); L->top--; what++; } else { ...
int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, int ext) { int opt_f = 0, opt_L = 0; TValue *frame = NULL; TValue *nextframe = NULL; GCfunc *fn; if (*what == '>') { TValue *func = L->top - 1; api_check(L, tvisfunc(func)); fn = funcV(func); L->top--; what++; } else { uint32_t offset = (uint32_t)ar->i_...
CVE-2019-19391
CWE-843
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ef6cce0b36eff33593da97718b8dadc8
OpenSC/OpenSC
c3f23b836e5a1766c36617fe1da30d22f7b63de2
1,572,749,128
src/libopensc/card-setcos.c
parse_sec_attr_44
c
static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len) { /* OpenSc Operation values for each command operation-type */ const int df_idx[8] = { /* byte 1 = OpenSC type of AC Bit0, byte 2 = OpenSC type of AC Bit1 ...*/ SC_AC_OP_DELETE, SC_AC_OP_CREATE, SC_AC_OP_CREATE, SC_AC_OP_INVALIDATE, SC_A...
static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len) { const int df_idx[8] = { SC_AC_OP_DELETE, SC_AC_OP_CREATE, SC_AC_OP_CREATE, SC_AC_OP_INVALIDATE, SC_AC_OP_REHABILITATE, SC_AC_OP_LOCK, SC_AC_OP_DELETE, -1}; const int ef_idx[8] = { SC_AC_OP_READ, SC_AC_OP_UPDATE, SC_AC_OP_WRITE, SC_AC_OP_INVALID...
CVE-2019-19479
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c9d1519a97dcc0aa28283653ea3b42c2
FreeRADIUS/freeradius-server
3ea2a5a026e73d81cd9a3e9bbd4300c433004bfa
1,559,755,266
src/modules/rlm_eap/types/rlm_eap_pwd/eap_pwd.c
compute_password_element
c
int compute_password_element (pwd_session_t *session, uint16_t grp_num, char const *password, int password_len, char const *id_server, int id_server_len, char const *id_peer, int id_peer_len, uint32_t *token) { BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; HMAC_CTX *ct...
int compute_password_element (pwd_session_t *session, uint16_t grp_num, char const *password, int password_len, char const *id_server, int id_server_len, char const *id_peer, int id_peer_len, uint32_t *token) { BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; HMAC_CTX *ctx = NULL; uint8_t pwe_digest[SHA256_DI...
CVE-2019-13456
CWE-203
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
59de897c48809758ed1df97a3f4b12b4
facebook/hhvm
524d2e60cfe910406ec6109e4286d7edd545ab36
1,572,325,585
hphp/runtime/ext/mbstring/ext_mbstring.cpp
php_mb_parse_encoding
cpp
static bool php_mb_parse_encoding(const Variant& encoding, mbfl_encoding ***return_list, int *return_size, bool persistent) { bool ret; if (encoding.isArray()) { ret = php_mb_parse_encoding_array(encoding.toArray(), ...
static bool php_mb_parse_encoding(const Variant& encoding, mbfl_encoding ***return_list, int *return_size, bool persistent) { bool ret; if (encoding.isArray()) { ret = php_mb_parse_encoding_array(encoding.toArray(), return_list, return_size, persistent ? 1 : 0); } else { String enc = encoding.toString(); ret = php_mb_p...
CVE-2019-11930
CWE-763
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e5db6bb0e53d311099ccb94a16a001d2
facebook/hhvm
1c518555dba6ceb45d5ba61845b96e261219c3b7
1,572,315,637
hphp/runtime/ext/mbstring/ext_mbstring.cpp
_php_mb_regex_ereg_replace_exec
cpp
static Variant _php_mb_regex_ereg_replace_exec(const Variant& pattern, const String& replacement, const String& str, const String& option, ...
static Variant _php_mb_regex_ereg_replace_exec(const Variant& pattern, const String& replacement, const String& str, const String& option, OnigOptionType options) { const char *p; php_mb_regex_t *re; OnigSyntaxType *syntax; OnigRegion *regs = nullptr; StringBuffer out_buf; int i, err, eval, n; OnigUChar *pos; OnigUChar...
CVE-2019-11935
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7e2c32933e8ed591ede2b1b838814842
facebook/hhvm
f57df6d8cf33cb14c40f52287da29360e7003373
1,572,288,720
hphp/runtime/ext/apc/ext_apc.cpp
HHVM_FUNCTION
cpp
Variant HHVM_FUNCTION(apc_cache_info, const String& cache_type, bool limited /* = false */) { ArrayInit info(kCacheInfoSize, ArrayInit::Map{}); info.add(s_start_time, start_time()); if (cache_type.size() != 0 && !cache_type.same(s_user)) { return info.toArray(); }...
Variant HHVM_FUNCTION(apc_cache_info, const String& cache_type, bool limited ) { ArrayInit info(kCacheInfoSize, ArrayInit::Map{}); info.add(s_start_time, start_time()); if (cache_type.size() != 0 && !cache_type.same(s_user)) { return info.toArray(); } info.add(s_ttl, apcExtension::TTLLimit); std::map<const StringData*,...
CVE-2019-11936
CWE-626
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d80aef9746d19ab58c50a50470a16beb
radareorg/radare2
9bbc63ffa0e93aa054e262cdfb973326935a2d70
1,575,884,456
libr/core/cmd.c
r_core_cmd_subst
c
static int r_core_cmd_subst(RCore *core, char *cmd) { ut64 rep = strtoull (cmd, NULL, 10); int ret = 0, orep; char *cmt, *colon = NULL, *icmd = NULL; bool tmpseek = false; bool original_tmpseek = core->tmpseek; if (r_str_startswith (cmd, "GET /cmd/")) { memmove (cmd, cmd + 9, strlen (cmd + 9) + 1); char *htt...
static int r_core_cmd_subst(RCore *core, char *cmd) { ut64 rep = strtoull (cmd, NULL, 10); int ret = 0, orep; char *cmt, *colon = NULL, *icmd = NULL; bool tmpseek = false; bool original_tmpseek = core->tmpseek; if (r_str_startswith (cmd, "GET /cmd/")) { memmove (cmd, cmd + 9, strlen (cmd + 9) + 1); char *http = strstr ...
CVE-2019-19590
CWE-416;CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
4111f315d55d985c84d1b1ad1f23487d
CESNET/libyang
6980afae2ff9fcd6d67508b0a3f694d75fd059d6
1,575,450,033
src/parser.c
make_canonical
c
static int make_canonical(struct ly_ctx *ctx, int type, const char **value, void *data1, void *data2) { const uint16_t buf_len = 511; char buf[buf_len + 1]; struct lys_type_bit **bits = NULL; struct lyxp_expr *exp; const char *module_name, *cur_expr, *end; int i, j, count; int64_t num; u...
static int make_canonical(struct ly_ctx *ctx, int type, const char **value, void *data1, void *data2) { const uint16_t buf_len = 511; char buf[buf_len + 1]; struct lys_type_bit **bits = NULL; struct lyxp_expr *exp; const char *module_name, *cur_expr, *end; int i, j, count; int64_t num; uint64_t unum; uint8_t c; #define...
CVE-2019-19334
CWE-787
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ecc79e297508ed400065c72fce6e3b34
sqlite/sqlite
ebd70eedd5d6e6a890a670b5ee874a5eae86b4dd
1,575,903,127
src/pragma.c
sqlite3Pragma
c
void sqlite3Pragma( Parse *pParse, Token *pId1, /* First part of [schema.]id field */ Token *pId2, /* Second part of [schema.]id field, or NULL */ Token *pValue, /* Token for <value>, or NULL */ int minusFlag /* True if a '-' sign preceded <value> */ ){ char *zLeft = 0; /* Nu...
void sqlite3Pragma( Parse *pParse, Token *pId1, Token *pId2, Token *pValue, int minusFlag ){ char *zLeft = 0; char *zRight = 0; const char *zDb = 0; Token *pId; char *aFcntl[4]; int iDb; int rc; sqlite3 *db = pParse->db; Db *pDb; Vdbe *v = sqlite3GetVdbe(pParse); const PragmaName *pPragma; if( v==0 ) return; sqlite3Vdb...
CVE-2019-19646
CWE-754
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7ca16b79cef3d1df166d7e61751d30f9
sqlite/sqlite
926f796e8feec15f3836aa0a060ed906f8ae04d3
1,575,908,088
src/resolve.c
sqlite3CreateColumnExpr
c
Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){ Expr *p = sqlite3ExprAlloc(db, TK_COLUMN, 0, 0); if( p ){ struct SrcList_item *pItem = &pSrc->a[iSrc]; p->y.pTab = pItem->pTab; p->iTable = pItem->iCursor; if( p->y.pTab->iPKey==iCol ){ p->iColumn = -1; }else{ ...
Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){ Expr *p = sqlite3ExprAlloc(db, TK_COLUMN, 0, 0); if( p ){ struct SrcList_item *pItem = &pSrc->a[iSrc]; p->y.pTab = pItem->pTab; p->iTable = pItem->iCursor; if( p->y.pTab->iPKey==iCol ){ p->iColumn = -1; }else{ p->iColumn = (ynVar)iCol; testc...
CVE-2019-19646
CWE-754
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0494464a8716954e664b23330dda7ee4
xen-project/xen
7473efd12fb7a6548f5303f1f4c5cb521543a813
1,572,451,528
xen/arch/x86/mm.c
_get_page_type
c
static int _get_page_type(struct page_info *page, unsigned long type, bool preemptible) { unsigned long nx, x, y = page->u.inuse.type_info; int rc = 0; ASSERT(!(type & ~(PGT_type_mask | PGT_pae_xen_l2))); ASSERT(!in_irq()); for ( ; ; ) { x = y; nx = x...
static int _get_page_type(struct page_info *page, unsigned long type, bool preemptible) { unsigned long nx, x, y = page->u.inuse.type_info; int rc = 0; ASSERT(!(type & ~(PGT_type_mask | PGT_pae_xen_l2))); ASSERT(!in_irq()); for ( ; ; ) { x = y; nx = x + 1; if ( unlikely((nx & PGT_count_mask) == 0) ) { gdprintk(XENLOG_W...
CVE-2019-19578
CWE-682
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8ac2bbcd6b911c3245e14a979cc75907
xen-project/xen
66bdc16aeed8ddb2ae724adc5ea6bde0dea78c3d
1,572,269,631
xen/arch/x86/domain.c
relinquish_memory
c
static int relinquish_memory( struct domain *d, struct page_list_head *list, unsigned long type) { struct page_info *page; unsigned long x, y; int ret = 0; /* Use a recursive lock, as we may enter 'free_domheap_page'. */ spin_lock_recursive(&d->page_alloc_lock); while ( ...
static int relinquish_memory( struct domain *d, struct page_list_head *list, unsigned long type) { struct page_info *page; unsigned long x, y; int ret = 0; spin_lock_recursive(&d->page_alloc_lock); while ( (page = page_list_remove_head(list)) ) { if ( unlikely(!get_page(page, d)) ) { page_list_add_tail(page, &d->arch.r...
CVE-2019-19580
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1125fd15a7a0ac41918b46648fddafa5
xen-project/xen
ececa12b2c4c8e4433e4f9be83f5c668ae36fe08
1,574,160,034
xen/arch/x86/mm.c
vcpu_destroy_pagetables
c
int vcpu_destroy_pagetables(struct vcpu *v) { unsigned long mfn = pagetable_get_pfn(v->arch.guest_table); struct page_info *page; l4_pgentry_t *l4tab = NULL; int rc = put_old_guest_table(v); if ( rc ) return rc; if ( is_pv_32bit_vcpu(v) ) { l4tab = map_domain_page(_mfn(mfn)...
int vcpu_destroy_pagetables(struct vcpu *v) { unsigned long mfn = pagetable_get_pfn(v->arch.guest_table); struct page_info *page; l4_pgentry_t *l4tab = NULL; int rc = put_old_guest_table(v); if ( rc ) return rc; if ( is_pv_32bit_vcpu(v) ) { l4tab = map_domain_page(_mfn(mfn)); mfn = l4e_get_pfn(*l4tab); } if ( mfn ) { p...
CVE-2019-19580
CWE-362
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
869680a28744a11eeea468c946db2246
xen-project/xen
1d3eb8259804e5bec991a3462d69ba6bd80bb40e
1,576,066,170
xen/arch/x86/hvm/vmx/vmx.c
vmx_vmexit_handler
c
void vmx_vmexit_handler(struct cpu_user_regs *regs) { unsigned long exit_qualification, exit_reason, idtv_info, intr_info = 0; unsigned int vector = 0, mode; struct vcpu *v = current; struct domain *currd = v->domain; __vmread(GUEST_RIP, &regs->rip); __vmread(GUEST_RSP, &regs->rsp); _...
void vmx_vmexit_handler(struct cpu_user_regs *regs) { unsigned long exit_qualification, exit_reason, idtv_info, intr_info = 0; unsigned int vector = 0, mode; struct vcpu *v = current; struct domain *currd = v->domain; __vmread(GUEST_RIP, &regs->rip); __vmread(GUEST_RSP, &regs->rsp); __vmread(GUEST_RFLAGS, &regs->rflags...
CVE-2019-19583
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ac2cb1865d33043d2a9d1fb490d5a656
NetHack/NetHack
f001de79542b8c38b1f8e6d7eaefbbd28ab94b47
1,576,622,518
src/files.c
parse_conf_file
c
STATIC_OVL boolean parse_conf_file(fp, proc) FILE *fp; boolean FDECL((*proc), (char *)); { char inbuf[4 * BUFSZ]; boolean rv = TRUE; /* assume successful parse */ char *ep; boolean skip = FALSE, morelines = FALSE; char *buf = (char *) 0; size_t inbufsz = sizeof inbuf; free_config_sections()...
STATIC_OVL boolean parse_conf_file(fp, proc) FILE *fp; boolean FDECL((*proc), (char *)); { char inbuf[4 * BUFSZ]; boolean rv = TRUE; char *ep; boolean skip = FALSE, morelines = FALSE; char *buf = (char *) 0; size_t inbufsz = sizeof inbuf; free_config_sections(); while (fgets(inbuf, (int) inbufsz, fp)) { ep = index(inbu...
CVE-2019-19905
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
6febd6beffd3114be79fb5d5264b5be7
php/php-src
eb23c6008753b1cdc5359dead3a096dce46c9018
1,575,109,597
ext/bcmath/libbcmath/src/str2num.c
bc_str2num
c
void bc_str2num (bc_num *num, char *str, int scale) { int digits, strscale; char *ptr, *nptr; char zero_int; /* Prepare num. */ bc_free_num (num); /* Check for valid number and count digits. */ ptr = str; digits = 0; strscale = 0; zero_int = FALSE; if ( (*ptr == '+') || (*ptr == '-')) ptr++; /...
void bc_str2num (bc_num *num, char *str, int scale) { int digits, strscale; char *ptr, *nptr; char zero_int; bc_free_num (num); ptr = str; digits = 0; strscale = 0; zero_int = FALSE; if ( (*ptr == '+') || (*ptr == '-')) ptr++; while (*ptr == '0') ptr++; while (isdigit((int)*ptr)) ptr++, digits++; if (*ptr == '.') ptr++...
CVE-2019-11046
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
cdf0228a995ed1be14874f87df6a1c10
php/php-src
57325460d2bdee01a13d8e6cf03345c90543ff4f
1,576,480,239
ext/exif/exif.c
exif_process_IFD_in_MAKERNOTE
c
static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * value_ptr, int value_len, char *offset_base, size_t IFDlength, size_t displacement) { size_t i; int de, section_index = SECTION_MAKERNOTE; int NumDirEntries, old_motorola_intel; #ifdef KALLE_0 int offset_diff; #endif const maker_note_type ...
static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * value_ptr, int value_len, char *offset_base, size_t IFDlength, size_t displacement) { size_t i; int de, section_index = SECTION_MAKERNOTE; int NumDirEntries, old_motorola_intel; #ifdef KALLE_0 int offset_diff; #endif const maker_note_type *make...
CVE-2019-11047
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0795b8c1b40a15acae5885c595119b46
php/php-src
11893c8e665d285f72c2b8a0fbe01a3fcc03b806
1,575,996,181
win32/sendmail.c
TSendMail
c
PHPAPI int TSendMail(char *host, int *error, char **error_message, char *headers, char *Subject, char *mailTo, char *data, char *mailCc, char *mailBcc, char *mailRPath) { int ret; char *RPath = NULL; zend_string *headers_lc = NULL, *headers_trim = NULL; /* headers_lc is only created if we've a header at al...
PHPAPI int TSendMail(char *host, int *error, char **error_message, char *headers, char *Subject, char *mailTo, char *data, char *mailCc, char *mailBcc, char *mailRPath) { int ret; char *RPath = NULL; zend_string *headers_lc = NULL, *headers_trim = NULL; char *pos1 = NULL, *pos2 = NULL; if (host == NULL) { *error = BAD_...
CVE-2019-11049
CWE-415
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
35880acd2c9a413b50109b571730a1be
php/php-src
1b3b4a0d367b6f0b67e9f73d82f53db6c6b722b2
1,576,484,078
ext/exif/exif.c
exif_process_IFD_in_MAKERNOTE
c
static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * value_ptr, int value_len, char *offset_base, size_t IFDlength, size_t displacement) { size_t i; int de, section_index = SECTION_MAKERNOTE; int NumDirEntries, old_motorola_intel; #ifdef KALLE_0 int offset_diff; #endif const maker_note_type ...
static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * value_ptr, int value_len, char *offset_base, size_t IFDlength, size_t displacement) { size_t i; int de, section_index = SECTION_MAKERNOTE; int NumDirEntries, old_motorola_intel; #ifdef KALLE_0 int offset_diff; #endif const maker_note_type *make...
CVE-2019-11050
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
82cd9d8506d8c372bcc67325d725e3c5
virglrenderer
24f67de7a9088a873844a39be03cee6882260ac9
1,570,438,796
src/vrend_renderer.c
vrend_renderer_blit
c
void vrend_renderer_blit(struct vrend_context *ctx, uint32_t dst_handle, uint32_t src_handle, const struct pipe_blit_info *info) { struct vrend_resource *src_res, *dst_res; src_res = vrend_renderer_ctx_res_lookup(ctx, src_handle); dst_res = vrend_renderer_ctx_r...
void vrend_renderer_blit(struct vrend_context *ctx, uint32_t dst_handle, uint32_t src_handle, const struct pipe_blit_info *info) { struct vrend_resource *src_res, *dst_res; src_res = vrend_renderer_ctx_res_lookup(ctx, src_handle); dst_res = vrend_renderer_ctx_res_lookup(ctx, dst_handle); if (!src_res) { report_context_...
CVE-2019-18390
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
4860b38b903bd261b305645927cad91b
LibreDWG/libredwg
d15cab0fe5a160f7e5981363117c8cbcd5c82423
1,577,809,051
src/decode.c
decode_preR13
c
static int decode_preR13 (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { BITCODE_RL entities_start, entities_end, blocks_start, blocks_end; BITCODE_RL rl1, rl2; BITCODE_RS rs2; Dwg_Object *obj = NULL; int tbl_id; int error = 0; { int i; struct Dwg_Header *_obj = &dwg->header; Bit_Chain *h...
static int decode_preR13 (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { BITCODE_RL entities_start, entities_end, blocks_start, blocks_end; BITCODE_RL rl1, rl2; BITCODE_RS rs2; Dwg_Object *obj = NULL; int tbl_id; int error = 0; { int i; struct Dwg_Header *_obj = &dwg->header; Bit_Chain *hdl_dat = dat; dat->byte = 0...
CVE-2019-20009
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
730b8db165ffa594fa90c43f76448a2e
LibreDWG/libredwg
28af0b678d3461382217adc538fcdcfc97dc7c31
1,577,196,829
src/decode.c
decode_preR13
c
static int decode_preR13 (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { BITCODE_RL entities_start, entities_end, blocks_start, blocks_end; BITCODE_RL rl1, rl2; BITCODE_RS rs2; int tbl_id; Dwg_Object *obj = NULL; { int i; struct Dwg_Header *_obj = &dwg->header; Bit_Chain *hdl_dat = dat; ...
static int decode_preR13 (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { BITCODE_RL entities_start, entities_end, blocks_start, blocks_end; BITCODE_RL rl1, rl2; BITCODE_RS rs2; int tbl_id; Dwg_Object *obj = NULL; { int i; struct Dwg_Header *_obj = &dwg->header; Bit_Chain *hdl_dat = dat; dat->byte = 0x06; #include "...
CVE-2019-20009
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f5f288e5ef6fdc82cd547c9ca46c5f53
LibreDWG/libredwg
6b4b0bd805f80c144895b703cd10d4e7c1054891
1,577,267,378
src/decode.c
decode_preR13_section
c
static int decode_preR13_section (Dwg_Section_Type_r11 id, Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { Dwg_Section *tbl = &dwg->header.section[id]; int i; BITCODE_BL vcount; int error = 0; long unsigned int num = dwg->num_objects; long unsigned int old_size = num * sizeof (Dwg_...
static int decode_preR13_section (Dwg_Section_Type_r11 id, Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { Dwg_Section *tbl = &dwg->header.section[id]; int i; BITCODE_BL vcount; int error = 0; long unsigned int num = dwg->num_objects; long unsigned int old_size = num * sizeof (Dwg_Object); long unsigned int size = t...
CVE-2019-20009
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ecc02cef6c804252d62ce39345b07f9a
LibreDWG/libredwg
7f668ee2604067bf9f23b2c2057a4617002096fc
1,577,194,475
src/decode.c
dwg_decode_handleref
c
Dwg_Object_Ref * dwg_decode_handleref (Bit_Chain *restrict dat, Dwg_Object *restrict obj, Dwg_Data *restrict dwg) { // Welcome to the house of evil code Dwg_Object_Ref *ref = (Dwg_Object_Ref *)calloc (1, sizeof (Dwg_Object_Ref)); if (!ref) { LOG_ERROR ("Out of memory"); retur...
Dwg_Object_Ref * dwg_decode_handleref (Bit_Chain *restrict dat, Dwg_Object *restrict obj, Dwg_Data *restrict dwg) { Dwg_Object_Ref *ref = (Dwg_Object_Ref *)calloc (1, sizeof (Dwg_Object_Ref)); if (!ref) { LOG_ERROR ("Out of memory"); return NULL; } if (bit_read_H (dat, &ref->handleref)) { LOG_WARN ("Invalid handleref: ...
CVE-2019-20009
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
0960e746898a9ccab372ed9f2e9d6450
upx/upx
819c33fee2b2c33b96bef27a13cb20f2589819aa
1,573,878,726
src/p_mach.cpp
PackMachBase<T>::canUnpack
cpp
int PackMachBase<T>::canUnpack() { unsigned const lc_seg = lc_segment[sizeof(Addr)>>3]; fi->seek(0, SEEK_SET); fi->readx(&mhdri, sizeof(mhdri)); if (((unsigned) Mach_header::MH_MAGIC + (sizeof(Addr)>>3)) !=mhdri.magic || my_cputype !=mhdri.cputype || my_filetype !=mhdri.filetype ) ...
int PackMachBase<T>::canUnpack() { unsigned const lc_seg = lc_segment[sizeof(Addr)>>3]; fi->seek(0, SEEK_SET); fi->readx(&mhdri, sizeof(mhdri)); if (((unsigned) Mach_header::MH_MAGIC + (sizeof(Addr)>>3)) !=mhdri.magic || my_cputype !=mhdri.cputype || my_filetype !=mhdri.filetype ) return false; my_cpusubtype = mhdri.cp...
CVE-2019-20021
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
347f142853556ba3917c68b54dc2f9ef
saitoha/libsixel
b9a4175c803b50a863b0fbd8b8b49058ca725ea6
1,576,858,048
src/fromsixel.c
sixel_decode_raw
c
SIXELAPI SIXELSTATUS sixel_decode_raw( unsigned char /* in */ *p, /* sixel bytes */ int /* in */ len, /* size of sixel bytes */ unsigned char /* out */ **pixels, /* decoded pixels */ int /* out */ *pwidth, /* image width */ in...
SIXELAPI SIXELSTATUS sixel_decode_raw( unsigned char *p, int len, unsigned char **pixels, int *pwidth, int *pheight, unsigned char **palette, int *ncolors, sixel_allocator_t *allocator) { SIXELSTATUS status = SIXEL_FALSE; parser_context_t context; image_buffer_t image; int n; if (allocator) { sixel_allocator_ref(alloca...
CVE-2019-20023
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
7922e2bc36379444e840e842ab79a4d4
vim/vim
ec66c41d84e574baf8009dbc0bd088d2bc5b2421
1,570,814,353
src/window.c
win_enter_ext
c
static void win_enter_ext( win_T *wp, int undo_sync, int curwin_invalid, int trigger_new_autocmds, int trigger_enter_autocmds, int trigger_leave_autocmds) { int other_buffer = FALSE; if (wp == curwin && !curwin_invalid) /* nothing to do */ return; #ifdef FEAT_JOB_CHANNEL if ...
static void win_enter_ext( win_T *wp, int undo_sync, int curwin_invalid, int trigger_new_autocmds, int trigger_enter_autocmds, int trigger_leave_autocmds) { int other_buffer = FALSE; if (wp == curwin && !curwin_invalid) return; #ifdef FEAT_JOB_CHANNEL if (!curwin_invalid) leaving_window(curwin); #endif if (!curwin_inva...
CVE-2019-20079
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e50174afd5eea4eefcd8f022c76a9fb0
gpac/gpac
e4c1f09ab9618b6af3bec6b94b8b349f2d01dbf8
1,578,399,980
src/isomedia/box_code_base.c
minf_Read
c
GF_Err minf_Read(GF_Box *s, GF_BitStream *bs) { GF_MediaInformationBox *ptr = (GF_MediaInformationBox *)s; GF_Err e; e = gf_isom_box_array_read(s, bs, minf_AddBox); if (! ptr->dataInformation) { GF_Box *dinf, *dref, *url; Bool dump_mode = GF_FALSE; GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Missing D...
GF_Err minf_Read(GF_Box *s, GF_BitStream *bs) { GF_MediaInformationBox *ptr = (GF_MediaInformationBox *)s; GF_Err e; e = gf_isom_box_array_read(s, bs, minf_AddBox); if (! ptr->dataInformation) { GF_Box *dinf, *dref, *url; Bool dump_mode = GF_FALSE; GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Missing DataInforma...
CVE-2019-20159
CWE-401
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
cb13fcdcb3352f8fc113d3e39063f403
gpac/gpac
a8b6246da925cf744805c9427a01fcacb53314bb
1,578,406,180
src/isomedia/box_code_base.c
stbl_AddBox
c
GF_Err stbl_AddBox(GF_Box *s, GF_Box *a) { GF_SampleTableBox *ptr = (GF_SampleTableBox *)s; if (!a) return GF_OK; switch (a->type) { case GF_ISOM_BOX_TYPE_STTS: if (ptr->TimeToSample) ERROR_ON_DUPLICATED_BOX(a, ptr) ptr->TimeToSample = (GF_TimeToSampleBox *)a; break; case GF_ISOM_BOX_TYPE_CTTS: if (ptr->C...
GF_Err stbl_AddBox(GF_Box *s, GF_Box *a) { GF_SampleTableBox *ptr = (GF_SampleTableBox *)s; if (!a) return GF_OK; switch (a->type) { case GF_ISOM_BOX_TYPE_STTS: if (ptr->TimeToSample) ERROR_ON_DUPLICATED_BOX(a, ptr) ptr->TimeToSample = (GF_TimeToSampleBox *)a; break; case GF_ISOM_BOX_TYPE_CTTS: if (ptr->CompositionOffs...
CVE-2019-20169
CWE-416
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d3683904136da4b24dfd0c5b3a87e537
gpac/gpac
16856430287cc10f495eb241910b4dc45b193e03
1,578,403,404
src/odf/ipmpx_code.c
ReadGF_IPMPX_MutualAuthentication
c
static GF_Err ReadGF_IPMPX_MutualAuthentication(GF_BitStream *bs, GF_IPMPX_Data *_p, u32 size) { GF_Err e; u32 i, count; Bool requestNegotiation, successNegotiation, inclAuthenticationData, inclAuthCodes; GF_IPMPX_MutualAuthentication *p = (GF_IPMPX_MutualAuthentication *)_p; requestNegotiation = (Bool)gf_bs_read...
static GF_Err ReadGF_IPMPX_MutualAuthentication(GF_BitStream *bs, GF_IPMPX_Data *_p, u32 size) { GF_Err e; u32 i, count; Bool requestNegotiation, successNegotiation, inclAuthenticationData, inclAuthCodes; GF_IPMPX_MutualAuthentication *p = (GF_IPMPX_MutualAuthentication *)_p; requestNegotiation = (Bool)gf_bs_read_int(b...
CVE-2019-20170
CWE-763
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ee122b685c3a6a77b367fe5198a92175
glibc
c8fc0c91695b1c7003c7170861274161f9224817
1,306,845,944
nscd/nscd_getserv_r.c
nscd_getserv_r
c
static int nscd_getserv_r (const char *crit, size_t critlen, const char *proto, request_type type, struct servent *resultbuf, char *buf, size_t buflen, struct servent **result) { int gc_cycle; int nretries = 0; size_t alloca_used = 0; /* If the mapping is available, try to search there instead of comm...
static int nscd_getserv_r (const char *crit, size_t critlen, const char *proto, request_type type, struct servent *resultbuf, char *buf, size_t buflen, struct servent **result) { int gc_cycle; int nretries = 0; size_t alloca_used = 0; struct mapped_database *mapped; mapped = __nscd_get_map_ref (GETFDSERV, "services", &...
CVE-2013-4357
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
1b31e9375e10e0bc01bc6c383ee4bdfc
glibc
34a9094f49241ebb72084c536cf468fd51ebe3ec
1,305,949,563
sysdeps/posix/getaddrinfo.c
gaih_inet
c
static int gaih_inet (const char *name, const struct gaih_service *service, const struct addrinfo *req, struct addrinfo **pai, unsigned int *naddrs) { const struct gaih_typeproto *tp = gaih_inet_typeproto; struct gaih_servtuple *st = (struct gaih_servtuple *) &nullserv; struct gaih_addrtuple *at = NULL; ...
static int gaih_inet (const char *name, const struct gaih_service *service, const struct addrinfo *req, struct addrinfo **pai, unsigned int *naddrs) { const struct gaih_typeproto *tp = gaih_inet_typeproto; struct gaih_servtuple *st = (struct gaih_servtuple *) &nullserv; struct gaih_addrtuple *at = NULL; int rc; bool go...
CVE-2013-4357
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
982cb962c59564a0b61dae7afcf308ab
python-pillow/Pillow
4e2def2539ec13e53a82e06c4b3daf00454100c4
1,577,853,517
src/libImaging/TiffDecode.c
ImagingLibTiffDecode
c
int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, Py_ssize_t bytes) { TIFFSTATE *clientstate = (TIFFSTATE *)state->context; char *filename = "tempfile.tif"; char *mode = "r"; TIFF *tiff; /* buffer is the encoded file, bytes is the length of the encoded file */ /* ...
int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, Py_ssize_t bytes) { TIFFSTATE *clientstate = (TIFFSTATE *)state->context; char *filename = "tempfile.tif"; char *mode = "r"; TIFF *tiff; TRACE(("in decoder: bytes %d\n", bytes)); TRACE(("State: count %d, state %d, x %d, y %d, ystep %d\n", stat...
CVE-2020-5310
CWE-190
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
02d933acee659a411b45b124419c3c97
python-pillow/Pillow
93b22b846e0269ee9594ff71a72bec02d2bea8fd
1,576,910,302
src/libImaging/PcxDecode.c
ImagingPcxDecode
c
int ImagingPcxDecode(Imaging im, ImagingCodecState state, UINT8* buf, Py_ssize_t bytes) { UINT8 n; UINT8* ptr; if (strcmp(im->mode, "1") == 0 && state->xsize > state->bytes * 8) { state->errcode = IMAGING_CODEC_OVERRUN; return -1; } ptr = buf; for (;;) { if (bytes < 1) ...
int ImagingPcxDecode(Imaging im, ImagingCodecState state, UINT8* buf, Py_ssize_t bytes) { UINT8 n; UINT8* ptr; if (strcmp(im->mode, "1") == 0 && state->xsize > state->bytes * 8) { state->errcode = IMAGING_CODEC_OVERRUN; return -1; } ptr = buf; for (;;) { if (bytes < 1) return ptr - buf; if ((*ptr & 0xC0) == 0xC0) { if ...
CVE-2020-5312
CWE-120
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
f34c1a849510316dcb67a1e5ec77e0f1
python-pillow/Pillow
a09acd0decd8a87ccce939d5ff65dab59e7d365b
1,577,844,887
src/libImaging/FliDecode.c
ImagingFliDecode
c
int ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8* buf, Py_ssize_t bytes) { UINT8* ptr; int framesize; int c, chunks, advance; int l, lines; int i, j, x = 0, y, ymax; /* If not even the chunk size is present, we'd better leave */ if (bytes < 4) return 0; /* We don't dec...
int ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8* buf, Py_ssize_t bytes) { UINT8* ptr; int framesize; int c, chunks, advance; int l, lines; int i, j, x = 0, y, ymax; if (bytes < 4) return 0; ptr = buf; framesize = I32(ptr); if (framesize < I32(ptr)) return 0; if (I16(ptr+4) != 0xF1FA) { state->errcode = ...
CVE-2020-5313
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
37f1c176c9bff08a7696db5ac8bfc930
OISF/suricata
ea0659de7640cf6a51de5bbd1dbbb0414e4623a0
1,574,340,424
src/stream-tcp.c
StreamTcpPacketStateSynSent
c
static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p, StreamTcpThread *stt, TcpSession *ssn, PacketQueue *pq) { if (ssn == NULL) return -1; SCLogDebug("ssn %p: pkt received: %s", ssn, PKT_IS_TOCLIENT(p) ? "toclient":"toserver"); /* RST */ if (...
static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p, StreamTcpThread *stt, TcpSession *ssn, PacketQueue *pq) { if (ssn == NULL) return -1; SCLogDebug("ssn %p: pkt received: %s", ssn, PKT_IS_TOCLIENT(p) ? "toclient":"toserver"); if (p->tcph->th_flags & TH_RST) { if (!StreamTcpValidateRst(ssn, p)) return -1;...
CVE-2019-18625
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
827877a79165cef3a683a3ef8d5f769f
OISF/suricata
9f0294fadca3dcc18c919424242a41e01f3e8318
1,574,340,424
src/stream-tcp.c
StreamTcpPacketStateSynSent
c
static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p, StreamTcpThread *stt, TcpSession *ssn, PacketQueue *pq) { if (ssn == NULL) return -1; SCLogDebug("ssn %p: pkt received: %s", ssn, PKT_IS_TOCLIENT(p) ? "toclient":"toserver"); /* RST */ if (...
static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p, StreamTcpThread *stt, TcpSession *ssn, PacketQueue *pq) { if (ssn == NULL) return -1; SCLogDebug("ssn %p: pkt received: %s", ssn, PKT_IS_TOCLIENT(p) ? "toclient":"toserver"); if (p->tcph->th_flags & TH_RST) { if (!StreamTcpValidateRst(ssn, p)) return -1;...
CVE-2019-18625
CWE-Other
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d692fb9d9501fc9379cb7b98d97759ce
libbsd
9d917aad37778a9f4a96ba358415f077f3f36f3b
1,565,211,510
src/nlist.c
__fdnlist
c
int __fdnlist(int fd, struct nlist *list) { struct nlist *p; Elf_Off symoff = 0, symstroff = 0; Elf_Word symsize = 0, symstrsize = 0; Elf_Sword cc, i; int nent = -1; int errsave; Elf_Sym sbuf[1024]; Elf_Sym *s; Elf_Ehdr ehdr; char *strtab = NULL; Elf_Shdr *shdr = NULL; Elf_Word shdr_size; struct stat st; ...
int __fdnlist(int fd, struct nlist *list) { struct nlist *p; Elf_Off symoff = 0, symstroff = 0; Elf_Word symsize = 0, symstrsize = 0; Elf_Sword cc, i; int nent = -1; int errsave; Elf_Sym sbuf[1024]; Elf_Sym *s; Elf_Ehdr ehdr; char *strtab = NULL; Elf_Shdr *shdr = NULL; Elf_Word shdr_size; struct stat st; if (lseek(fd, ...
CVE-2019-20367
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
c5b548b74a9786d3fd6684b8166273dc
LibreDWG/libredwg
d5fe6843a5b1fe1641f7ae42031638e885fbd06e
1,578,063,119
src/decode_r2007.c
read_sections_map
c
static r2007_section * read_sections_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp, int64_t correction) { BITCODE_RC *data; r2007_section *sections = NULL, *last_section = NULL, *section = NULL; BITCODE_RC *ptr, *ptr_end; int i, j = 0; data = read_system_page (dat, size_comp,...
static r2007_section * read_sections_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp, int64_t correction) { BITCODE_RC *data; r2007_section *sections = NULL, *last_section = NULL, *section = NULL; BITCODE_RC *ptr, *ptr_end; int i, j = 0; data = read_system_page (dat, size_comp, size_uncomp, correction); if ...
CVE-2020-6609
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d33d3b0ba0265ca82b92474a26773a5e
LibreDWG/libredwg
540e1e432f3a48e7c1048a87da32640a5ac15007
1,578,061,284
src/dwg.c
get_next_owned_entity
c
EXPORT Dwg_Object * get_next_owned_entity (const Dwg_Object *restrict hdr, const Dwg_Object *restrict current) { unsigned int version = hdr->parent->header.version; Dwg_Object_BLOCK_HEADER *_hdr = hdr->tio.object->tio.BLOCK_HEADER; if (hdr->type != DWG_TYPE_BLOCK_HEADER) { LOG_ERR...
EXPORT Dwg_Object * get_next_owned_entity (const Dwg_Object *restrict hdr, const Dwg_Object *restrict current) { unsigned int version = hdr->parent->header.version; Dwg_Object_BLOCK_HEADER *_hdr = hdr->tio.object->tio.BLOCK_HEADER; if (hdr->type != DWG_TYPE_BLOCK_HEADER) { LOG_ERROR ("Invalid BLOCK_HEADER type %d", hdr...
CVE-2020-6609
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
fa2d31b3e4c5b3beffc15b6d84b979dd
LibreDWG/libredwg
932fdb2a08d5840846aaffbe1eca16437ff070eb
1,580,651,789
src/in_json.c
dwg_read_json
c
EXPORT int dwg_read_json (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { struct Dwg_Header *obj = &dwg->header; jsmn_parser parser; jsmntokens_t tokens; unsigned int i; int error = -1; dwg->opts |= loglevel | DWG_OPTS_INDXF | DWG_OPTS_INJSON; loglevel = dwg->opts & 0xf; if (!dat->chain && dat->fh) ...
EXPORT int dwg_read_json (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) { struct Dwg_Header *obj = &dwg->header; jsmn_parser parser; jsmntokens_t tokens; unsigned int i; int error = -1; dwg->opts |= loglevel | DWG_OPTS_INDXF | DWG_OPTS_INJSON; loglevel = dwg->opts & 0xf; if (!dat->chain && dat->fh) { error = dat_rea...
CVE-2020-6609
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
85ffcab6f8c5c4d0f099783d4258e128
LibreDWG/libredwg
25228ca37c7489bce0255dd0cfc5e1507a6c1eea
1,578,063,443
src/decode.c
read_R2004_section_info
c
static int read_R2004_section_info (Bit_Chain *restrict dat, Dwg_Data *restrict dwg, uint32_t comp_data_size, uint32_t decomp_data_size) { BITCODE_RC *decomp, *ptr, *decomp_end; BITCODE_BL i, j; int32_t section_number = 0; uint32_t data_size, maxsize; uint64_t offset; int error; ...
static int read_R2004_section_info (Bit_Chain *restrict dat, Dwg_Data *restrict dwg, uint32_t comp_data_size, uint32_t decomp_data_size) { BITCODE_RC *decomp, *ptr, *decomp_end; BITCODE_BL i, j; int32_t section_number = 0; uint32_t data_size, maxsize; uint64_t offset; int error; decomp = (BITCODE_RC *)calloc (decomp_da...
CVE-2020-6609
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
d709fe735b17d53ab8cb184c105de032
LibreDWG/libredwg
5c19f597ca87363be1bcaf5d7fa06942120a8280
1,578,063,675
src/bits.c
bit_search_sentinel
c
int bit_search_sentinel (Bit_Chain *dat, unsigned char sentinel[16]) { long unsigned int i, j; for (i = 0; i < dat->size; i++) { for (j = 0; j < 16; j++) { if (dat->chain[i + j] != sentinel[j]) break; } if (j == 16) { dat->byte = i + j; ...
int bit_search_sentinel (Bit_Chain *dat, unsigned char sentinel[16]) { long unsigned int i, j; for (i = 0; i < dat->size; i++) { for (j = 0; j < 16; j++) { if (dat->chain[i + j] != sentinel[j]) break; } if (j == 16) { dat->byte = i + j; dat->bit = 0; return -1; } } return 0; }
CVE-2020-6609
CWE-125
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
a6b22a5cbdec06fab966d5706ea9b52f
LibreDWG/libredwg
fc8c16ccf36dd4d7168231a66489a904a142059c
1,578,063,889
src/decode_r2007.c
read_pages_map
c
static r2007_page * read_pages_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp, int64_t correction) { BITCODE_RC *data, *ptr, *ptr_end; r2007_page *pages = NULL, *last_page = NULL, *page; int64_t offset = 0x480; // dat->byte; // int64_t index; data = read_system_page (dat, size_co...
static r2007_page * read_pages_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp, int64_t correction) { BITCODE_RC *data, *ptr, *ptr_end; r2007_page *pages = NULL, *last_page = NULL, *page; int64_t offset = 0x480; data = read_system_page (dat, size_comp, size_uncomp, correction); if (!data) { LOG_ERROR ("Fail...
CVE-2020-6610
CWE-770
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
ec9062facc6223e03b3665cd50e847a8
nginx/nginx
c1be55f97211d38b69ac0c2027e6812ab8b1b94e
1,577,101,546
src/http/ngx_http_special_response.c
ngx_http_send_error_page
c
static ngx_int_t ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page) { ngx_int_t overwrite; ngx_str_t uri, args; ngx_table_elt_t *location; ngx_http_core_loc_conf_t *clcf; overwrite = err_page->overwrite; if (overwrite && ...
static ngx_int_t ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page) { ngx_int_t overwrite; ngx_str_t uri, args; ngx_table_elt_t *location; ngx_http_core_loc_conf_t *clcf; overwrite = err_page->overwrite; if (overwrite && overwrite != NGX_HTTP_OK) { r->expect_tested = 1; } if (overwrite >= 0)...
CVE-2019-20372
CWE-444
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
35d7f51e16e77375f7a9ad0e00092931
abrt/abrt
6e811d78e2719988ae291181f5b133af32ce62d8
1,429,785,987
src/dbus/abrt-dbus.c
allowed_problem_dir
c
static bool allowed_problem_dir(const char *dir_name) { //HACK HACK HACK! Disabled for now until we fix clients (abrt-gui) to not pass /home/user/.cache/abrt/spool #if 0 unsigned len = strlen(g_settings_dump_location); /* If doesn't start with "g_settings_dump_location[/]"... */ if (strncmp(dir_name, g_set...
static bool allowed_problem_dir(const char *dir_name) { #if 0 unsigned len = strlen(g_settings_dump_location); if (strncmp(dir_name, g_settings_dump_location, len) != 0 || (dir_name[len] != '/' && dir_name[len] != '\0') || strstr(dir_name + len, "/.") ) { return false; } #endif return true; }
CVE-2015-3150
CWE-20
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
482a2f622e837c68990d8a5d52b642c5
abrt/abrt
7a47f57975be0d285a2f20758e4572dca6d9cdd3
1,431,501,023
src/dbus/abrt-dbus.c
handle_method_call
c
static void handle_method_call(GDBusConnection *connection, const gchar *caller, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, ...
static void handle_method_call(GDBusConnection *connection, const gchar *caller, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { reset_timeout(); uid_t caller_uid; GVariant *response; caller_uid = get_caller_...
CVE-2015-3151
CWE-22
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
aaf273552ef5637f3ed598d933a088d9
abrt/abrt
c796c76341ee846cfb897ed645bac211d7d0a932
1,429,780,321
src/daemon/abrt-server.c
key_value_ok
c
static gboolean key_value_ok(gchar *key, gchar *value) { char *i; /* check key, it has to be valid filename and will end up in the * bugzilla */ for (i = key; *i != 0; i++) { if (!isalpha(*i) && (*i != '-') && (*i != '_') && (*i != ' ')) return FALSE; } /* check value ...
static gboolean key_value_ok(gchar *key, gchar *value) { char *i; for (i = key; *i != 0; i++) { if (!isalpha(*i) && (*i != '-') && (*i != '_') && (*i != ' ')) return FALSE; } if (strcmp(key, "basename") == 0 || strcmp(key, FILENAME_TYPE) == 0 ) { if (!is_correct_filename(value)) { error_msg("Value of '%s' ('%s') is not...
CVE-2015-3151
CWE-22
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
b9850263235c8989b73f32c1ac871419
abrt/abrt
f3c2a6af3455b2882e28570e8a04f1c2d4500d5b
1,430,106,720
src/dbus/abrt-dbus.c
handle_method_call
c
static void handle_method_call(GDBusConnection *connection, const gchar *caller, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, ...
static void handle_method_call(GDBusConnection *connection, const gchar *caller, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { reset_timeout(); uid_t caller_uid; GVariant *response; caller_uid = get_caller_...
CVE-2015-3151
CWE-22
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
8d20cf7407ac006df80720164733a8f9
troglobit/uftpd
455b47d3756aed162d2d0ef7f40b549f3b5b30fe
1,567,231,709
src/common.c
compose_path
c
char *compose_path(ctrl_t *ctrl, char *path) { struct stat st; static char rpath[PATH_MAX]; char *name, *ptr; char dir[PATH_MAX] = { 0 }; strlcpy(dir, ctrl->cwd, sizeof(dir)); DBG("Compose path from cwd: %s, arg: %s", ctrl->cwd, path ?: ""); if (!path || !strlen(path)) goto check; if (path) { if (path[0] ...
char *compose_path(ctrl_t *ctrl, char *path) { struct stat st; static char rpath[PATH_MAX]; char *name, *ptr; char dir[PATH_MAX] = { 0 }; strlcpy(dir, ctrl->cwd, sizeof(dir)); DBG("Compose path from cwd: %s, arg: %s", ctrl->cwd, path ?: ""); if (!path || !strlen(path)) goto check; if (path) { if (path[0] != '/') { if (...
CVE-2020-5221
CWE-22
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e5d8a50176c6b364c125a5c5499b069d
CESNET/libyang
bdb596ddc07596fa212f231135b87d0b9178f6f8
1,556,513,970
src/resolve.c
resolve_iffeature
c
int resolve_iffeature(struct lys_iffeature *expr) { int index_e = 0, index_f = 0; if (expr->expr) { return resolve_iffeature_recursive(expr, &index_e, &index_f); } return 0; }
int resolve_iffeature(struct lys_iffeature *expr) { int index_e = 0, index_f = 0; if (expr->expr) { return resolve_iffeature_recursive(expr, &index_e, &index_f); } return 0; }
CVE-2019-20391
CWE-119
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
e00c1565d0e293fc08fac60bd5fd0ead
CESNET/libyang
4e610ccd87a2ba9413819777d508f71163fcc237
1,552,044,087
src/resolve.c
resolve_superior_type
c
int resolve_superior_type(const char *name, const char *mod_name, const struct lys_module *module, const struct lys_node *parent, struct lys_tpdf **ret) { int i, j; struct lys_tpdf *tpdf, *match; int tpdf_size; if (!mod_name) { /* no prefix, try built-in types */ f...
int resolve_superior_type(const char *name, const char *mod_name, const struct lys_module *module, const struct lys_node *parent, struct lys_tpdf **ret) { int i, j; struct lys_tpdf *tpdf, *match; int tpdf_size; if (!mod_name) { for (i = 1; i < LY_DATA_TYPE_COUNT; i++) { if (!strcmp(ly_types[i]->name, name)) { if (ret) ...
CVE-2019-20395
CWE-674
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
59829e807dd23d72589642aeb885b5aa
CESNET/libyang
88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4
1,553,850,532
src/parser_yang_bis.c
yyerror
c
void yyerror(YYLTYPE *yylloc, void *scanner, struct yang_parameter *param, ...) { free(*param->value); if (yylloc->first_line != -1) { if (*param->data_node && (*param->data_node) == (*param->actual_node)) { LOGVAL(param->module->ctx, LYE_INSTMT, LY_VLOG_LYS, *param->data_node, yyget_text(scanner)); }...
void yyerror(YYLTYPE *yylloc, void *scanner, struct yang_parameter *param, ...) { free(*param->value); if (yylloc->first_line != -1) { if (*param->data_node && (*param->data_node) == (*param->actual_node)) { LOGVAL(param->module->ctx, LYE_INSTMT, LY_VLOG_LYS, *param->data_node, yyget_text(scanner)); } else { LOGVAL(par...
CVE-2019-20397
CWE-415
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
96f49aff7d27459746428c5fd8b6ff09
qemu/qemu
f9a70e79391f6d7c2a912d785239ee8effc1922d
1,404,108,474
ui/vnc.c
protocol_client_msg
c
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; VncDisplay *vd = vs->vd; if (data[0] > 3) { update_displaychangelistener(&vd->dcl, VNC_REFRESH_INTERVAL_BASE); } switch (data[0]) { case VNC_MSG_CLIENT_SET_PIXEL_FORMAT: if (len...
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; VncDisplay *vd = vs->vd; if (data[0] > 3) { update_displaychangelistener(&vd->dcl, VNC_REFRESH_INTERVAL_BASE); } switch (data[0]) { case VNC_MSG_CLIENT_SET_PIXEL_FORMAT: if (len == 1) return 20; set_pixel_format(vs, read_u8...
CVE-2015-5239
CWE-835
SINGLE_FUNCTION_NO_MENTION
false
1
vulnerable
9d7afb04b953fabf5c13f2c3c3195e6f
virglrenderer
522b610a826f6de58c560cbb38fa8dfc65ae3c42
1,578,906,199
src/vrend_renderer.c
vrend_renderer_resource_allocate_texture
c
static int vrend_renderer_resource_allocate_texture(struct vrend_resource *gr, void *image_oes) { uint level; GLenum internalformat, glformat, gltype; enum virgl_formats format = gr->base.format; struct vrend_texture *gt = (struct vrend_texture *)gr; st...
static int vrend_renderer_resource_allocate_texture(struct vrend_resource *gr, void *image_oes) { uint level; GLenum internalformat, glformat, gltype; enum virgl_formats format = gr->base.format; struct vrend_texture *gt = (struct vrend_texture *)gr; struct pipe_resource *pr = &gr->base; if (pr->width0 == 0) return EIN...
CVE-2020-8002
CWE-476
SINGLE_FUNCTION_NO_MENTION
false