Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringclasses
893 values
source
stringlengths
20
241k
label
stringclasses
13 values
CVE-2018-11376
static char* regstate(RBinFile *bf) { struct Elf_(r_bin_elf_obj_t) *obj = bf->o->bin_obj; if (obj->ehdr.e_machine != EM_AARCH64 && obj->ehdr.e_machine != EM_ARM && obj->ehdr.e_machine != EM_386 && obj->ehdr.e_machine != EM_X86_64) { eprintf ("Cannot retrieve regstate on: %s (not yet supported)\n", Elf_(r...
Non-vul
CVE-2015-8956
static int rfcomm_sock_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; BT_DBG("sock %p", sock); sock->state = SS_UNCONNECTED; if (sock->type != SOCK_STREAM && sock->type != SOCK_RAW) return -ESOCKTNOSUPPORT; sock->ops = &rfcomm_sock_ops; sk = rfcomm_sock_all...
Non-vul
CVE-2016-7538
ModuleExport MagickBooleanType ReadPSDLayers(Image *image, const ImageInfo *image_info,const PSDInfo *psd_info, const MagickBooleanType skip_layers,ExceptionInfo *exception) { char type[4]; LayerInfo *layer_info; MagickSizeType size; MagickBooleanType status; register ssize_t i; ...
Non-vul
CVE-2016-9557
static int jpc_com_dumpparms(jpc_ms_t *ms, FILE *out) { jpc_com_t *com = &ms->parms.com; unsigned int i; int printable; fprintf(out, "regid = %"PRIuFAST16";\n", com->regid); printable = 1; for (i = 0; i < com->len; ++i) { if (!isprint(com->data[i])) { printable = 0; break; } } if (printable) { fprin...
Non-vul
CVE-2016-4300
free_decompression(struct archive_read *a, struct _7zip *zip) { int r = ARCHIVE_OK; #if !defined(HAVE_ZLIB_H) &&\ !(defined(HAVE_BZLIB_H) && defined(BZ_CONFIG_ERROR)) (void)a;/* UNUSED */ #endif #ifdef HAVE_LZMA_H if (zip->lzstream_valid) lzma_end(&(zip->lzstream)); #endif #if defined(HAVE_BZLIB_H) && defined(BZ...
Non-vul
CVE-2018-19044
notify_fifo_exec(thread_master_t *m, int (*func) (thread_t *), void *arg, notify_script_t *script) { pid_t pid; int retval; char *scr; pid = local_fork(); /* In case of fork is error. */ if (pid < 0) { log_message(LOG_INFO, "Failed fork process"); return -1; } /* In case of this is parent process */ if ...
Non-vul
CVE-2018-6063
void BrowserChildProcessHostImpl::OnProcessLaunched() { DCHECK_CURRENTLY_ON(BrowserThread::IO); const base::Process& process = child_process_->GetProcess(); DCHECK(process.IsValid()); if (child_connection_) child_connection_->SetProcessHandle(process.Handle()); #if defined(OS_WIN) DCHECK(!early_exit_wa...
Non-vul
CVE-2017-13039
ikev2_t_print(netdissect_options *ndo, int tcount, const struct isakmp_gen *ext, u_int item_len, const u_char *ep) { const struct ikev2_t *p; struct ikev2_t t; uint16_t t_id; const u_char *cp; const char *idstr; const struct attrmap *map; size_t nmap; const u_char *ep2; p = (const struct ikev2_...
CWE-125
CVE-2017-9060
static void virtio_gpu_ctrl_bh(void *opaque) { VirtIOGPU *g = opaque; virtio_gpu_handle_ctrl(&g->parent_obj, g->ctrl_vq); }
Non-vul
CVE-2018-16427
pgp_iterate_blobs(pgp_blob_t *blob, int level, void (*func)()) { if (blob) { if (level > 0) { pgp_blob_t *child = blob->files; while (child != NULL) { pgp_blob_t *next = child->next; pgp_iterate_blobs(child, level-1, func); child = next; } } func(blob); } }
Non-vul
CVE-2017-16932
xmlSetupParserForBuffer(xmlParserCtxtPtr ctxt, const xmlChar* buffer, const char* filename) { xmlParserInputPtr input; if ((ctxt == NULL) || (buffer == NULL)) return; input = xmlNewInputStream(ctxt); if (input == NULL) { xmlErrMemory(NULL, "parsing new buff...
Non-vul
CVE-2018-6942
Round_To_Double_Grid( TT_ExecContext exc, FT_F26Dot6 distance, FT_F26Dot6 compensation ) { FT_F26Dot6 val; FT_UNUSED( exc ); if ( distance >= 0 ) { val = FT_PAD_ROUND_LONG( ADD_LONG( distance, compensation ), 32 ); if ( val <...
Non-vul
CVE-2016-5219
error::Error GLES2DecoderPassthroughImpl::DoBindFramebuffer( GLenum target, GLuint framebuffer) { CheckErrorCallbackState(); api()->glBindFramebufferEXTFn( target, GetFramebufferServiceID(api(), framebuffer, &framebuffer_id_map_, bind_generates_resource_)); if (...
Non-vul
CVE-2015-1335
static bool in_comma_list(const char *inword, const char *cgroup_use) { char *e; size_t inlen = strlen(inword), len; do { e = strchr(cgroup_use, ','); len = e ? e - cgroup_use : strlen(cgroup_use); if (len == inlen && strncmp(inword, cgroup_use, len) == 0) return true; cgroup_use = e + 1; } while (e); ...
Non-vul
CVE-2016-4805
static ssize_t ppp_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) { struct ppp_file *pf = file->private_data; DECLARE_WAITQUEUE(wait, current); ssize_t ret; struct sk_buff *skb = NULL; struct iovec iov; struct iov_iter to; ret = count; if (!pf) return -ENXIO; add_wait_queue(&pf->r...
Non-vul
CVE-2018-6034
bool WebGLRenderingContextBase::ValidateHTMLImageElement( const SecurityOrigin* security_origin, const char* function_name, HTMLImageElement* image, ExceptionState& exception_state) { if (!image || !image->CachedImage()) { SynthesizeGLError(GL_INVALID_VALUE, function_name, "no image"); return ...
Non-vul
CVE-2016-5219
void GLES2DecoderImpl::EnsureRenderbufferBound() { if (!state_.bound_renderbuffer_valid) { state_.bound_renderbuffer_valid = true; api()->glBindRenderbufferEXTFn(GL_RENDERBUFFER, state_.bound_renderbuffer.get() ? state_.bound_renderbuff...
Non-vul
CVE-2017-14040
opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters) { FILE *f = NULL; int w, h, prec; int i, numcomps, max; OPJ_COLOR_SPACE color_space; opj_image_cmptparm_t cmptparm; /* maximum of 1 component */ opj_image_t * image = NULL; int adjustS, ushift, dshift, force8; ...
Non-vul
CVE-2016-7530
MagickExport void SetQuantumMinIsWhite(QuantumInfo *quantum_info, const MagickBooleanType min_is_white) { assert(quantum_info != (QuantumInfo *) NULL); assert(quantum_info->signature == MagickSignature); quantum_info->min_is_white=min_is_white; }
Non-vul
CVE-2018-13006
void audio_sample_entry_del(GF_Box *s) { GF_MPEGAudioSampleEntryBox *ptr = (GF_MPEGAudioSampleEntryBox *)s; if (ptr == NULL) return; gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)s); if (ptr->esd) gf_isom_box_del((GF_Box *)ptr->esd); if (ptr->slc) gf_odf_desc_del((GF_Descriptor *)ptr->slc); if (ptr->cfg_a...
Non-vul
CVE-2017-15265
static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void *arg) { struct snd_seq_system_info *info = arg; memset(info, 0, sizeof(*info)); /* fill the info fields */ info->queues = SNDRV_SEQ_MAX_QUEUES; info->clients = SNDRV_SEQ_MAX_CLIENTS; info->ports = SNDRV_SEQ_MAX_PORTS; info->channels = 256;...
Non-vul
CVE-2013-2857
void ImageLoader::setImageWithoutConsideringPendingLoadEvent(CachedImage* newImage) { ASSERT(m_failedLoadURL.isEmpty()); CachedImage* oldImage = m_image.get(); if (newImage != oldImage) { m_image = newImage; if (m_hasPendingBeforeLoadEvent) { beforeLoadEventSender().cancelEvent(t...
Non-vul
CVE-2018-9336
RegisterDNS(LPVOID unused) { DWORD err; DWORD i; WCHAR sys_path[MAX_PATH]; DWORD timeout = RDNS_TIMEOUT * 1000; /* in milliseconds */ /* default path of ipconfig command */ WCHAR ipcfg[MAX_PATH] = L"C:\\Windows\\system32\\ipconfig.exe"; struct { WCHAR *argv0; WCHAR *cmd...
Non-vul
CVE-2016-3078
static int php_zip_add_file(struct zip *za, const char *filename, size_t filename_len, char *entry_name, size_t entry_name_len, long offset_start, long offset_len) /* {{{ */ { struct zip_source *zs; char resolved_path[MAXPATHLEN]; zval exists_flag; if (ZIP_OPENBASEDIR_CHECKPATH(filename)) { return -1; } if ...
Non-vul
CVE-2016-7912
ffs_epfile_open(struct inode *inode, struct file *file) { struct ffs_epfile *epfile = inode->i_private; ENTER(); if (WARN_ON(epfile->ffs->state != FFS_ACTIVE)) return -ENODEV; file->private_data = epfile; ffs_data_opened(epfile->ffs); return 0; }
Non-vul
CVE-2018-12714
trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) { struct trace_option_dentry *topt = filp->private_data; unsigned long val; int ret; ret = kstrtoul_from_user(ubuf, cnt, 10, &val); if (ret) return ret; if (val != 0 && val != 1) return -EINVAL; if (!!(topt->flag...
Non-vul
CVE-2018-13006
GF_Err video_sample_entry_dump(GF_Box *a, FILE * trace) { GF_MPEGVisualSampleEntryBox *p = (GF_MPEGVisualSampleEntryBox *)a; const char *name; switch (p->type) { case GF_ISOM_SUBTYPE_AVC_H264: case GF_ISOM_SUBTYPE_AVC2_H264: case GF_ISOM_SUBTYPE_AVC3_H264: case GF_ISOM_SUBTYPE_AVC4_H264: name = "AVCSampleEntr...
Non-vul
CVE-2017-6415
static void __r_bin_class_free(RBinClass *p) { r_list_free (p->methods); r_list_free (p->fields); r_bin_class_free (p); }
Non-vul
CVE-2016-9754
rb_set_commit_to_write(struct ring_buffer_per_cpu *cpu_buffer) { unsigned long max_count; /* * We only race with interrupts and NMIs on this CPU. * If we own the commit event, then we can commit * all others that interrupted us, since the interruptions * are in stack format (they finish before they come * ...
Non-vul
CVE-2018-9989
static int ssl_write_encrypted_pms( mbedtls_ssl_context *ssl, size_t offset, size_t *olen, size_t pms_offset ) { int ret; size_t len_bytes = ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_0 ? 0 : 2; unsigned char *p = ssl->handshake->prema...
Non-vul
CVE-2015-1196
static inline struct timespec pch_timestamp (bool which) { return p_timestamp[which]; }
Non-vul
CVE-2014-3191
void FrameView::scrollElementToRect(Element* element, const IntRect& rect) { IntRect targetRect(rect); m_frame->document()->updateLayoutIgnorePendingStylesheets(); bool pinchVirtualViewportEnabled = m_frame->settings()->pinchVirtualViewportEnabled(); if (pinchVirtualViewportEnabled) { PinchVi...
Non-vul
CVE-2017-17052
static inline void __mmput(struct mm_struct *mm) { VM_BUG_ON(atomic_read(&mm->mm_users)); uprobe_clear_state(mm); exit_aio(mm); ksm_exit(mm); khugepaged_exit(mm); /* must run before exit_mmap */ exit_mmap(mm); mm_put_huge_zero_page(mm); set_mm_exe_file(mm, NULL); if (!list_empty(&mm->mmlist)) { spin_lock(&m...
Non-vul
CVE-2017-14976
void FoFiType1C::getFontMatrix(double *mat) { int i; if (topDict.firstOp == 0x0c1e && privateDicts[0].hasFontMatrix) { if (topDict.hasFontMatrix) { mat[0] = topDict.fontMatrix[0] * privateDicts[0].fontMatrix[0] + topDict.fontMatrix[1] * privateDicts[0].fontMatrix[2]; mat[1] = topDict.fontMa...
Non-vul
CVE-2018-14017
R_API RBinJavaAnnotation *r_bin_java_annotation_new(ut8 *buffer, ut64 sz, ut64 buf_offset) { ut32 i = 0; RBinJavaAnnotation *annotation = NULL; RBinJavaElementValuePair *ev_pairs = NULL; ut64 offset = 0; annotation = R_NEW0 (RBinJavaAnnotation); if (!annotation) { return NULL; } annotation->type_idx = R_BIN_J...
Non-vul
CVE-2016-9557
static int jpc_com_dumpparms(jpc_ms_t *ms, FILE *out) { jpc_com_t *com = &ms->parms.com; unsigned int i; int printable; fprintf(out, "regid = %"PRIuFAST16";\n", com->regid); printable = 1; for (i = 0; i < com->len; ++i) { if (!isprint(com->data[i])) { printable = 0; break; } } if (printable) { fprin...
Non-vul
CVE-2015-8750
get_rela_elf32(Dwarf_Small *data, unsigned int i, int endianness, int machine, struct Dwarf_Elf_Rela *relap) { Elf32_Rela *relp = (Elf32_Rela*)(data + (i * sizeof(Elf32_Rela))); relap->r_offset = relp->r_offset; /* relap->r_info = relp->r_info; */ relap->r_type = ELF32_R_TYPE(relp->r_info);...
Non-vul
CVE-2016-5219
bool GLES2DecoderImpl::HasMoreIdleWork() const { return !pending_readpixel_fences_.empty() || gpu_tracer_->HasTracesToProcess() || !texture_refs_pending_destruction_.empty(); }
Non-vul
CVE-2017-18257
void f2fs_flush_merged_bios(struct f2fs_sb_info *sbi) { f2fs_submit_merged_bio(sbi, DATA, WRITE); f2fs_submit_merged_bio(sbi, NODE, WRITE); f2fs_submit_merged_bio(sbi, META, WRITE); }
Non-vul
CVE-2014-5045
static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir, unsigned int flags, bool *need_lookup) { struct dentry *dentry; int error; *need_lookup = false; dentry = d_lookup(dir, name); if (dentry) { if (dentry->d_flags & DCACHE_OP_REVALIDATE) { error = d_revalidate(dentry, flags); ...
Non-vul
CVE-2017-8825
mailimf_envelope_or_optional_field_parse(const char * message, size_t length, size_t * indx, struct mailimf_field ** result) { int r; size_t cur_token; struct mailimf_optional_field * optional_field; struct mailimf_field * field; r = mailimf_envelope_field_parse(message, length, indx, resul...
Non-vul
CVE-2017-7865
const char *avcodec_get_name(enum AVCodecID id) { const AVCodecDescriptor *cd; AVCodec *codec; if (id == AV_CODEC_ID_NONE) return "none"; cd = avcodec_descriptor_get(id); if (cd) return cd->name; av_log(NULL, AV_LOG_WARNING, "Codec 0x%x is not in the full list.\n", id); code...
Non-vul
CVE-2016-4300
ppmd_alloc(void *p, size_t size) { (void)p; return malloc(size); }
Non-vul
CVE-2019-5760
RTCPeerConnectionHandler::FirstSessionDescription::FirstSessionDescription( const webrtc::SessionDescriptionInterface* sdesc) { DCHECK(sdesc); for (const auto& content : sdesc->description()->contents()) { if (content.type == cricket::NS_JINGLE_RTP) { const auto* mdesc = static_cast<cricket...
Non-vul
CVE-2017-9203
static void iw_errdiff_dither(struct iw_context *ctx,int dithersubtype, double err,int x,int y) { int fwd; const double *m; static const double matrix_list[][12] = { { 7.0/16, 0.0, // 0 = Floyd-Steinberg 0.0 , 3.0/16, 5.0/16, 1.0/16, 0.0, 0.0 , 0.0, 0.0, 0.0 , 0.0...
Non-vul
CVE-2016-9794
static snd_pcm_sframes_t snd_pcm_lib_read1(struct snd_pcm_substream *substream, unsigned long data, snd_pcm_uframes_t size, int nonblock, transfer_f transfer) { struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_uframes_t xfer = 0; snd_pcm_uframes_t offset = 0; snd_pcm_ufr...
Non-vul
CVE-2017-5032
void ClientControlledShellSurface::SetMinimized() { TRACE_EVENT0("exo", "ClientControlledShellSurface::SetMinimized"); pending_window_state_ = ash::WindowStateType::kMinimized; }
Non-vul
CVE-2019-5827
static int dbpageClose(sqlite3_vtab_cursor *pCursor){ DbpageCursor *pCsr = (DbpageCursor *)pCursor; if( pCsr->pPage1 ) sqlite3PagerUnrefPageOne(pCsr->pPage1); sqlite3_free(pCsr); return SQLITE_OK; }
Non-vul
CVE-2016-10048
MagickExport MagickBooleanType OpenModules(ExceptionInfo *exception) { char **modules; register ssize_t i; size_t number_modules; /* Load all modules. */ (void) GetMagickInfo((char *) NULL,exception); number_modules=0; modules=GetModuleList("*",MagickImageCoderModule,&number_modules,e...
Non-vul
CVE-2017-9985
static int snd_msnd_write_cfg_logical(int cfg, int num, u16 io0, u16 io1, u16 irq, int mem) { if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) return -EIO; if (snd_msnd_write_cfg_io0(cfg, num, io0)) return -EIO; if (snd_msnd_write_cfg_io1(cfg, num, io1)) return -EIO; if (snd_msnd_write_cfg_irq(cfg,...
Non-vul
CVE-2018-13406
static int uvesafb_open(struct fb_info *info, int user) { struct uvesafb_par *par = info->par; int cnt = atomic_read(&par->ref_count); u8 *buf = NULL; if (!cnt && par->vbe_state_size) { buf = uvesafb_vbe_state_save(par); if (IS_ERR(buf)) { pr_warn("save hardware state failed, error code is %ld!\n", PTR...
Non-vul
CVE-2018-7480
static void blkcg_bind(struct cgroup_subsys_state *root_css) { int i; mutex_lock(&blkcg_pol_mutex); for (i = 0; i < BLKCG_MAX_POLS; i++) { struct blkcg_policy *pol = blkcg_policy[i]; struct blkcg *blkcg; if (!pol || !pol->cpd_bind_fn) continue; list_for_each_entry(blkcg, &all_blkcgs, all_blkcgs_node) ...
Non-vul
CVE-2016-5219
error::Error GLES2DecoderPassthroughImpl::DoDrawElementsInstancedANGLE( GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount) { BindPendingImagesForSamplersIfNeeded(); api()->glDrawElementsInstancedANGLEFn(mode, count, type, indices, primcount); return error::kNoErro...
Non-vul
CVE-2018-14395
static int mov_write_gmhd_tag(AVIOContext *pb, MOVTrack *track) { int64_t pos = avio_tell(pb); avio_wb32(pb, 0); /* size */ ffio_wfourcc(pb, "gmhd"); avio_wb32(pb, 0x18); /* gmin size */ ffio_wfourcc(pb, "gmin");/* generic media info */ avio_wb32(pb, 0); /* version & flags */ avi...
Non-vul
CVE-2018-1999014
static int mxf_get_next_track_edit_unit(MXFContext *mxf, MXFTrack *track, int64_t current_offset, int64_t *edit_unit_out) { int64_t a, b, m, offset; MXFIndexTable *t = mxf_find_index_table(mxf, track->index_sid); if (!t || track->original_duration <= 0) return -1; a = -1; b = track->origin...
Non-vul
CVE-2016-9754
int ring_buffer_iter_empty(struct ring_buffer_iter *iter) { struct ring_buffer_per_cpu *cpu_buffer; cpu_buffer = iter->cpu_buffer; return iter->head_page == cpu_buffer->commit_page && iter->head == rb_commit_index(cpu_buffer); }
Non-vul
CVE-2018-13006
GF_Err snro_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_SeqOffHintEntryBox *ptr = (GF_SeqOffHintEntryBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->SeqOffset); return GF_OK; }
Non-vul
CVE-2018-6031
PDFiumEngine::FormFillTimerData::FormFillTimerData(base::TimeDelta period, TimerCallback callback) : timer_period(period), timer_callback(callback) {}
Non-vul
CVE-2013-2858
void ChromeNetworkDelegate::SetEnableClientHints() { client_hints_.reset(new ClientHints()); client_hints_->Init(); }
Non-vul
CVE-2017-18202
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) { struct mmu_gather tlb; struct vm_area_struct *vma; bool ret = true; /* * We have to make sure to not race with the victim exit path * and cause premature new oom victim selection: * __oom_reap_task_mm exit_mm * mmget_not_zer...
CWE-416
CVE-2018-6942
Ins_SZPS( TT_ExecContext exc, FT_Long* args ) { switch ( (FT_Int)args[0] ) { case 0: exc->zp0 = exc->twilight; break; case 1: exc->zp0 = exc->pts; break; default: if ( exc->pedantic_hinting ) exc->error = FT_THROW( Invalid_Reference ); ...
Non-vul
CVE-2016-5219
error::Error GLES2DecoderPassthroughImpl::DoInvalidateFramebuffer( GLenum target, GLsizei count, const volatile GLenum* attachments) { if (count < 0) { InsertError(GL_INVALID_VALUE, "count cannot be negative."); return error::kNoError; } std::vector<GLenum> attachments_copy(attachments, attac...
Non-vul
CVE-2018-11363
int pdf_add_ppm(struct pdf_doc *pdf, struct pdf_object *page, int x, int y, int display_width, int display_height, const char *ppm_file) { struct pdf_object *obj; uint8_t *data; FILE *fp; char line[1024]; unsigned width, height, size; /* Load the PPM file */ ...
Non-vul
CVE-2013-2858
std::string AddSafeSearchParameters(const std::string& query) { std::vector<std::string> new_parameters; std::string safe_parameter = chrome::kSafeSearchSafeParameter; std::string ssui_parameter = chrome::kSafeSearchSsuiParameter; std::vector<std::string> parameters; base::SplitString(query, '&', &parameters...
Non-vul
CVE-2018-19044
set_valid_path(char *valid_path, const char *path) { const char *str_in; char *str_out; for (str_in = path, str_out = valid_path; *str_in; str_in++, str_out++) { if (!isalnum(*str_in)) *str_out = '_'; else *str_out = *str_in; } *str_out = '\0'; return valid_path; }
Non-vul
CVE-2018-10199
mrb_io_read_data_pending(mrb_state *mrb, mrb_value io) { mrb_value buf = mrb_iv_get(mrb, io, mrb_intern_cstr(mrb, "@buf")); if (mrb_type(buf) == MRB_TT_STRING && RSTRING_LEN(buf) > 0) { return 1; } return 0; }
Non-vul
CVE-2012-5110
void HTMLSelectElement::updateListItemSelectedStates() { if (!m_shouldRecalcListItems) return; recalcListItems(); setNeedsValidityCheck(); }
Non-vul
CVE-2017-11714
ztoken_continue(i_ctx_t *i_ctx_p) { os_ptr op = osp; scanner_state *pstate; check_stype(*op, st_scanner_state_dynamic); pstate = r_ptr(op, scanner_state); return token_continue(i_ctx_p, pstate, false); }
Non-vul
CVE-2017-16527
static void snd_usb_mixer_interrupt(struct urb *urb) { struct usb_mixer_interface *mixer = urb->context; int len = urb->actual_length; int ustatus = urb->status; if (ustatus != 0) goto requeue; if (mixer->protocol == UAC_VERSION_1) { struct uac1_status_word *status; for (status = urb->transfer_buffer; ...
Non-vul
CVE-2019-5827
static RtreeDValue cellOverlap( Rtree *pRtree, RtreeCell *p, RtreeCell *aCell, int nCell ){ int ii; RtreeDValue overlap = RTREE_ZERO; for(ii=0; ii<nCell; ii++){ int jj; RtreeDValue o = (RtreeDValue)1; for(jj=0; jj<pRtree->nDim2; jj+=2){ RtreeDValue x1, x2; x1 = MAX(DCOORD(p->aCoord...
Non-vul
CVE-2019-9003
static void check_msg_timeout(struct ipmi_smi *intf, struct seq_table *ent, struct list_head *timeouts, unsigned long timeout_period, int slot, unsigned long *flags, unsigned int *waiting_msgs) { struct ipmi_recv_msg *msg; if (intf->in_shutdown) return; if (!ent->inuse) retu...
Non-vul
CVE-2019-12109
GetExternalIPAddress(struct upnphttp * h, const char * action, const char * ns) { static const char resp[] = "<u:%sResponse " "xmlns:u=\"%s\">" "<NewExternalIPAddress>%s</NewExternalIPAddress>" "</u:%sResponse>"; char body[512]; int bodylen; char ext_ip_addr[INET_ADDRSTRLEN]; /* Does that method need to w...
Non-vul
CVE-2016-9537
tsize_t t2p_write_pdf_info(T2P* t2p, TIFF* input, TIFF* output) { tsize_t written = 0; char* info; char buffer[512]; if(t2p->pdf_datetime[0] == '\0') t2p_pdf_tifftime(t2p, input); if (strlen(t2p->pdf_datetime) > 0) { written += t2pWriteFile(output, (tdata_t) "<< \n/CreationDate ", 18); written += t2p_write_...
Non-vul
CVE-2016-8887
void jp2_box_dump(jp2_box_t *box, FILE *out) { jp2_boxinfo_t *boxinfo; boxinfo = jp2_boxinfolookup(box->type); assert(boxinfo); fprintf(out, "JP2 box: "); fprintf(out, "type=%c%s%c (0x%08x); length=%d\n", '"', boxinfo->name, '"', box->type, box->len); if (box->ops->dumpdata) { (*box->ops->dumpdata)(box, out...
Non-vul
CVE-2018-15501
int git_pkt_parse_line( git_pkt **head, const char *line, const char **out, size_t bufflen) { int ret; int32_t len; /* Not even enough for the length */ if (bufflen > 0 && bufflen < PKT_LEN_SIZE) return GIT_EBUFS; len = parse_len(line); if (len < 0) { /* * If we fail to parse the length, it might be bec...
Non-vul
CVE-2017-11147
int phar_flush(phar_archive_data *phar, char *user_stub, long len, int convert, char **error TSRMLS_DC) /* {{{ */ { char halt_stub[] = "__HALT_COMPILER();"; char *newstub, *tmp; phar_entry_info *entry, *newentry; int halt_offset, restore_alias_len, global_flags = 0, closeoldfile; char *pos, has_dirs = 0; char man...
Non-vul
CVE-2016-5170
Document::EnsureIntersectionObserverController() { if (!intersection_observer_controller_) intersection_observer_controller_ = IntersectionObserverController::Create(this); return *intersection_observer_controller_; }
Non-vul
CVE-2016-5158
void RunAomTest(const base::FilePath::CharType* file_path) { base::FilePath test_path = GetTestFilePath("accessibility", "aom"); { base::ScopedAllowBlockingForTesting allow_blocking; ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName(); } base::FilePath aom_file = test_...
Non-vul
CVE-2019-12109
SoapError(struct upnphttp * h, int errCode, const char * errDesc) { static const char resp[] = "<s:Envelope " "xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" " "s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">" "<s:Body>" "<s:Fault>" "<faultcode>s:Client</faultcode>" "<faultstring>UP...
Non-vul
CVE-2017-1000211
static void addClassName(const char *prefix, const char *actual, size_t length) { size_t offset = strlen(prefix); size_t have = (unsigned) (Style_className_end - Style_className); size_t need = (offset + length + 1); if ((have + need) >= Style_className_len) { Style_className_len += 1024 + 2 *...
Non-vul
CVE-2018-14734
static struct ucma_context *ucma_get_ctx_dev(struct ucma_file *file, int id) { struct ucma_context *ctx = ucma_get_ctx(file, id); if (IS_ERR(ctx)) return ctx; if (!ctx->cm_id->device) { ucma_put_ctx(ctx); return ERR_PTR(-EINVAL); } return ctx; }
Non-vul
CVE-2016-6911
static int createFromTiffTiles(TIFF *tif, gdImagePtr im, uint16 bps, uint16 photometric, char has_alpha, char is_bw, int extra) { uint16 planar; int im_width, im_height; int tile_width, tile_height; int x, y, height, width; unsigned char *buffer; if (!TIFFGetField (tif, TIFFTAG_P...
Non-vul
CVE-2018-15854
ExprCreateBoolean(bool set) { EXPR_CREATE(ExprBoolean, expr, EXPR_VALUE, EXPR_TYPE_BOOLEAN); expr->boolean.set = set; return expr; }
Non-vul
CVE-2018-6198
getChar(char *p) { return wc_any_to_ucs(wtf_parse1((wc_uchar **)&p)); }
Non-vul
CVE-2014-5045
struct dentry *user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags) { struct filename *tmp = getname(pathname); struct dentry *res; if (IS_ERR(tmp)) return ERR_CAST(tmp); res = kern_path_create(dfd, tmp->name, path, lookup_flags); putname(tmp); return res; }
Non-vul
CVE-2014-3191
int RenderLayerScrollableArea::pixelSnappedScrollHeight() const { return snapSizeToPixel(scrollHeight(), box().clientTop() + box().y()); }
Non-vul
CVE-2016-5767
void gdImageColorDeallocate (gdImagePtr im, int color) { if (im->trueColor) { return; } /* Mark it open. */ im->open[color] = 1; }
Non-vul
CVE-2017-12893
make_unix_date2(const u_char *date_ptr) { uint32_t x, x2; x = EXTRACT_LE_32BITS(date_ptr); x2 = ((x & 0xFFFF) << 16) | ((x & 0xFFFF0000) >> 16); return int_unix_date(x2); }
Non-vul
CVE-2019-11487
struct page *follow_page(struct vm_area_struct *vma, unsigned long address, unsigned int foll_flags) { struct follow_page_context ctx = { NULL }; struct page *page; page = follow_page_mask(vma, address, foll_flags, &ctx); if (ctx.pgmap) put_dev_pagemap(ctx.pgmap); return page; }
Non-vul
CVE-2016-7799
MagickExport const StringInfo *GetImageProfile(const Image *image, const char *name) { const StringInfo *profile; assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename)...
Non-vul
CVE-2018-20456
static int opretf(RAsm *a, ut8 *data, const Opcode *op) { int l = 0; st32 immediate = 0; if (op->operands[0].type & OT_CONSTANT) { immediate = op->operands[0].immediate * op->operands[0].sign; data[l++] = 0xca; data[l++] = immediate; data[l++] = immediate >> 8; } else if (op->operands[0].type == OT_UNKNOWN)...
Non-vul
CVE-2017-9229
onig_search(regex_t* reg, const UChar* str, const UChar* end, const UChar* start, const UChar* range, OnigRegion* region, OnigOptionType option) { int r; UChar *s, *prev; OnigMatchArg msa; const UChar *orig_start = start; #ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE const UChar *orig_range = ...
Non-vul
CVE-2015-9290
check_type1_format( FT_Stream stream, const char* header_string, size_t header_length ) { FT_Error error; FT_UShort tag; FT_ULong dummy; if ( FT_STREAM_SEEK( 0 ) ) goto Exit; error = read_pfb_tag( stream, &tag, &dummy ); if ...
Non-vul
CVE-2018-16541
gs_main_run_file(gs_main_instance * minst, const char *file_name, int user_errors, int *pexit_code, ref * perror_object) { ref initial_file; int code = gs_main_run_file_open(minst, file_name, &initial_file); if (code < 0) return code; return gs_main_interpret(minst, &initial_file, user_errors, ...
Non-vul
CVE-2016-5185
AutofillPopupSuggestionView::AutofillPopupSuggestionView( AutofillPopupViewNativeViews* popup_view, int line_number, int frontend_id) : AutofillPopupItemView(popup_view, line_number, frontend_id) { SetFocusBehavior(FocusBehavior::ALWAYS); }
Non-vul
CVE-2019-5828
void ServiceWorkerPaymentInstrument::RecordUse() { NOTIMPLEMENTED(); }
Non-vul
CVE-2016-5219
void GLES2DecoderImpl::DoGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params, GLsizei params_size) { Renderbuffer* renderbuffer = GetRende...
Non-vul
CVE-2019-5829
void DownloadManagerImpl::PostInitialization( DownloadInitializationDependency dependency) { if (initialized_) return; switch (dependency) { case DOWNLOAD_INITIALIZATION_DEPENDENCY_HISTORY_DB: history_db_initialized_ = true; break; case DOWNLOAD_INITIALIZATION_DEPENDENCY_IN_PROGRESS_CAC...
Non-vul
CVE-2017-9949
find_file (const char *currpath, grub_fshelp_node_t currroot, grub_fshelp_node_t *currfound, struct grub_fshelp_find_file_closure *c) { #ifndef _MSC_VER char fpath[grub_strlen (currpath) + 1]; #else char *fpath = grub_malloc (grub_strlen (currpath) + 1); #endif char *name = fpath; char *next; enum grub_...
Non-vul
CVE-2018-10199
mrb_io_close(mrb_state *mrb, mrb_value self) { struct mrb_io *fptr; fptr = io_get_open_fptr(mrb, self); fptr_finalize(mrb, fptr, FALSE); return mrb_nil_value(); }
Non-vul
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
-