Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
13
16
source
stringlengths
14
168k
label
stringclasses
11 values
CVE-2013-6431
static void __net_init fib6_tables_init(struct net *net) { fib6_link_table(net, net->ipv6.fib6_main_tbl); }
Non-vul
CVE-2010-1149
job_write_in (GIOChannel *channel, GIOCondition condition, gpointer user_data) { Job *job = user_data; gsize bytes_written; if (job->stdin_cursor == NULL || job->stdin_cursor[0] == '\0') { /* nothing left to write; remove ourselves */ return FALSE; } g_io_channe...
Non-vul
CVE-2017-11450
static boolean ReadProfile(j_decompress_ptr jpeg_info) { char name[MaxTextExtent]; const StringInfo *previous_profile; ErrorManager *error_manager; Image *image; int marker; MagickBooleanType status; register ssize_t i; register unsigned char *p; size_t leng...
Non-vul
CVE-2013-7421
static int __sha1_update(struct sha1_state *sctx, const u8 *data, unsigned int len, unsigned int partial) { unsigned int done = 0; sctx->count += len; if (partial) { done = SHA1_BLOCK_SIZE - partial; memcpy(sctx->buffer + partial, data, done); sha1_block_data_order(sctx->state, sctx->buffer, 1); } if ...
Non-vul
CVE-2016-2476
OMX_ERRORTYPE SoftOpus::internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) { switch ((int)index) { case OMX_IndexParamStandardComponentRole: { const OMX_PARAM_COMPONENTROLETYPE *roleParams = (const OMX_PARAM_COMPONENTROLETYPE *)params; if (strncmp((...
CWE-119
CVE-2016-10172
WavpackContext *WavpackOpenFileInputEx64 (WavpackStreamReader64 *reader, void *wv_id, void *wvc_id, char *error, int flags, int norm_offset) { WavpackContext *wpc = malloc (sizeof (WavpackContext)); WavpackStream *wps; int num_blocks = 0; unsigned char first_byte; uint32_t bcount; if (!wpc) { ...
Non-vul
CVE-2016-7421
pvscsi_dbg_dump_tx_rings_config(PVSCSICmdDescSetupRings *rc) { int i; trace_pvscsi_tx_rings_ppn("Rings State", rc->ringsStatePPN); trace_pvscsi_tx_rings_num_pages("Request Ring", rc->reqRingNumPages); for (i = 0; i < rc->reqRingNumPages; i++) { trace_pvscsi_tx_rings_ppn("Request Ring", rc->reqR...
Non-vul
CVE-2012-2890
net::URLRequest* ResourceDispatcherHostImpl::GetURLRequest( const GlobalRequestID& id) { ResourceLoader* loader = GetLoader(id); if (!loader) return NULL; return loader->request(); }
Non-vul
CVE-2019-5770
bool GLES2Util::IsFloatFormat(uint32_t internal_format) { switch (internal_format) { case GL_R16F: case GL_R32F: case GL_RG16F: case GL_RG32F: case GL_R11F_G11F_B10F: case GL_RGB16F: case GL_RGB32F: case GL_RGBA16F: case GL_RGBA32F: return true; default: return fals...
Non-vul
CVE-2017-18203
static int __dm_resume(struct mapped_device *md, struct dm_table *map) { if (map) { int r = dm_table_resume_targets(map); if (r) return r; } dm_queue_flush(md); /* * Flushing deferred I/Os must be done after targets are resumed * so that mapping of targets can work correctly. * Request-based dm is qu...
Non-vul
CVE-2017-15368
R_API int r_flag_unset(RFlag *f, RFlagItem *item) { remove_offsetmap (f, item); ht_delete (f->ht_name, item->name); r_list_delete_data (f->flags, item); return true; }
Non-vul
CVE-2016-7133
static zend_always_inline int zend_mm_bitset_is_free_range(zend_mm_bitset *bitset, int start, int len) { if (len == 1) { return !zend_mm_bitset_is_set(bitset, start); } else { int pos = start / ZEND_MM_BITSET_LEN; int end = (start + len - 1) / ZEND_MM_BITSET_LEN; int bit = start & (ZEND_MM_BITSET_LEN - 1); ...
Non-vul
CVE-2011-2840
void PrepareTabstripForSelectionTest(TabStripModel* model, int tab_count, int pinned_count, const std::string& selected_tabs) { for (int i = 0; i < tab_count; ++i) { TabContentsWrapper* conte...
Non-vul
CVE-2014-8481
static void read_sse_reg(struct x86_emulate_ctxt *ctxt, sse128_t *data, int reg) { ctxt->ops->get_fpu(ctxt); switch (reg) { case 0: asm("movdqa %%xmm0, %0" : "=m"(*data)); break; case 1: asm("movdqa %%xmm1, %0" : "=m"(*data)); break; case 2: asm("movdqa %%xmm2, %0" : "=m"(*data)); break; case 3: asm("movdqa %%xmm...
Non-vul
CVE-2016-10068
static void MSLError(void *context,const char *format,...) { char reason[MaxTextExtent]; MSLInfo *msl_info; va_list operands; /* Display and format a error formats, gives file, line, position and extra parameters. */ va_start(operands,format); (void) LogMagickEvent(CoderEvent,GetMag...
Non-vul
CVE-2016-10012
dump_cfg_strarray_oneline(ServerOpCodes code, u_int count, char **vals) { u_int i; if (count <= 0 && code != sAuthenticationMethods) return; printf("%s", lookup_opcode_name(code)); for (i = 0; i < count; i++) printf(" %s", vals[i]); if (code == sAuthenticationMethods && count == 0) printf(" any"); printf(...
Non-vul
CVE-2015-5302
static int run_event_gtk_ask_yes_no_save_result(const char *key, const char *msg, void *args) { const int ret = run_ask_yes_no_save_result_dialog(key, msg, GTK_WINDOW(g_wnd_assistant)); log_request_response_communication(msg, ret ? "YES" : "NO", (struct analyze_event_data *)args); return ret; }
Non-vul
CVE-2014-0069
static int cifs_launder_page(struct page *page) { int rc = 0; loff_t range_start = page_offset(page); loff_t range_end = range_start + (loff_t)(PAGE_CACHE_SIZE - 1); struct writeback_control wbc = { .sync_mode = WB_SYNC_ALL, .nr_to_write = 0, .range_start = range_start, .range_end = range_end, }; cifs_db...
Non-vul
CVE-2013-2870
int SocketStream::DoResolveHostComplete(int result) { if (result == OK) next_state_ = STATE_RESOLVE_PROTOCOL; else next_state_ = STATE_CLOSE; return result; }
Non-vul
CVE-2017-8067
static void notifier_del_vio(struct hvc_struct *hp, int data) { hp->irq_requested = 0; }
Non-vul
CVE-2016-4008
asn1_expand_octet_string (asn1_node definitions, asn1_node * element, const char *octetName, const char *objectName) { char name[2 * ASN1_MAX_NAME_SIZE + 1], value[ASN1_MAX_NAME_SIZE]; int retCode = ASN1_SUCCESS, result; int len, len2, len3; asn1_node p2, aux = NULL; asn1_node octetNode = NULL, objectNod...
Non-vul
CVE-2012-5143
bool ImageDataPlatformBackend::IsMapped() const { return !!mapped_canvas_.get(); }
Non-vul
CVE-2014-3538
mlist_alloc(void) { struct mlist *mlist; if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) { return NULL; } mlist->next = mlist->prev = mlist; return mlist; }
Non-vul
CVE-2012-5148
void AllDownloadsCompleteObserver::OnDownloadCreated( DownloadManager* manager, DownloadItem* item) { if (pre_download_ids_.find(item->GetId()) == pre_download_ids_.end() && item->GetState() == DownloadItem::IN_PROGRESS) { item->AddObserver(this); pending_downloads_.insert(item); } }
Non-vul
CVE-2010-5329
static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, void * __user *user_ptr, void ***kernel_ptr) { int ret = 0; switch (cmd) { case VIDIOC_QUERYBUF: case VIDIOC_QBUF: case VIDIOC_DQBUF: { struct v4l2_buffer *buf = parg; if (V4L2_TYPE_IS_MULTIPLANAR(buf->type) && buf->length >...
Non-vul
CVE-2013-0920
void BookmarksMoveFunction::GetQuotaLimitHeuristics( QuotaLimitHeuristics* heuristics) const { BookmarksQuotaLimitFactory::Build<BookmarksMoveFunction>(heuristics); }
Non-vul
CVE-2015-3339
int prepare_binprm(struct linux_binprm *bprm) { struct inode *inode = file_inode(bprm->file); umode_t mode = inode->i_mode; int retval; /* clear any previous set[ug]id data from a previous binary */ bprm->cred->euid = current_euid(); bprm->cred->egid = current_egid(); if (!(bprm->file->f_path.mnt->mnt_flags...
CWE-362
CVE-2013-6381
int qeth_set_access_ctrl_online(struct qeth_card *card, int fallback) { int rc = 0; QETH_CARD_TEXT(card, 4, "setactlo"); if ((card->info.type == QETH_CARD_TYPE_OSD || card->info.type == QETH_CARD_TYPE_OSX) && qeth_adp_supported(card, IPA_SETADP_SET_ACCESS_CONTROL)) { rc = qeth_setadpparms_set_access_...
Non-vul
CVE-2016-5219
GLenum GLES2Implementation::GetError() { GPU_CLIENT_SINGLE_THREAD_CHECK(); GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetError()"); GLenum err = GetGLError(); GPU_CLIENT_LOG("returned " << GLES2Util::GetStringError(err)); return err; }
Non-vul
CVE-2015-4643
ftp_reinit(ftpbuf_t *ftp) { if (ftp == NULL) { return 0; } ftp_gc(ftp); ftp->nb = 0; if (!ftp_putcmd(ftp, "REIN", NULL)) { return 0; } if (!ftp_getresp(ftp) || ftp->resp != 220) { return 0; } return 1; }
Non-vul
CVE-2019-15920
SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, u32 pid, __le64 *eof) { struct smb2_file_eof_info info; void *data; unsigned int size; info.EndOfFile = *eof; data = &info; size = sizeof(struct smb2_file_eof_info); return send_set_info(xid, tcon, persist...
Non-vul
CVE-2017-15951
long keyctl_revoke_key(key_serial_t id) { key_ref_t key_ref; struct key *key; long ret; key_ref = lookup_user_key(id, 0, KEY_NEED_WRITE); if (IS_ERR(key_ref)) { ret = PTR_ERR(key_ref); if (ret != -EACCES) goto error; key_ref = lookup_user_key(id, 0, KEY_NEED_SETATTR); if (IS_ERR(key_ref)) { ret = PT...
Non-vul
CVE-2016-3924
status_t AudioFlinger::EffectModule::setAudioSource(audio_source_t source) { Mutex::Autolock _l(mLock); if (mStatus != NO_ERROR) { return mStatus; } status_t status = NO_ERROR; if ((mDescriptor.flags & EFFECT_FLAG_AUDIO_SOURCE_MASK) == EFFECT_FLAG_AUDIO_SOURCE_IND) { uint32_t size = 0; status = (*mEffect...
Non-vul
CVE-2017-9739
static void Ins_NOT( INS_ARG ) { (void)exc; if ( args[0] != 0 ) args[0] = 0; else args[0] = 1; }
Non-vul
CVE-2014-1713
static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; TestO...
Non-vul
CVE-2011-2797
AutofillDownloadManager::AutofillDownloadManager(Profile* profile) : profile_(profile), observer_(NULL), max_form_cache_size_(kMaxFormCacheSize), next_query_request_(base::Time::Now()), next_upload_request_(base::Time::Now()), positive_upload_rate_(0), negative_upload_rate_(0), ...
Non-vul
CVE-2012-1571
cdf_swap_dir(cdf_directory_t *d) { d->d_namelen = CDF_TOLE2(d->d_namelen); d->d_left_child = CDF_TOLE4((uint32_t)d->d_left_child); d->d_right_child = CDF_TOLE4((uint32_t)d->d_right_child); d->d_storage = CDF_TOLE4((uint32_t)d->d_storage); d->d_storage_uuid[0] = CDF_TOLE8(d->d_storage_uuid[0]); d->d_storage_uuid[1...
Non-vul
CVE-2018-1000524
update_person(person_t* person, bool* out_has_moved) { struct command command; double delta_x, delta_y; int facing; bool has_moved; bool is_finished; const person_t* last_person; struct step step; int vector; int i; person->mv_x = 0; person->mv_y =...
Non-vul
CVE-2013-3234
struct sock *rose_find_socket(unsigned int lci, struct rose_neigh *neigh) { struct sock *s; spin_lock_bh(&rose_list_lock); sk_for_each(s, &rose_list) { struct rose_sock *rose = rose_sk(s); if (rose->lci == lci && rose->neighbour == neigh) goto found; } s = NULL; found: spin_unlock_bh(&rose_list_lock); r...
Non-vul
CVE-2013-0882
bool HTMLSelectElement::platformHandleKeydownEvent(KeyboardEvent* event) { if (!RenderTheme::theme().popsMenuByArrowKeys()) return false; if (!isSpatialNavigationEnabled(document().frame())) { if (event->keyIdentifier() == "Down" || event->keyIdentifier() == "Up") { focus(); ...
Non-vul
CVE-2013-0211
archive_write_vtable(void) { static struct archive_vtable av; static int inited = 0; if (!inited) { av.archive_close = _archive_write_close; av.archive_filter_bytes = _archive_filter_bytes; av.archive_filter_code = _archive_filter_code; av.archive_filter_name = _archive_filter_name; av.archive_filter_coun...
Non-vul
CVE-2015-8660
int ovl_permission(struct inode *inode, int mask) { struct ovl_entry *oe; struct dentry *alias = NULL; struct inode *realinode; struct dentry *realdentry; bool is_upper; int err; if (S_ISDIR(inode->i_mode)) { oe = inode->i_private; } else if (mask & MAY_NOT_BLOCK) { return -ECHILD; } else { /* * For ...
Non-vul
CVE-2012-2888
OutOfProcessProxy() {}
Non-vul
CVE-2012-1601
void kvm_arch_hardware_unsetup(void) { }
Non-vul
CVE-2016-9191
static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf, size_t count, loff_t *ppos, int write) { struct inode *inode = file_inode(filp); struct ctl_table_header *head = grab_header(inode); struct ctl_table *table = PROC_I(inode)->sysctl_entry; ssize_t error; size_t res; if (IS_ERR(head)) re...
Non-vul
CVE-2013-2017
static void netdev_wait_allrefs(struct net_device *dev) { unsigned long rebroadcast_time, warning_time; linkwatch_forget_dev(dev); rebroadcast_time = warning_time = jiffies; while (atomic_read(&dev->refcnt) != 0) { if (time_after(jiffies, rebroadcast_time + 1 * HZ)) { rtnl_lock(); /* Rebroadcast unregist...
Non-vul
CVE-2016-9777
int kvm_set_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state) { struct kvm_ioapic *ioapic = ioapic_irqchip(kvm); if (!ioapic) return -EINVAL; spin_lock(&ioapic->lock); memcpy(ioapic, state, sizeof(struct kvm_ioapic_state)); ioapic->irr = 0; ioapic->irr_delivered = 0; kvm_vcpu_request_scan_ioapic(kvm); ...
Non-vul
CVE-2011-2861
WebUIBindings* RenderView::GetWebUIBindings() { if (!web_ui_bindings_.get()) { web_ui_bindings_.reset(new WebUIBindings()); } return web_ui_bindings_.get(); }
Non-vul
CVE-2019-11487
update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu) { if (tr->stop_count) return; WARN_ON_ONCE(!irqs_disabled()); if (!tr->allocated_snapshot) { /* Only the nop tracer should hit this when disabling */ WARN_ON_ONCE(tr->current_trace != &nop_trace); return; } arch_spin_lock(&tr->max_l...
Non-vul
CVE-2011-3084
void WebRTCAudioDeviceTest::OnGetHardwareSampleRate(double* sample_rate) { EXPECT_TRUE(audio_util_callback_); *sample_rate = audio_util_callback_ ? audio_util_callback_->GetAudioHardwareSampleRate() : 0.0; }
Non-vul
CVE-2011-2859
bool ExtensionService::HasApps() const { return !GetAppIds().empty(); }
Non-vul
CVE-2016-5170
void Document::EvaluateMediaQueryListIfNeeded() { if (!evaluate_media_queries_on_style_recalc_) return; EvaluateMediaQueryList(); evaluate_media_queries_on_style_recalc_ = false; }
Non-vul
CVE-2014-2706
struct sta_info *sta_info_get(struct ieee80211_sub_if_data *sdata, const u8 *addr) { struct ieee80211_local *local = sdata->local; struct sta_info *sta; sta = rcu_dereference_check(local->sta_hash[STA_HASH(addr)], lockdep_is_held(&local->sta_mtx)); while (sta) { if (sta->sdata == sdata && ...
Non-vul
CVE-2017-15415
void SandboxIPCHandler::Run() { struct pollfd pfds[2]; pfds[0].fd = lifeline_fd_; pfds[0].events = POLLIN; pfds[1].fd = browser_socket_; pfds[1].events = POLLIN; int failed_polls = 0; for (;;) { const int r = HANDLE_EINTR(poll(pfds, arraysize(pfds), -1 /* no timeout */)); DCHECK_NE(0, r);...
Non-vul
CVE-2014-9940
static void regulator_bulk_enable_async(void *data, async_cookie_t cookie) { struct regulator_bulk_data *bulk = data; bulk->ret = regulator_enable(bulk->consumer); }
Non-vul
CVE-2016-0850
static tBTM_STATUS btm_sec_send_hci_disconnect (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 reason, UINT16 conn_handle) { UINT8 old_state = p_dev_rec->sec_state; tBTM_STATUS status = BTM_CMD_STARTED; BTM_TRACE_EVENT ("btm_sec_send_hci_disconnect: handle:0x%x, reason=0x%x", conn_handle, ...
Non-vul
CVE-2012-5148
BrowserCommandController::BrowserCommandController(Browser* browser) : browser_(browser), ALLOW_THIS_IN_INITIALIZER_LIST(command_updater_(this)), block_command_execution_(false), last_blocked_command_id_(-1), last_blocked_command_disposition_(CURRENT_TAB) { browser_->tab_strip_model()->Add...
Non-vul
CVE-2011-2183
static struct page *get_mergeable_page(struct rmap_item *rmap_item) { struct mm_struct *mm = rmap_item->mm; unsigned long addr = rmap_item->address; struct vm_area_struct *vma; struct page *page; down_read(&mm->mmap_sem); if (ksm_test_exit(mm)) goto out; vma = find_vma(mm, addr); if (!vma || vma->vm_start > ...
Non-vul
CVE-2013-4541
static void usb_bus_class_init(ObjectClass *klass, void *data) { BusClass *k = BUS_CLASS(klass); k->print_dev = usb_bus_dev_print; k->get_dev_path = usb_get_dev_path; k->get_fw_dev_path = usb_get_fw_dev_path; }
Non-vul
CVE-2018-6169
content::WebContents* web_contents() { return web_contents_; }
Non-vul
CVE-2015-6761
bool IsReloadLoadType(FrameLoadType type) { return type == kFrameLoadTypeReload || type == kFrameLoadTypeReloadBypassingCache; }
Non-vul
CVE-2016-10251
jpc_pchglist_t *jpc_pchglist_copy(jpc_pchglist_t *pchglist) { jpc_pchglist_t *newpchglist; jpc_pchg_t *newpchg; int pchgno; if (!(newpchglist = jpc_pchglist_create())) { return 0; } for (pchgno = 0; pchgno < pchglist->numpchgs; ++pchgno) { if (!(newpchg = jpc_pchg_copy(pchglist->pchgs[pchgno])) || jpc_pch...
Non-vul
CVE-2017-5075
void ContentSecurityPolicy::reportInvalidPluginTypes(const String& pluginType) { String message; if (pluginType.isNull()) message = "'plugin-types' Content Security Policy directive is empty; all " "plugins will be blocked.\n"; else if (pluginType == "'none'") message = "Invalid pl...
Non-vul
CVE-2016-2464
long long BlockGroup::GetPrevTimeCode() const { return m_prev; }
Non-vul
CVE-2017-9994
static void inv_predict_13(uint8_t *p, const uint8_t *p_l, const uint8_t *p_tl, const uint8_t *p_t, const uint8_t *p_tr) { p[0] = clamp_add_subtract_half(p_l[0], p_t[0], p_tl[0]); p[1] = clamp_add_subtract_half(p_l[1], p_t[1], p_tl[1]); p[2] = clamp_add_subtract_half(p_l[2], p_t[2...
Non-vul
CVE-2015-5289
json_out(PG_FUNCTION_ARGS) { /* we needn't detoast because text_to_cstring will handle that */ Datum txt = PG_GETARG_DATUM(0); PG_RETURN_CSTRING(TextDatumGetCString(txt)); }
Non-vul
CVE-2015-6773
static int ComputeAbsoluteCaretPosition(size_t text_start, size_t text_length, int relative_caret_position) { return text_start + text_length + relative_caret_position; }
Non-vul
CVE-2014-3610
static void svm_cancel_injection(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); struct vmcb_control_area *control = &svm->vmcb->control; control->exit_int_info = control->event_inj; control->exit_int_info_err = control->event_inj_err; control->event_inj = 0; svm_complete_interrupts(svm); }
Non-vul
CVE-2018-10717
static u8 GetByte(struct ngiflib_gif * g) { #ifndef NGIFLIB_NO_FILE if(g->mode & NGIFLIB_MODE_FROM_MEM) { #endif /* NGIFLIB_NO_FILE */ return *(g->input.bytes++); #ifndef NGIFLIB_NO_FILE } else { return (u8)(getc(g->input.file)); } #endif /* NGIFLIB_NO_FILE */ }
Non-vul
CVE-2011-1800
void QQuickWebViewFlickablePrivate::initialize(WKContextRef contextRef, WKPageGroupRef pageGroupRef) { QQuickWebViewPrivate::initialize(contextRef, pageGroupRef); webPageProxy->setUseFixedLayout(true); }
Non-vul
CVE-2017-5011
DevToolsDataSource::DevToolsDataSource( net::URLRequestContextGetter* request_context) : request_context_(request_context) { }
Non-vul
CVE-2018-6121
void RenderFrameSubmissionObserver::WaitForScrollOffset( const gfx::Vector2dF& expected_offset) { while (render_frame_metadata_provider_->LastRenderFrameMetadata() .root_scroll_offset != expected_offset) { WaitForMetadataChange(); } }
Non-vul
CVE-2016-1622
ModuleSystem::NativesEnabledScope::NativesEnabledScope( ModuleSystem* module_system) : module_system_(module_system) { module_system_->natives_enabled_++; }
Non-vul
CVE-2014-9419
int copy_thread(unsigned long clone_flags, unsigned long sp, unsigned long arg, struct task_struct *p) { int err; struct pt_regs *childregs; struct task_struct *me = current; p->thread.sp0 = (unsigned long)task_stack_page(p) + THREAD_SIZE; childregs = task_pt_regs(p); p->thread.sp = (unsigned long) childregs; ...
Non-vul
CVE-2011-2918
static void mipspmu_stop(struct perf_event *event, int flags) { struct hw_perf_event *hwc = &event->hw; if (!mipspmu) return; if (!(hwc->state & PERF_HES_STOPPED)) { /* We are working on a local event. */ mipspmu->disable_event(hwc->idx); barrier(); mipspmu_event_update(event, hwc, hwc->idx); hwc->stat...
Non-vul
CVE-2018-1000878
archive_read_format_rar_read_data(struct archive_read *a, const void **buff, size_t *size, int64_t *offset) { struct rar *rar = (struct rar *)(a->format->data); int ret; if (rar->has_encrypted_entries == ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW) { rar->has_encrypted_entries =...
Non-vul
CVE-2018-16427
gpk_write_binary(sc_card_t *card, unsigned int offset, const u8 *buf, size_t count, unsigned long flags) { struct gpk_private_data *priv = DRVDATA(card); if (offset & priv->offset_mask) { sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "Invalid file offset (not a multiple of %d)", priv->offset_mask + 1); return S...
Non-vul
CVE-2014-3610
void kvm_arch_destroy_vm(struct kvm *kvm) { if (current->mm == kvm->mm) { /* * Free memory regions allocated on behalf of userspace, * unless the the memory map has changed due to process exit * or fd copying. */ struct kvm_userspace_memory_region mem; memset(&mem, 0, sizeof(mem)); mem.slot = APIC_...
Non-vul
CVE-2016-9754
void *ring_buffer_event_data(struct ring_buffer_event *event) { return rb_event_data(event); }
Non-vul
CVE-2018-6154
void WebGL2RenderingContextBase::texImage3D( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, MaybeShared<DOMArrayBufferView> pixels, GLuint src_offset) { if (isContextLost()) retur...
Non-vul
CVE-2018-10087
SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, infop, int, options, struct rusage __user *, ru) { struct rusage r; struct waitid_info info = {.status = 0}; long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL); int signo = 0; if (err > 0) { signo = SIGCHLD; err = 0;...
Non-vul
CVE-2018-17462
explicit HostObserver(AppCacheGroup* group) : group_(group) {}
Non-vul
CVE-2017-14230
EXPORTED void mboxlist_init(int myflags) { if (myflags & MBOXLIST_SYNC) { cyrusdb_sync(DB); } }
Non-vul
CVE-2016-3870
void SimpleSoftOMXComponent::onMessageReceived(const sp<AMessage> &msg) { Mutex::Autolock autoLock(mLock); uint32_t msgType = msg->what(); ALOGV("msgType = %d", msgType); switch (msgType) { case kWhatSendCommand: { int32_t cmd, param; CHECK(msg->findInt32("cmd", &cmd)); CHECK(msg->find...
Non-vul
CVE-2014-2669
inter_sl(PG_FUNCTION_ARGS) { LSEG *lseg = PG_GETARG_LSEG_P(0); LINE *line = PG_GETARG_LINE_P(1); PG_RETURN_BOOL(has_interpt_sl(lseg, line)); }
Non-vul
CVE-2012-1179
static unsigned long read_swap_header(struct swap_info_struct *p, union swap_header *swap_header, struct inode *inode) { int i; unsigned long maxpages; unsigned long swapfilepages; if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { printk(KERN_ERR "Unable to find swap-space signature\n"); retu...
Non-vul
CVE-2010-3702
GBool GfxResources::lookupGState(char *name, Object *obj) { if (!lookupGStateNF(name, obj)) return gFalse; if (!obj->isRef()) return gTrue; const Ref ref = obj->getRef(); if (!gStateCache.lookup(ref, obj)->isNull()) return gTrue; obj->free(); gStateCache.put(ref)->copy(obj); return gTrue;...
Non-vul
CVE-2014-9940
static void unset_regulator_supplies(struct regulator_dev *rdev) { struct regulator_map *node, *n; list_for_each_entry_safe(node, n, &regulator_map_list, list) { if (rdev == node->regulator) { list_del(&node->list); kfree(node->dev_name); kfree(node); } } }
Non-vul
CVE-2019-13307
static MagickRealType ApplyEvaluateOperator(RandomInfo *random_info, const Quantum pixel,const MagickEvaluateOperator op, const MagickRealType value) { MagickRealType result; result=0.0; switch (op) { case UndefinedEvaluateOperator: break; case AbsEvaluateOperator: { result=(Mag...
Non-vul
CVE-2015-8539
void user_destroy(struct key *key) { struct user_key_payload *upayload = key->payload.data[0]; kfree(upayload); }
Non-vul
CVE-2013-4591
static void nfs4_free_closedata(void *data) { struct nfs4_closedata *calldata = data; struct nfs4_state_owner *sp = calldata->state->owner; struct super_block *sb = calldata->state->inode->i_sb; if (calldata->roc) pnfs_roc_release(calldata->state->inode); nfs4_put_open_state(calldata->state); nfs_free_seqid(ca...
Non-vul
CVE-2016-3834
void CameraSource::dataCallbackTimestamp(int64_t timestampUs, int32_t msgType __unused, const sp<IMemory> &data) { ALOGV("dataCallbackTimestamp: timestamp %lld us", (long long)timestampUs); Mutex::Autolock autoLock(mLock); if (!mStarted || (mNumFramesReceived == 0 && timestampUs < mStartTimeUs)) { ALOGV(...
CWE-200
CVE-2017-7541
static int brcmf_cfg80211_set_pmk(struct wiphy *wiphy, struct net_device *dev, const struct cfg80211_pmk_conf *conf) { struct brcmf_if *ifp; brcmf_dbg(TRACE, "enter\n"); /* expect using firmware supplicant for 1X */ ifp = netdev_priv(dev); if (WARN_ON(ifp->vif->profile.use_fwsup != BRCMF_PROFILE_FWSUP_1X))...
Non-vul
CVE-2016-1621
void usage_exit() { fprintf(stderr, "Usage: %s <codec> <width> <height> <infile> <outfile> " "<keyframe-interval> [<error-resilient>]\nSee comments in " "simple_encoder.c for more information.\n", exec_name); exit(EXIT_FAILURE); }
CWE-119
CVE-2013-7271
static int caif_seqpkt_sendmsg(struct kiocb *kiocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock *sk = sock->sk; struct caifsock *cf_sk = container_of(sk, struct caifsock, sk); int buffer_size; int ret = 0; struct sk_buff *skb = NULL; int noblock; long timeo; caif_assert(cf_sk); ...
Non-vul
CVE-2013-2596
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, int write, int force, struct page **pages, struct vm_area_struct **vmas) { int flags = FOLL_TOUCH; if (pages) flags |= FOLL_GET; if (write) flags |= FOLL_WRITE; if (force) flags |= FOLL_FORCE; ...
Non-vul
CVE-2017-16931
startElementDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar **atts) { int i; callbacks++; if (quiet) return; fprintf(SAXdebug, "SAX.startElement(%s", (char *) name); if (atts != NULL) { for (i = 0;(atts[i] != NULL);i++) { fprintf(SAXdebug, ", %s='", atts[i++]); ...
Non-vul
CVE-2015-6768
void Document::updateLayoutTree(StyleRecalcChange change) { ASSERT(isMainThread()); ScriptForbiddenScope forbidScript; if (!view() || !isActive()) return; if (view()->shouldThrottleRendering()) return; if (change != Force && !needsLayoutTreeUpdate()) { if (lifecycle().sta...
Non-vul
CVE-2019-13045
static SERVER_CONNECT_REC *create_server_connect(void) { return g_malloc0(sizeof(IRC_SERVER_CONNECT_REC)); }
Non-vul
CVE-2016-2464
long long Cluster::GetPosition() const { const long long pos = m_element_start - m_pSegment->m_start; assert(pos >= 0); return pos; }
Non-vul
End of preview. Expand in Data Studio

Overview

Dataset of paper and implementation of AEGIS, Adaptive Embedding Geometry for Imbalanced Software Vulnerability Detection

Licence

The datasets referenced or used by this project are NOT included under this license. All such datasets remain the intellectual property of their respective owners and are distributed under their own licenses, terms of use, and access conditions. Users are responsible for complying with the applicable licensing requirements of the original dataset providers when downloading, using, or redistributing these datasets.

Downloads last month
260