The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 8 new columns ({'project_url', 'cve_desc', 'project', 'commit_url', 'commit_message', 'commit_id', 'nvd_url', 'cvss_score'})

This happened while the json dataset builder was generating data using

hf://datasets/Bryanokeefe/binary_codeT5/test.json (at revision 8f10de9cad63abefb06a8420d2e5d37fffc10250)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              idx: int64
              project: string
              commit_id: string
              project_url: string
              commit_url: string
              commit_message: string
              target: int64
              func: string
              cwe: list<item: string>
                child 0, item: string
              cve: string
              cve_desc: string
              nvd_url: string
              cvss_score: double
              database_origin: string
              -- schema metadata --
              pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 1812
              to
              {'idx': Value(dtype='int64', id=None), 'func': Value(dtype='string', id=None), 'target': Value(dtype='int64', id=None), 'cwe': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'cve': Value(dtype='string', id=None), 'database_origin': Value(dtype='string', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1433, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1050, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 8 new columns ({'project_url', 'cve_desc', 'project', 'commit_url', 'commit_message', 'commit_id', 'nvd_url', 'cvss_score'})
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/Bryanokeefe/binary_codeT5/test.json (at revision 8f10de9cad63abefb06a8420d2e5d37fffc10250)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

idx
int64
func
string
target
int64
cwe
sequence
cve
string
database_origin
string
530,418
static napi_value TestLargeUtf8(napi_env env, napi_callback_info info) { napi_value output; if (SIZE_MAX > INT_MAX) { NAPI_CALL(env, napi_create_string_utf8(env, "", ((size_t)INT_MAX) + 1, &output)); } else { // just throw the expected error as there is nothing to test // in this case since we can't o...
0
[ "" ]
diversevul
363,382
int __perf_event_disable(void *info) { struct perf_event *event = info; struct perf_event_context *ctx = event->ctx; struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); /* * If this is a per-task event, need to check whether this * event's task is the current task on this cpu. * * Can trigger due to ...
0
[ "" ]
diversevul
409,101
static TIFFMethodType GetJPEGMethod(Image* image,TIFF *tiff,uint16 photometric, uint16 bits_per_sample,uint16 samples_per_pixel) { #define BUFFER_SIZE 2048 MagickOffsetType position, offset; register size_t i; TIFFMethodType method; #if defined(TIFF_VERSION_BIG) uint64 #else uint32 #endi...
0
[ "" ]
diversevul
288,904
static void callbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectV8Internal::callbackFunctionAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution...
0
[ "CWE-399" ]
CVE-2014-1713
bigvul
97,578
PHP_FUNCTION(imagecolortransparent) { zval *IM; zend_long COL = 0; gdImagePtr im; int argc = ZEND_NUM_ARGS(); if (zend_parse_parameters(argc, "r|l", &IM, &COL) == FAILURE) { return; } if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { RETURN_FALSE; } if (argc > 1) { gdI...
0
[ "CWE-787" ]
CVE-2016-7126
primevul
263,103
void invalid_filename(const char *fname) { assert(fname); const char *ptr = fname; if (arg_debug_check_filename) printf("Checking filename %s\n", fname); if (strncmp(ptr, "${HOME}", 7) == 0) ptr = fname + 7; else if (strncmp(ptr, "${PATH}", 7) == 0) ptr = fname + 7; else if (strcmp(fname, "${DOWNLOADS}"...
0
[ "CWE-269" ]
CVE-2017-5940
bigvul
7,739
ssh_set_newkeys(struct ssh *ssh, int mode) { struct session_state *state = ssh->state; struct sshenc *enc; struct sshmac *mac; struct sshcomp *comp; struct sshcipher_ctx *cc; u_int64_t *max_blocks; const char *wmsg; int r, crypt_type; debug2("set_newkeys: mode %d", mode); if (mode == MODE_OUT) { cc = &sta...
0
[ "CWE-119" ]
CVE-2016-1907
primevul
83,610
static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, unsigned char *chroma1,unsigned char *chroma2) { #define IsSync(sum) ((sum & 0xffffff00UL) == 0xfffffe00UL) #define PCDGetBits(n) \ { \ sum=(sum << n) & 0xffffffff; \ bits-=n; \ while (bits <= 24) \ { \ if (p >= (buffer+0x800)) \ ...
1
[ "CWE-772" ]
CVE-2018-14435
primevul
129,353
virtual int get_char() { #ifndef LIBRAW_WIN32_CALLS return getc_unlocked(f); #else return fgetc(f); #endif }
0
[]
CVE-2020-24889
primevul
171,761
part_write_bodystructure_common(const struct message_part_data *data, string_t *str) { str_append_c(str, ' '); if (data->content_disposition == NULL) str_append(str, "NIL"); else { str_append_c(str, '('); imap_append_string(str, data->content_disposition); str_append_c(str, ' '); params_write(dat...
0
[ "CWE-20" ]
CVE-2020-25275
primevul
137,740
ctx_flexible_sched_in(struct perf_event_context *ctx, struct perf_cpu_context *cpuctx) { int can_add_hw = 1; if (ctx != &cpuctx->ctx) cpuctx = NULL; visit_groups_merge(cpuctx, &ctx->flexible_groups, smp_processor_id(), merge_sched_in, &can_add_hw); }
0
[ "CWE-401" ]
CVE-2020-25704
primevul
101,232
exif_get_short_convert (const unsigned char *buf, ExifFormat format, ExifByteOrder order) { switch (format) { case EXIF_FORMAT_LONG: return (ExifShort) exif_get_long (buf, order); case EXIF_FORMAT_SLONG: return (ExifShort) exif_get_slong (buf, order); case EXIF_FORMAT_SHORT: return (ExifShort) exif_get_sho...
0
[ "CWE-125" ]
CVE-2020-0182
primevul
431,126
void DelServer(const CString& sLine) { CString sUsername = sLine.Token(1); CString sNetwork = sLine.Token(2); CString sServer = sLine.Token(3, true); unsigned short uPort = sLine.Token(4).ToUShort(); CString sPass = sLine.Token(5); if (sServer.empty()) { ...
0
[ "" ]
diversevul
132,036
TEST(ExpressionConstantTest, ConstantOfValueMissingSerializesToRemoveSystemVar) { intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); intrusive_ptr<Expression> expression = ExpressionConstant::create(expCtx, Value()); assertBinaryEqual(BSON("field" << "...
0
[ "CWE-835" ]
CVE-2018-20803
primevul
669
parse_toshiba_packet(FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { union wtap_pseudo_header *pseudo_header = &phdr->pseudo_header; char line[TOSHIBA_LINE_LENGTH]; int num_items_scanned; guint pkt_len; int pktnum, hr, min, sec, csec; char channel[10], direction[10]; int ...
1
[ "CWE-20" ]
CVE-2016-5355
primevul
3,751
bool ldb_dn_add_base(struct ldb_dn *dn, struct ldb_dn *base) { const char *s; char *t; if ( !base || base->invalid || !dn || dn->invalid) { return false; } if (dn->components) { unsigned int i; if ( ! ldb_dn_validate(base)) { return false; } s = NULL; if (dn->valid_case) { if ( ! (s = ldb_dn_...
0
[ "CWE-200" ]
CVE-2015-5330
primevul
229,685
cdf_check_stream_offset(const cdf_stream_t *sst, const cdf_header_t *h, const void *p, size_t tail, int line) { const char *b = (const char *)sst->sst_tab; const char *e = ((const char *)p) + tail; (void)&line; if (e >= b && (size_t)(e - b) <= CDF_SEC_SIZE(h) * sst->sst_len) return 0; DPRINTF(("%d: offset be...
0
[ "" ]
CVE-2014-0236
bigvul
489,265
inline void MulSimpleBroadcast(int size, const ArithmeticParams& params, const uint8 broadcast_value, const uint8* input2_data, uint8* output_data) { const int16 input1_val = params.input1_offset + broadcast_value; int i = 0; TFLITE_DCHECK_GT(params.i...
0
[ "" ]
diversevul
431,318
apr_status_t h2_conn_child_init(apr_pool_t *pool, server_rec *s) { apr_status_t status = APR_SUCCESS; int minw, maxw; int max_threads_per_child = 0; int idle_secs = 0; check_modules(1); ap_mpm_query(AP_MPMQ_MAX_THREADS, &max_threads_per_child); status = ap_mpm_query(AP_MPMQ_IS_ASYNC, &...
0
[ "" ]
diversevul
483,394
LoRaMacStatus_t LoRaMacMlmeRequest( MlmeReq_t* mlmeRequest ) { LoRaMacStatus_t status = LORAMAC_STATUS_SERVICE_UNKNOWN; MlmeConfirmQueue_t queueElement; uint8_t macCmdPayload[2] = { 0x00, 0x00 }; if( mlmeRequest == NULL ) { return LORAMAC_STATUS_PARAMETER_INVALID; } if( Lo...
0
[ "" ]
diversevul
34,982
static inline const char *GetCINProperty(const ImageInfo *image_info, const Image *image,const char *property) { const char *value; value=GetImageOption(image_info,property); if (value != (const char *) NULL) return(value); return(GetImageProperty(image,property)); }
0
[ "CWE-119" ]
CVE-2016-10066
primevul
271,285
void WebPageProxy::setUserAgent(const String& userAgent) { if (m_userAgent == userAgent) return; m_userAgent = userAgent; if (!isValid()) return; process()->send(Messages::WebPage::SetUserAgent(m_userAgent), m_pageID); }
0
[ "" ]
bigvul
147,525
ves_icall_MonoType_GetElementType (MonoReflectionType *type) { MonoClass *class; MONO_ARCH_SAVE_REGS; if (!type->type->byref && type->type->type == MONO_TYPE_SZARRAY) return mono_type_get_object (mono_object_domain (type), &type->type->data.klass->byval_arg); class = mono_class_from_mono_type (type->type); /...
0
[ "CWE-264" ]
CVE-2011-0989
primevul
355,976
rb_str_gsub_bang(argc, argv, str) int argc; VALUE *argv; VALUE str; { return str_gsub(argc, argv, str, 1); }
0
[ "" ]
diversevul
246,400
struct ndp_msgns *ndp_msgns(struct ndp_msg *msg) { if (ndp_msg_type(msg) != NDP_MSG_NS) return NULL; return &msg->nd_msg.ns; }
0
[ "CWE-284" ]
CVE-2016-3698
bigvul
366,455
int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align, struct module *module) { int r; int cpu; r = kvm_arch_init(opaque); if (r) goto out_fail; if (!zalloc_cpumask_var(&cpus_hardware_enabled, GFP_KERNEL)) { r = -ENOMEM; goto out_free_0; } r = kvm_arch_hardware_setup(); if (r < 0) go...
0
[ "" ]
diversevul
491,037
mrb_bob_not(mrb_state *mrb, mrb_value cv) { return mrb_bool_value(!mrb_test(cv)); }
0
[ "" ]
diversevul
241,919
static int handle_cgroup_settings(struct cgroup_mount_point *mp, char *cgroup_path) { int r, saved_errno = 0; char buf[2]; mp->need_cpuset_init = false; /* If this is the memory cgroup, we want to enforce hierarchy. * But don't fail if for some reason we can't. */ if (lxc_string_in_array("memory", (con...
0
[ "CWE-59" ]
CVE-2015-1335
bigvul
140,450
camel_imapx_server_lack_capability (CamelIMAPXServer *is, guint32 capability) { gboolean lack; g_return_val_if_fail (CAMEL_IS_IMAPX_SERVER (is), FALSE); g_mutex_lock (&is->priv->stream_lock); lack = is->priv->cinfo != NULL && (is->priv->cinfo->capa & capability) == 0; g_mutex_unlock (&is->priv->stream_lo...
0
[ "CWE-476" ]
CVE-2020-16117
primevul
533,827
double Item_param::val_real() { // There's no "default". See comments in Item_param::save_in_field(). switch (state) { case REAL_VALUE: return value.real; case INT_VALUE: return (double) value.integer; case DECIMAL_VALUE: { double result; my_decimal2double(E_DEC_FATAL_ERROR, &decimal_value, ...
0
[ "" ]
diversevul
439,873
static void send_hsr_supervision_frame(struct hsr_port *master, u8 type, u8 hsrVer) { struct sk_buff *skb; int hlen, tlen; struct hsr_tag *hsr_tag; struct hsr_sup_tag *hsr_stag; struct hsr_sup_payload *hsr_sp; unsigned long irqflags; hlen = LL_RESERVED_SPACE(master->dev); tlen = master->dev->needed_tailroom;...
0
[ "" ]
diversevul
484,520
static int add_to_include_set(struct include_data *data, const unsigned char *sha1, int bitmap_pos) { khiter_t hash_pos; if (data->seen && bitmap_get(data->seen, bitmap_pos)) return 0; if (bitmap_get(data->base, bitmap_pos)) return 0; hash_pos = kh_get_sha1(bitmap_git.bitmaps, sha1); if (h...
0
[ "" ]
diversevul
330,513
HTMLFrameOwnerElement::HTMLFrameOwnerElement(const QualifiedName& tag_name, Document& document) : HTMLElement(tag_name, document), content_frame_(nullptr), embedded_content_view_(nullptr), sandbox_flags_(kSandboxNone) {}
1
[ "CWE-601" ]
CVE-2017-15419
bigvul
514,108
static void FVCopyInnards(FontView *fv,GRect *pos,int infoh, FontView *fvorig,GWindow dw, int def_layer, struct fvcontainer *kf) { fv->notactive = true; fv->gw = dw; fv->infoh = infoh; fv->b.container = kf; fv->rowcnt = 4; fv->colcnt = 16; fv->b.active_layer = def_layer; FVCreateInnards(fv...
0
[ "" ]
diversevul
170,863
} void dynstr_append_sorted(DYNAMIC_STRING* ds, DYNAMIC_STRING *ds_input, bool keep_header) { unsigned i; char *start= ds_input->str; DYNAMIC_ARRAY lines; DBUG_ENTER("dynstr_append_sorted"); if (!*start) DBUG_VOID_RETURN; /* No input */ my_init_dynamic_array(&lines, sizeof(...
0
[ "NVD-CWE-noinfo" ]
CVE-2017-3600
primevul
341,023
void *zmalloc_no_tcache(size_t size) { void *ptr = mallocx(size+PREFIX_SIZE, MALLOCX_TCACHE_NONE); if (!ptr) zmalloc_oom_handler(size); update_zmalloc_stat_alloc(zmalloc_size(ptr)); return ptr; }
1
[ "" ]
diversevul
338,212
static void voutf(struct GlobalConfig *config, const char *prefix, const char *fmt, va_list ap) { size_t width = (79 - strlen(prefix)); if(!config->mute) { size_t len; char *ptr; char *print_buffer; print_buffer = curlx_mvaprintf(fmt, ap); i...
1
[ "" ]
diversevul
529,268
virtual void drawForm(Ref /*id*/) {}
0
[ "" ]
diversevul
171,819
int Http2Session::OnStreamClose(nghttp2_session* handle, int32_t id, uint32_t code, void* user_data) { Http2Session* session = static_cast<Http2Session*>(user_data); Environment* env = session->env(); Isolate* isolate ...
0
[ "CWE-416" ]
CVE-2020-8265
primevul
405,294
connection_edge_finished_connecting(edge_connection_t *edge_conn) { connection_t *conn; tor_assert(edge_conn); tor_assert(edge_conn->base_.type == CONN_TYPE_EXIT); conn = TO_CONN(edge_conn); tor_assert(conn->state == EXIT_CONN_STATE_CONNECTING); log_info(LD_EXIT,"Exit connection to %s:%u (%s) established....
0
[ "" ]
diversevul
241,044
static __inline__ struct ipv6_pinfo *inet6_sk_generic(struct sock *sk) { const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); return (struct ipv6_pinfo *)(((u8 *)sk) + offset); }
0
[ "" ]
CVE-2015-8543
bigvul
376,981
colon_datestr_from_sig (PKT_signature *sig) { static char buf[20]; snprintf (buf, sizeof buf, "%lu", (ulong)sig->timestamp); return buf; }
0
[ "" ]
diversevul
173,158
static bool add_ref_to_table_cond(THD *thd, JOIN_TAB *join_tab) { DBUG_ENTER("add_ref_to_table_cond"); if (!join_tab->ref.key_parts) DBUG_RETURN(FALSE); Item_cond_and *cond= new (thd->mem_root) Item_cond_and(thd); TABLE *table=join_tab->table; int error= 0; if (!cond) DBUG_RETURN(TRUE); for (uin...
0
[ "NVD-CWE-noinfo" ]
CVE-2022-27451
primevul
115,246
template<typename t> CImgList<T>& assign(const CImgList<t>& list, const bool is_shared=false) { cimg::unused(is_shared); assign(list._width); cimglist_for(*this,l) _data[l].assign(list[l],false); return *this;
0
[ "CWE-787" ]
CVE-2019-13568
primevul
352,373
TransactionHolder() { ServerDB::db->transaction(); qsqQuery = new QSqlQuery(); }
0
[ "" ]
diversevul
335,679
SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) { sapi_header_struct sapi_header; char *colon_offset; char *header_line; uint header_line_len; int http_response_code; if (SG(headers_sent) && !SG(request_info).no_headers) { const char *output_start_filename = php_output_get_start_filena...
1
[ "" ]
diversevul
32,446
static void brcmf_escan_prep(struct brcmf_cfg80211_info *cfg, struct brcmf_scan_params_le *params_le, struct cfg80211_scan_request *request) { u32 n_ssids; u32 n_channels; s32 i; s32 offset; u16 chanspec; char *ptr; struct brcmf_ssid_le ssid_le; eth_broadcast_addr(params_le->bssid); params_le-...
0
[ "CWE-119" ]
CVE-2017-7541
primevul
535,291
bool LEX::sp_leave_statement(THD *thd, const LEX_CSTRING *label_name) { sp_label *lab= spcont->find_label(label_name); if (unlikely(!lab)) { my_error(ER_SP_LILABEL_MISMATCH, MYF(0), "LEAVE", label_name->str); return true; } return sp_exit_block(thd, lab, NULL); }
0
[ "" ]
diversevul
535,128
void st_select_lex_unit::register_select_chain(SELECT_LEX *first_sel) { DBUG_ASSERT(first_sel != 0); slave= first_sel; first_sel->prev= &slave; for(SELECT_LEX *sel=first_sel; sel; sel= sel->next_select()) { sel->master= (st_select_lex_node *)this; uncacheable|= sel->uncacheable; } }
0
[ "" ]
diversevul
26,074
delay(int64_t ns) { struct timespec req, rem; req.tv_sec = 0; while (ns >= 1000000000L) { ns -= 1000000000L; req.tv_sec += 1; } req.tv_nsec = ns; while (nanosleep(&req, &rem) == -1) if (EINTR == errno) memcpy(&req, &rem, sizeof(rem)); else ...
0
[ "CWE-119" ]
CVE-2016-4303
primevul
201,354
delete_buff_tail(buffheader_T *buf, int slen) { int len = (int)STRLEN(buf->bh_curr->b_str); if (len >= slen) { buf->bh_curr->b_str[len - slen] = NUL; buf->bh_space += slen; } }
1
[ "CWE-125" ]
CVE-2022-0393
primevul
160,627
j2ku_shift(unsigned x, int n) { if (n < 0) { return x >> -n; } else { return x << n; } }
0
[ "CWE-125" ]
CVE-2021-25287
primevul
441,593
static void gen_shifti(DisasContext *s1, int op, TCGMemOp ot, int d, int c) { switch(op) { case OP_ROL: gen_rot_rm_im(s1, ot, d, c, 0); break; case OP_ROR: gen_rot_rm_im(s1, ot, d, c, 1); break; case OP_SHL: case OP_SHL1: gen_shift_rm_im(s1, ot, d, c, 0, 0); ...
0
[ "" ]
diversevul
353,333
int __init udp4_proc_init(void) { return register_pernet_subsys(&udp4_net_ops); }
0
[ "" ]
diversevul
345,357
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, z, ret; unsigned backstep = linesize - avctx->width; const int cxshift = s->cxsh...
1
[ "" ]
diversevul
148,886
bool ValidateRC6() { std::cout << "\nRC6 validation suite running...\n\n"; bool pass1 = true, pass2 = true, pass3 = true; RC6Encryption enc; pass1 = enc.StaticGetValidKeyLength(8) == 16 && pass1; pass1 = enc.StaticGetValidKeyLength(16) == 16 && pass1; pass1 = enc.StaticGetValidKeyLength(24) == 24 && pass...
0
[ "CWE-190" ]
CVE-2017-9434
primevul
428,999
static void ioat3_cleanup(struct ioat2_dma_chan *ioat) { struct ioat_chan_common *chan = &ioat->base; u64 phys_complete; spin_lock_bh(&chan->cleanup_lock); if (ioat3_cleanup_preamble(chan, &phys_complete)) __cleanup(ioat, phys_complete); if (is_ioat_halted(*chan->completion)) { u32 chanerr = readl(chan->reg...
0
[ "" ]
diversevul
385,366
*/ static void php_wddx_push_element(void *user_data, const XML_Char *name, const XML_Char **atts) { st_entry ent; wddx_stack *stack = (wddx_stack *)user_data; if (!strcmp(name, EL_PACKET)) { int i; if (atts) for (i=0; atts[i]; i++) { if (!strcmp(atts[i], EL_VERSION)) { /* nothing for now */ } } ...
0
[ "" ]
diversevul
92,114
float getVariationalRefinementGamma() const CV_OVERRIDE { return variational_refinement_gamma; }
0
[ "CWE-369" ]
CVE-2019-19624
primevul
1,619
struct bio *bio_map_user_iov(struct request_queue *q, const struct iov_iter *iter, gfp_t gfp_mask) { int j; int nr_pages = 0; struct page **pages; struct bio *bio; int cur_page = 0; int ret, offset; struct iov_iter i; struct iovec iov; iov_for_each(iov, i, *iter) { unsigned long uaddr ...
1
[ "CWE-772" ]
CVE-2017-12190
primevul
58,878
bool OmniboxViewViews::DirectionAwareSelectionAtEnd() const { return TextAndUIDirectionMatch() ? SelectionAtEnd() : SelectionAtBeginning(); }
0
[ "CWE-200" ]
CVE-2016-5220
primevul
209,316
XML_SetXmlDeclHandler(XML_Parser parser, XML_XmlDeclHandler handler) { if (parser != NULL) xmlDeclHandler = handler; }
0
[ "CWE-611" ]
CVE-2017-9233
primevul
509,367
void fp_mod_2d(fp_int *a, int b, fp_int *c) { int x; /* zero if count less than or equal to zero */ if (b <= 0) { fp_zero(c); return; } /* get copy of input */ fp_copy(a, c); /* if 2**d is larger than we just return */ if (b >= (DIGIT_BIT * a->used)) { return; } /* zer...
0
[ "" ]
diversevul
521,872
void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id) { struct tipc_monitor *mon = tipc_monitor(net, bearer_id); struct tipc_peer *self; struct tipc_peer *peer, *prev, *head; if (!mon) return; self = get_self(net, bearer_id); write_lock_bh(&mon->lock); peer = get_peer(mon, addr); if (!peer) ...
0
[ "" ]
diversevul
186,786
ciInstance* ciEnv::unloaded_ciinstance() { GUARDED_VM_ENTRY(return _factory->get_unloaded_object_constant();) }
0
[ "NVD-CWE-noinfo" ]
CVE-2022-21540
primevul
362,852
static const char *cmd_content_injection(cmd_parms *cmd, void *_dcfg, int flag) { directory_config *dcfg = (directory_config *)_dcfg; if (dcfg == NULL) return NULL; dcfg->content_injection_enabled = flag; return NULL; }
0
[ "" ]
diversevul
112,854
static int parse_clock_source_unit(struct mixer_build *state, int unitid, void *_ftr) { struct uac_clock_source_descriptor *hdr = _ftr; struct usb_mixer_elem_info *cval; struct snd_kcontrol *kctl; char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; int ret; if (state->mixer->protocol != UAC_VERSION_2) return -EIN...
0
[ "CWE-119" ]
CVE-2019-15117
primevul
280,480
void WebContentsAndroid::DidStartNavigationTransitionForFrame(int64 frame_id) { JNIEnv* env = AttachCurrentThread(); Java_WebContentsImpl_didStartNavigationTransitionForFrame( env, obj_.obj(), frame_id); }
0
[ "CWE-399" ]
CVE-2013-6635
bigvul
507,482
static int __init comedi_init(void) { int i; int retval; printk(KERN_INFO "comedi: version " COMEDI_RELEASE " - http://www.comedi.org\n"); if (comedi_num_legacy_minors < 0 || comedi_num_legacy_minors > COMEDI_NUM_BOARD_MINORS) { printk(KERN_ERR "comedi: error: invalid value for module " "p...
0
[ "" ]
diversevul
485,901
njs_generate_for_in_object(njs_vm_t *vm, njs_generator_t *generator, njs_parser_node_t *node) { njs_parser_node_t *foreach, *name; njs_generator_loop_ctx_t *ctx; njs_vmcode_prop_foreach_t *prop_foreach; ctx = generator->context; foreach = node->left; name = foreach->left->right...
0
[ "" ]
diversevul
229,526
PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *var_array, ulong opt, char **sql TSRMLS_DC) { zval **val, *converted = NULL; char buf[256]; char *fld; smart_str querystr = {0}; int key_type, ret = FAILURE; uint fld_len; ulong num_idx; HashPosition pos; assert(pg_link != NULL); as...
0
[ "CWE-254" ]
CVE-2015-3412
bigvul
361,248
void version() { printf("Redis server version %s (%s:%d)\n", REDIS_VERSION, redisGitSHA1(), atoi(redisGitDirty()) > 0); exit(0); }
0
[ "" ]
diversevul
215,039
MagickExport Image *CharcoalImage(const Image *image,const double radius, const double sigma,ExceptionInfo *exception) { Image *charcoal_image, *edge_image; MagickBooleanType status; assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFal...
0
[ "CWE-369" ]
CVE-2021-20309
primevul
404,729
static uint32_t e1000e_get_status(E1000ECore *core, int index) { uint32_t res = core->mac[STATUS]; if (!(core->mac[CTRL] & E1000_CTRL_GIO_MASTER_DISABLE)) { res |= E1000_STATUS_GIO_MASTER_ENABLE; } if (core->mac[CTRL] & E1000_CTRL_FRCDPX) { res |= (core->mac[CTRL] & E1000_CTRL_FD) ? E1...
0
[ "" ]
diversevul
150,939
read_indent(const char *input, int indent, int size, int in_index, int *out_index, char *output) { int k = 0, j; while (in_index < size) { if (input[in_index] == ' ') { k++; } else if (input[in_index] == '\t') { /* RFC 6020 6.1.3 tab character is treated as 8 space chara...
0
[ "CWE-415" ]
CVE-2019-20393
primevul
163,542
static int pcan_usb_fd_get_berr_counter(const struct net_device *netdev, struct can_berr_counter *bec) { struct peak_usb_device *dev = netdev_priv(netdev); struct pcan_usb_fd_device *pdev = container_of(dev, struct pcan_usb_fd_device, dev); *bec = pdev->bec; /* must return 0 */ return 0; }
0
[ "CWE-908" ]
CVE-2019-19535
primevul
260,483
int _isatty(int fd) { /* 0, 1 and 2 are TTYs. */ return fd < 2; }
0
[ "CWE-119" ]
CVE-2019-12951
bigvul
472,918
CImg<T> get_fill(const T& val0, const T& val1, const T& val2, const T& val3, const T& val4) const { return CImg<T>(_width,_height,_depth,_spectrum).fill(val0,val1,val2,val3,val4); }
0
[ "" ]
diversevul
443,880
unsigned long long encoding_scope() const { return encoding_scope_; }
0
[ "" ]
diversevul
197,195
static int em_popa(struct x86_emulate_ctxt *ctxt) { int rc = X86EMUL_CONTINUE; int reg = VCPU_REGS_RDI; while (reg >= VCPU_REGS_RAX) { if (reg == VCPU_REGS_RSP) { register_address_increment(ctxt, &ctxt->regs[VCPU_REGS_RSP], ctxt->op_bytes); --reg; } rc = emulate_pop(ctxt, &ctxt->regs[reg], ctxt-...
0
[ "NVD-CWE-Other" ]
CVE-2012-0045
primevul
51,280
void GraphicsContext::drawLine(const IntPoint& point1, const IntPoint& point2) { if (paintingDisabled()) return; StrokeStyle penStyle = strokeStyle(); if (penStyle == NoStroke) return; SkPaint paint; if (!isPointSkiaSafe(getCTM(), point1) || !isPointSkiaSafe(getCTM(), point2)) ...
0
[ "CWE-19" ]
CVE-2011-3927
primevul
359,823
__inline__ void ip_send_check(struct iphdr *iph) { iph->check = 0; iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); }
0
[ "" ]
diversevul
145,832
int memfd_create(const char *name, unsigned int flags) { return syscall(SYS_memfd_create, name, flags); }
0
[ "CWE-78" ]
CVE-2019-5736
primevul
502,213
cancel_mime_list_for_file (NautilusDirectory *directory, NautilusFile *file) { if (directory->details->mime_list_in_progress != NULL && directory->details->mime_list_in_progress->mime_list_file == file) { mime_list_cancel (directory); } }
0
[ "" ]
diversevul
340,842
reverse_nat_packet(struct dp_packet *pkt, const struct conn *conn) { char *tail = dp_packet_tail(pkt); uint8_t pad = dp_packet_l2_pad_size(pkt); struct conn_key inner_key; const char *inner_l4 = NULL; uint16_t orig_l3_ofs = pkt->l3_ofs; uint16_t orig_l4_ofs = pkt->l4_ofs; if (conn->key.dl_t...
1
[ "" ]
diversevul
391,887
pick_next_task(struct rq *rq) { const struct sched_class *class; struct task_struct *p; /* * Optimization: we know that if all tasks are in * the fair class we can call that function directly: */ if (likely(rq->nr_running == rq->cfs.h_nr_running)) { p = fair_sched_class.pick_next_task(rq); if (likely(p))...
0
[ "" ]
diversevul
258,710
static int create_discard_cmd_control(struct f2fs_sb_info *sbi) { dev_t dev = sbi->sb->s_bdev->bd_dev; struct discard_cmd_control *dcc; int err = 0, i; if (SM_I(sbi)->dcc_info) { dcc = SM_I(sbi)->dcc_info; goto init_thread; } dcc = kzalloc(sizeof(struct discard_cmd_control), GFP_KERNEL); if (!dcc) return...
0
[ "CWE-476" ]
CVE-2017-18241
bigvul
104,275
FOR_EACH_MODULE_Type(std::pair<CUser*, CIRCNetwork*> arg) : CMuser(arg.first ? arg.first->GetModules() : CMtemp), CMnet(arg.second ? arg.second->GetModules() : CMtemp) { where = AtGlobal; }
0
[]
None
primevul
39,193
static int mov_write_int8_metadata(AVFormatContext *s, AVIOContext *pb, const char *name, const char *tag, int len) { AVDictionaryEntry *t = NULL; uint8_t num; int size = 24 + len; if (len != 1 && len != 4) return -1; if...
0
[ "CWE-369" ]
CVE-2018-14395
primevul
408,369
static void __release_logical_link(struct l2cap_chan *chan) { chan->hs_hchan = NULL; chan->hs_hcon = NULL; /* Placeholder - release the logical link */ }
0
[ "" ]
diversevul
339,381
rpl_daoack_print(netdissect_options *ndo, const u_char *bp, u_int length) { const struct nd_rpl_daoack *daoack = (const struct nd_rpl_daoack *)bp; const char *dagid_str = "<elided>"; ND_TCHECK2(*daoack, ND_RPL_DAOACK_MIN_LEN); if (length < ND_RPL_DAOACK_MIN_LEN) ...
1
[ "" ]
diversevul
299,789
WebContentsImpl* WebContentsImpl::GetOuterWebContents() { if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests()) { if (node_) return node_->outer_web_contents(); } else { if (GetBrowserPluginGuest()) return GetBrowserPluginGuest()->embedder_web_contents(); } return nullptr; }
0
[ "" ]
CVE-2016-1641
bigvul
291,753
HFSForkReadStream::~HFSForkReadStream() {}
0
[ "" ]
CVE-2013-6661
bigvul
52,455
LineInfo& lineInfo() { return m_lineInfo; }
0
[ "CWE-399" ]
CVE-2013-2909
primevul
338,398
CloseUndoneFileDownload(rfbClientPtr cl, rfbTightClientPtr rtcp) { if(cl == NULL) return; if(rtcp->rcft.rcfd.downloadInProgress == TRUE) { rtcp->rcft.rcfd.downloadInProgress = FALSE; if(rtcp->rcft.rcfd.downloadFD != -1) { close(rtcp->rcft.rcfd.downloadFD); rtcp->rcft.rcfd.downloadFD = -1; } mems...
1
[ "" ]
diversevul
248,908
SecurityFunctionTableW* sspi_GetSecurityFunctionTableWByNameW(const SEC_WCHAR* Name) { int index; UINT32 cPackages; cPackages = sizeof(SecPkgInfoW_LIST) / sizeof(*(SecPkgInfoW_LIST)); for (index = 0; index < (int) cPackages; index++) { if (lstrcmpW(Name, SecurityFunctionTableW_NAME_LIST[index].Name) == 0) { ...
0
[ "CWE-476" ]
CVE-2013-4119
bigvul
158,171
lookup_cached_dir_by_fp(const char *fp) { cached_dir_t *d = NULL; if (tor_digest_is_zero(fp) && cached_consensuses) { d = strmap_get(cached_consensuses, "ns"); } else if (memchr(fp, '\0', DIGEST_LEN) && cached_consensuses && (d = strmap_get(cached_consensuses, fp))) { /* this here interface is ...
0
[]
None
primevul
364,426
static bool vhost_net_tx_select_zcopy(struct vhost_net *net) { /* TX flush waits for outstanding DMAs to be done. * Don't start new DMAs. */ return !net->tx_flush && net->tx_packets / 64 >= net->tx_zcopy_err; }
0
[ "" ]
diversevul
78,566
static void pvscsi_realize(DeviceState *qdev, Error **errp) { PVSCSIClass *pvs_c = PVSCSI_DEVICE_GET_CLASS(qdev); PCIDevice *pci_dev = PCI_DEVICE(qdev); PVSCSIState *s = PVSCSI(qdev); if (!(s->compat_flags & PVSCSI_COMPAT_DISABLE_PCIE)) { pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS; } ...
0
[ "CWE-399" ]
CVE-2016-7421
primevul
333,594
QueryParamsTest() : cxxtools::unit::TestSuite("queryparams") { registerMethod("testQueryParams", *this, &QueryParamsTest::testQueryParams); registerMethod("testCopy", *this, &QueryParamsTest::testCopy); registerMethod("testParseUrl", *this, &QueryParamsTes...
1
[ "" ]
diversevul
End of preview.