functionSource
stringlengths
20
97.4k
CWE-119
bool
2 classes
CWE-120
bool
2 classes
CWE-469
bool
2 classes
CWE-476
bool
2 classes
CWE-other
bool
2 classes
combine
int64
0
1
gtkdnd_gtk_drag_begin(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_) { ScmObj widget_scm; GtkWidget* widget; ScmObj targets_scm; GtkTargetList* targets; ScmObj actions_scm; int actions; ScmObj button_scm; int button; ScmObj event_scm; GdkEvent* event; ScmObj SCM_SUBRARGS[5]; int SCM_i; SCM_ENTER...
false
false
false
false
false
0
cpu_set_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { int size; if (!_PyArg_NoKeywords("cpu_set()", kwargs) || !PyArg_ParseTuple(args, "i:cpu_set", &size)) return NULL; return (PyObject *)make_new_cpu_set(type, size); }
false
false
false
false
false
0
__get_type_user_values (xmlNode *node, MgdSchemaTypeAttr *type_attr) { xmlNode *snode = NULL; xmlNode *user_value = NULL; for (snode = node; snode != NULL; snode = snode->next) { if (snode->type != XML_ELEMENT_NODE) continue; if (g_str_equal (snode->name, TYPE_RW_USERVALUES)) { for (user_value = sno...
false
false
false
false
false
0
fatalError( const QXmlParseException& exception ) { errorProt += i18n( "fatal parsing error: %1 in line %2, column %3" , exception.message() , exception.lineNumber() , exception.columnNumber() ); errorLine = exception.lineNumber(); errorCol = exception.columnNumber(); ret...
false
false
false
false
false
0
print_iteration_stats(FILE * log_fp, fs_mark_stat_t * iteration_stats, unsigned int files_written) { int df_full; /* * Check how full the first directory is after each run */ df_full = get_df_full(child_tasks[0].test_dir); if (verbose_stats) fprintf(log_fp, "%6u %12u %12u %12.1f %16llu %8llu %8llu ...
false
false
false
false
false
0
audio_bus_call (GstBus* /*bus*/, GstMessage *msg, gpointer /*data*/) { switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: log_debug ("End of stream\n"); break; case GST_MESSAGE_ERROR: { gchar *debug; GError *error; gst_message_parse_error (msg, &error, &deb...
false
false
false
false
false
0
__s5pcsis_set_format(struct csis_state *state) { struct v4l2_mbus_framefmt *mf = &state->format; u32 val; v4l2_dbg(1, debug, &state->sd, "fmt: %#x, %d x %d\n", mf->code, mf->width, mf->height); /* Color format */ val = s5pcsis_read(state, S5PCSIS_CONFIG); val = (val & ~S5PCSIS_CFG_FMT_MASK) | state->csis_fmt...
false
false
false
false
false
0
H5F_flush(H5F_t *f, hid_t dxpl_id, hbool_t closing) { herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5F_flush, FAIL) /* Sanity check arguments */ HDassert(f); /* Flush any cached dataset storage raw data */ if(H5D_flush(f, dxpl_id) < 0) /* Push error, but kee...
false
false
false
false
false
0
search(int a, int s, const char *url) { if (a > s) return (-1 - a); int m = (a + s) / 2; // look up the url pointed to by this entry in the index char *i = index[m] * 1000 + urls; /*#ifdef DGDEBUG std::cout << "url list cache: comparing " << i << " to " << url << std::endl; #endif*/ int alen = strlen(i); int...
false
false
false
false
false
0
thread_log(int lvl, int errcode, const char *fmt, ...) { va_list ap; if (lvl > debug) return; pthread_mutex_lock(&log_mutex); fprintf(stderr, "%p ", (void *)pthread_self()); va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); if (errcode) fprintf(stderr, ": %s", strerror(errcode)); fprintf(stderr, "...
false
false
false
false
false
0
sys_check_options(void) { #ifdef IPX_CHANGE /* * Disable the IPX protocol if the support is not present in the kernel. */ char *path; if (ipxcp_protent.enabled_flag) { struct stat stat_buf; if ( ((path = path_to_procfs("/net/ipx/interface")) == NULL && (path = path_to_procfs("/net/ipx_interface")) ==...
false
false
false
false
false
0
el_init(const char *prog, FILE *fin, FILE *fout, FILE *ferr) { EditLine *el = el_malloc(sizeof(*el)); if (el == NULL) return NULL; memset(el, 0, sizeof(EditLine)); el->el_infile = fin; el->el_outfile = fout; el->el_errfile = ferr; el->el_infd = fileno(fin); el->el_outfd = fileno(fout); el->el_errfd = fil...
false
false
false
false
false
0
setText(char *text, int len, char *format) { if (!text) return; gt_clipboard_set_text(_clipboard, format, text, len); }
false
false
false
false
false
0
gst_uvc_h264_src_event (GstPad * pad, GstObject * parent, GstEvent * event) { GstUvcH264Src *self = GST_UVC_H264_SRC (GST_PAD_PARENT (pad)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEGMENT: if (pad == self->vidsrc) { const GstSegment *s; gst_event_parse_segment (event, &s); ...
false
false
false
false
false
0
compiler_class(struct compiler *c, stmt_ty s) { int n, i; PyCodeObject *co; PyObject *str; asdl_seq* decos = s->v.ClassDef.decorator_list; if (!compiler_decorators(c, decos)) return 0; /* push class name on stack, needed by BUILD_CLASS */ ADDOP_O(c, LOAD_CONST, s->v.ClassDef.name, ...
false
false
false
false
false
0
searcharchdir(file, flen) CONST char *file; int flen; { CONST char *cp; int i, len; errno = ENOENT; /* omit arcflist[0] as pseudo ".." */ for (i = 1; i < maxarcf; i++) { if (!(cp = skiparchdir(arcflist[i].name))) continue; if (!file) return(arcflist[(*cp) ? 0 : i].name); if (!*cp) continue; len = getarch...
false
false
false
false
false
0
getCoverage(UT_NumberVector& coverage) { coverage.clear(); UT_return_if_fail(m_pPFont); PangoCoverage * pc = m_pPFont->getPangoCoverage(); if(!pc) return; MyPangoCoverage * mpc = (MyPangoCoverage*) pc; UT_uint32 iMaxChar = mpc->n_blocks * 256; xxx_UT_DEBUGMSG(("GR_CairoGraphics::getCoverage: iMaxChar %d\...
false
false
false
false
false
0
globus_l_callback_activate() { int rc; rc = globus_module_activate(GLOBUS_THREAD_MODULE); if(rc != GLOBUS_SUCCESS) { return rc; } globus_handle_table_init( &globus_l_callback_handle_table, globus_l_callback_info_destructor); glob...
false
false
false
false
false
0
getULEB128(uint32_t *offset_ptr) const { uint64_t result = 0; if (Data.empty()) return 0; unsigned shift = 0; uint32_t offset = *offset_ptr; uint8_t byte = 0; while (isValidOffset(offset)) { byte = Data[offset++]; result |= uint64_t(byte & 0x7f) << shift; shift += 7; if ((byte & 0x80) ...
false
false
false
false
false
0
Jim_SourceCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { int retval; if (argc != 2) { Jim_WrongNumArgs(interp, 1, argv, "fileName"); return JIM_ERR; } retval = Jim_EvalFile(interp, Jim_String(argv[1])); if (retval == JIM_RETURN) return JIM_OK; return r...
false
false
false
false
false
0
readPoint(char* s) { double p[3]; istrstream strline(s); for (int i = 0; i < 3; i++) { eat_white(strline); strline.getline(read_buffer, 80, ' '); p[i] = (double) atof(read_buffer); p[i] *= model->unit.conv[i]; } GcPoint* point = new GcPoint(p); return point; }
false
false
false
false
false
0
fore200e_init_rx_queue(struct fore200e *fore200e) { struct host_rxq* rxq = &fore200e->host_rxq; struct cp_rxq_entry __iomem * cp_entry; int i; DPRINTK(2, "receive queue is being initialized\n"); /* allocate and align the array of status words */ if (fore200e->bus->dma_chunk_alloc(fore200e...
false
false
false
false
false
0
ftpgetreply(fp, sp) XFILE *fp; char **sp; { char *cp, *buf; ALLOC_T len, size; int i, n, code; if (!(buf = ftprecv(fp))) return(-1); for (i = n = 0; i < 3; i++) { if (!Xisdigit(buf[i])) break; n *= 10; n += buf[i] - '0'; } code = n; if (i < 3) { Xfree(buf); return(seterrno(EINVAL)); } if (buf[3] =...
false
false
false
false
false
0
emit_pci_data_block(void) { pci_data_t *pci_data_blk; u32 class_id = dpop(); u16 dev_id = dpop(); u16 vend_id = dpop(); pci_data_blk_ob_off = opc; pci_data_blk = (pci_data_t *)(ostart + pci_data_blk_ob_off); EMIT_STRUCT(pci_data_t); BIG_ENDIAN_LONG_STORE(pci_data_blk->signature , P...
false
false
false
false
false
0
_gfxop_shiftify(int c) { char shifted_numbers[] = ")!@#$%^&*("; if (c < 256) { c = toupper((char)c); if (c >= 'A' && c <= 'Z') return c; if (c >= '0' && c <= '9') return shifted_numbers[c-'0']; switch (c) { case SCI_K_TAB: return SCI_K_SHIFT_TAB; case ']': return '}'; case '[': return '{'; ...
false
false
false
false
false
0
abraca_volume_button_construct (GType object_type, AbracaClient* c) { AbracaVolumeButton * self = NULL; AbracaClient* _tmp0_; AbracaClient* _tmp1_; GtkAdjustment* _tmp2_; GtkAdjustment* _tmp3_; GtkAdjustment* _tmp4_; GtkAdjustment* _tmp5_; GtkAdjustment* _tmp6_; GtkAdjustment* _tmp7_; AbracaClient* _tmp8_; g...
false
false
false
false
false
0
setCallbackFunction(CmtCallbackSelector tp, int32_t instance, CmtCallbackFunction func, void* param) { if (tp == CMT_CALLBACK_ONBYTESRECEIVED) { m_onBytesReceived = func; m_onBytesReceivedInstance = instance; m_onBytesReceivedParam = param; return m_lastResult = XRV_OK; } return m_lastResult = XRV_INVALIDPA...
false
false
false
false
false
0
row_create_index_for_mysql( /*=======================*/ dict_index_t* index, /*!< in, own: index definition (will be freed) */ trx_t* trx, /*!< in: transaction handle */ const ulint* field_lengths) /*!< in: if not NULL, must contain dict_index_get_n_fields(index) actual field lengths for the i...
false
false
false
false
false
0
sh_missing_entries_create (call_frame_t *frame, xlator_t *this) { afr_local_t *local = NULL; afr_self_heal_t *sh = NULL; int type = 0; struct iatt *buf = NULL; struct iatt *postparent = NULL; local = frame->local; sh = &local->self_heal; ...
false
false
false
false
false
0
bondEnlarge(int bN) { double r; std::vector<int> list(listarSize()); int cHA1, cH1, cH2, n; bool test; double xc, yc, xc1, yc1; int i; for (i=0; i<nAtoms(); i++) list[i]=i; cHA1=getBond(bN)->at[0]; test=makeFragment(list,cHA1,getBond(bN)->at[1]); if (list[0] == getBond(bN)->at[0...
false
false
false
false
false
0
time_pop(tp) void *tp; /* actually (struct timeval *) */ { prev_timeval.tv_usec -= ((struct timeval *)tp)->tv_usec; prev_timeval.tv_sec -= ((struct timeval *)tp)->tv_sec; if (prev_timeval.tv_usec < 0) { prev_timeval.tv_usec += 1000000; --prev_timeval.tv_sec; } }
false
false
false
false
false
0
find_best_token(void) { int i, best, bestprofit; bestprofit=-10000; best = 0; for (i = 0; i < 0x10000; i++) { if (token_profit[i] > bestprofit) { best = i; bestprofit = token_profit[i]; } } return best; }
false
false
false
false
false
0
insert(Dict_t * dict, Agraph_t * g, Agobj_t * obj, Agsym_t * optsym) { pending_cb_t *handle; handle = agalloc(agraphof(obj), sizeof(pending_cb_t)); handle->obj = obj; handle->key = genkey(obj); handle->g = g; if (optsym) { handle->symlist = (symlist_t *) agalloc(handle->g, sizeof(sy...
false
false
false
false
false
0
loadEntries( const KConfigGroup& _config) { Q_D(KRecentFilesAction); clearEntries(); QString key; QString value; QString nameKey; QString nameValue; QString title; KUrl url; KConfigGroup cg = _config; if ( cg.name().isEmpty()) cg = KConfigGro...
false
false
false
false
false
0
trim(wstring s) { if (s.length()==0) return L""; for (unsigned int i=0; i<(s.length()-1); i++) { if ((s.at(i)==L' ')&&(s.at(i+1)==L' ')) { s.erase(i,1); i--; } } if ((s.length()>0)&&(s.at(s.length()-1)==L' ')) s.erase(s.length()-1,1); if ((s.l...
false
false
false
false
false
0
ast_pthread_create_detached_stack(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data, size_t stacksize, const char *file, const char *caller, int line, const char *start_fn) { unsigned char attr_destroy = 0; int res; if (!attr) { attr = ast_alloca(sizeof(*attr)); ...
false
false
false
false
false
0
OnTrebleSlider(wxCommandEvent & WXUNUSED(event)) { mTrebleT->SetValue(wxString::Format(wxT("%.1f"), mTrebleS->GetValue() * 0.1)); UpdateUI(); }
false
false
false
false
false
0
merge_include_chains (cpp_reader *pfile, int verbose) { /* Join the SYSTEM and AFTER chains. Remove duplicates in the resulting SYSTEM chain. */ if (heads[SYSTEM]) tails[SYSTEM]->next = heads[AFTER]; else heads[SYSTEM] = heads[AFTER]; heads[SYSTEM] = remove_duplicates (pfile, heads[SYSTEM], 0, 0,...
false
false
false
false
false
0
authchallenged(uint id, const char *val) { client *cl = findauth(id); if(!cl) return; sendf(cl->clientnum, 1, "risis", SV_AUTHCHAL, "", id, val); }
false
false
false
false
false
0
dsimple_lexize(PG_FUNCTION_ARGS) { DictSimple *d = (DictSimple *) PG_GETARG_POINTER(0); char *in = (char *) PG_GETARG_POINTER(1); int32 len = PG_GETARG_INT32(2); char *txt; TSLexeme *res; txt = lowerstr_with_len(in, len); if (*txt == '\0' || searchstoplist(&(d->stoplist), txt)) { /* reject as stopw...
false
false
false
false
false
0
cprop_into_stmt (gimple stmt) { use_operand_p op_p; ssa_op_iter iter; FOR_EACH_SSA_USE_OPERAND (op_p, stmt, iter, SSA_OP_USE) cprop_operand (stmt, op_p); }
false
false
false
false
false
0
InitTradeWithCharacter(struct npc *npc) { #define NUMBER_OF_ITEMS_IN_SHOP 17 item *BuyPointerList[MAX_ITEMS_IN_INVENTORY]; item *TuxItemsList[MAX_ITEMS_IN_INVENTORY]; int i; int ItemSelected = 0; shop_decision ShopOrder; int NumberOfItemsInTuxRow = 0; struct dynarray *sold_items; sold_items = npc_get_inventor...
false
false
false
false
false
0
gln_arbitrate_request_timer_events (glui32 millisecs) { if (millisecs > 0) { /* Setting timer events; suspend graphics if currently active. */ if (gln_graphics_active) { gln_graphics_suspended = TRUE; gln_graphics_stop (); } /* Set timer events as requested. ...
false
false
false
false
false
0
sha1_update( sha1_context *ctx, unsigned char *input, int ilen ) { int fill; unsigned long left; if( ilen <= 0 ) return; left = ctx->total[0] & 0x3F; fill = 64 - left; ctx->total[0] += ilen; ctx->total[0] &= 0xFFFFFFFF; if( ctx->total[0] < (unsigned long) ilen ) ctx->total[1]++; if( left && ilen >= fi...
false
false
false
false
true
1
receiveDTR(DataStaging::DTR_ptr dtr) { // Take DTR out of processing map and add to finished jobs logger.msg(Arc::INFO, "DTR %s finished with state %s", dtr->get_id(), dtr->get_status().str()); std::string jobid (dtr->get_parent_job_id()); // Delete LogStreams and LogDestinations dtr->get_logger()...
false
false
false
false
false
0
_mirrored_text_import(struct lv_segment *seg, const struct dm_config_node *sn, struct dm_hash_table *pv_hash) { const struct dm_config_value *cv; const char *logname = NULL; if (dm_config_has_node(sn, "extents_moved")) { if (dm_config_get_uint32(sn, "extents_moved", &seg->extents_copied)) seg->sta...
false
false
false
false
false
0
atm_print(u_int vpi, u_int vci, u_int traftype, const u_char *p, u_int length, u_int caplen) { if (eflag) printf("VPI:%u VCI:%u ", vpi, vci); if (vpi == 0) { switch (vci) { case VCI_PPC: sig_print(p, caplen); return; case VCI_BCC: printf("broadcast sig: "); return; case VCI_OAMF4SC: /* f...
false
false
false
false
false
0
gkrellm_cpu_set_number_of_cpus(gint n) { CpuMon *cpu; GList *list; gint i; n_cpus = n; if (instance_list && g_list_length(instance_list) != n) { instance_list = NULL; fprintf(stderr, "Bad sysdep cpu instance list length.\n"); } if (!instance_list) for (i = 0; i < n; ++i) instance_list = g_list_appe...
false
false
false
false
false
0
ordInsercion(int elementos[], int nElementos, Informa f, TEstado* estado) { int i, j; boolean fin=falso; for (i=1; i < nElementos && !fin; i++) { elementos[nElementos] = elementos[i]; j = i; while ((j > 0) && (elementos[j-1] > elementos[nElementos]) && !fin) { estado->deElemento=j-1; ...
false
false
false
false
false
0
load(ifstream & fp) { uint rd = loadValue<uint>(fp); if(rd!=WT_NODE_INTERNAL_HDR) return NULL; wt_node_internal * ret = new wt_node_internal(); ret->bitmap = BitSequence::load(fp); ret->left_child = wt_node::load(fp); ret->right_child = wt_node::load(fp); return r...
false
false
false
false
false
0
alSource3i(ALuint source, ALenum eParam, ALint lValue1, ALint lValue2, ALint lValue3) { ALCcontext *pContext; ALsource *Source; switch(eParam) { case AL_POSITION: case AL_VELOCITY: case AL_DIRECTION: alSource3f(source, eParam, (ALfloat)lValue1, (ALfloat)lValue2, (A...
false
false
false
false
false
0
bcom_check_link(struct skge_hw *hw, int port) { struct net_device *dev = hw->dev[port]; struct skge_port *skge = netdev_priv(dev); u16 status; /* read twice because of latch */ xm_phy_read(hw, port, PHY_BCOM_STAT); status = xm_phy_read(hw, port, PHY_BCOM_STAT); if ((status & PHY_ST_LSYNC) == 0) { xm_link_dow...
false
false
false
false
false
0
show_colorsel(GtkWidget *widget,gpointer *data){ GdkColor color; const gchar *text=NULL; LOG(LOG_DEBUG, "IN : show_colorsel()"); color_no = (gint)(intptr_t)data; colorsel_dlg = gtk_color_selection_dialog_new(_("Choose Color")); g_signal_connect (G_OBJECT(colorsel_dlg), "delete_event", G_CALLBACK(dele...
false
false
false
false
false
0
GC_check_heap_block(struct hblk *hbp, word dummy) { struct hblkhdr * hhdr = HDR(hbp); size_t sz = hhdr -> hb_sz; size_t bit_no; char *p, *plim; p = hbp->hb_body; if (sz > MAXOBJBYTES) { plim = p; } else { plim = hbp->hb_body + HBLKSIZE - sz; } /* go through all words in ...
false
false
false
false
false
0
image_range_exists() { return ((_image0 != 0.0 || _image255 != 0.0) ? true : false); }
false
false
false
false
false
0
ParseBack(char **ss) { char *opts[] = { "icon", NULL }; char *t, *s = *ss; int r = 0; while (*s && *s != ')') { s = trimleft(s); if (*s == ',') { s++; continue; } switch (GetTokenIndex(s, opts, -1, &s)) { case 0: /* Icon */ r = 1; fprintf(stderr, "%s: Back(Icon) not supported ...
false
false
false
false
false
0
selectRide(const QModelIndex &index) { QModelIndex fileIndex = tableView->model()->index(index.row(), 2, index.parent()); // column 2 for filename ? QString filename = tableView->model()->data(fileIndex, Qt::DisplayRole).toString(); main->selectRideFile(filename); }
false
false
false
false
false
0
gst_element_add_pad (GstElement * element, GstPad * pad) { gchar *pad_name; gboolean flushing; g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE); g_return_val_if_fail (GST_IS_PAD (pad), FALSE); /* locking pad to look at the name */ GST_OBJECT_LOCK (pad); pad_name = g_strdup (GST_PAD_NAME (pad)); ...
false
false
false
false
false
0
aisc_server_save_token(FILE *fd,char *buffer, int maxsize){ char *p; int c; putc('{',fd); p = buffer; while(maxsize-->0){ c = *(p++);if (!c) break; if (c=='}' || c == '\\') putc('\\',fd); putc(c,fd); } putc('}',fd); return 0; }
false
false
false
false
false
0
drain_mana(int m_idx, int rlev, bool seen) { monster_type *m_ptr = cave_monster(cave, m_idx); int r1; char m_name[80]; /* Get the monster name (or "it") */ monster_desc(m_name, sizeof(m_name), m_ptr, 0x00); if (!p_ptr->csp) { msg("The draining fails."); if (OPT(birth_ai_learn) && !(m_ptr->smart & SM_IMM_MAN...
true
true
false
false
false
1
removeFormData(QWebFrame *frame, bool recursive) { if (frame) removeFormDataFromCache(formsWithCachedData(frame, recursive)); }
false
false
false
false
false
0
sqliteVdbeCleanupCursor(Cursor *pCx){ if( pCx->pCursor ){ sqliteBtreeCloseCursor(pCx->pCursor); } if( pCx->pBt ){ sqliteBtreeClose(pCx->pBt); } sqliteFree(pCx->pData); memset(pCx, 0, sizeof(Cursor)); }
false
false
false
false
false
0
journal_begin(struct reiserfs_transaction_handle *th, struct super_block *sb, unsigned long nblocks) { struct reiserfs_transaction_handle *cur_th = current->journal_info; int ret; th->t_handle_save = NULL; if (cur_th) { /* we are nesting into the current transaction */ if (cur_th->t_super == sb) { BUG_O...
false
true
false
false
false
1
unit_delete(int c[], int n) { int i, j, l, a, v, m; m = n; for (i = 0; i < m; i++) { l = c[i]; a = abs(l); v = Units[a]; if ((v == -1 && l > 0) || (v == 1 && l < 0)) { for (j = i; j < m-1; j++) c[j] = c[j+1]; m--; i--; } } return(m); }
false
false
false
false
false
0
GrowMLUpool(cmsMLU* mlu) { cmsUInt32Number size; void *NewPtr; // Sanity check if (mlu == NULL) return FALSE; if (mlu ->PoolSize == 0) size = 256; else size = mlu ->PoolSize * 2; // Check for overflow if (size < mlu ->PoolSize) return FALSE; // Reallocate the pool NewPtr = _cmsRealloc(mlu ->ContextID...
false
false
false
false
false
0
utt_init(cst_utterance *u, cst_voice *vox) { feat_copy_into(vox->features,u->features); feat_copy_into(vox->ffunctions,u->ffunctions); if (vox->utt_init) vox->utt_init(u, vox); return u; }
false
false
false
false
false
0
pr_argument(FILE *fp, Operand *opt) { Operand *opt1; int i = 0; if (opt != NULL) { putc('(', fp); opt1 = opt->arg; while (opt1 != NULL) { pr_operand(fp, opt1); if (opt1->next != NULL) putc(',', fp); i++; opt1 = opt1->next; } putc(')', fp); } }
false
false
false
false
false
0
execute(Environment &env) const { real val = 0; Expressions::const_iterator it(vec.begin()), e(vec.end()); for (; it != e; ++it) { val = (*it)->execute(env); } return val; }
false
false
false
false
false
0
onexpose(GtkWidget *widget, GdkEventExpose *event, void *data) { int x0 = event->area.x; int y0 = event->area.y; int w = event->area.width; int h = event->area.height; if (x0 < 0) x0 = 0; if (y0 < 0) y0 = 0; if (x0 + w > gli_image_w) w = gli_image_w - x0; if (y0 + h > gli_imag...
false
false
false
false
false
0
getData( const KUrl &url, QObject *receiver, const char *method, Qt::ConnectionType type ) { if( !url.isValid() ) { const QMetaObject *mo = receiver->metaObject(); debug() << QString( "Error: URL '%1' is invalid (from %2)" ).arg( url.url() ).arg( mo->className...
false
false
false
false
false
0
export_done (SeahorseOperation *op, SeahorseTransferOperation *top) { SeahorseTransferOperationPrivate *pv = SEAHORSE_TRANSFER_OPERATION_GET_PRIVATE (top); GError *err = NULL; gboolean done = FALSE; GInputStream *input; gpointer data; gsize size; g_assert (op == pv->operation); DEBU...
false
false
false
false
false
0
correct_string(char *str) { int len=strlen(str); int i; for(i=0; i<len; i++) { if (str[i]<32 && str[i]>0) { str[i]='\0'; break; } } str[len]='\0'; /* prevent buffer overflow */ }
false
false
false
false
false
0
_archive_read_disk_open(struct archive *_a, const char *pathname) { struct archive_read_disk *a = (struct archive_read_disk *)_a; if (a->tree != NULL) a->tree = tree_reopen(a->tree, pathname, a->restore_time); else a->tree = tree_open(pathname, a->symlink_mode, a->restore_time); if (a->tree == NULL) { ...
false
false
false
false
false
0
saturation (const gfloat *in) { float rgbMax = MAX (in[0], MAX(in[1], in[2])); float rgbMin = MIN (in[0], MIN(in[1], in[2])); if (rgbMax > 0) return 1 - rgbMin / rgbMax; else return 0; }
false
false
false
false
false
0
on_branches_list_view_drag_data_get (GtkWidget *branches_list_view, GdkDragContext *drag_context, GtkSelectionData *data, guint info, guint time, GitBranchesPane *self) { ...
false
false
false
false
false
0
parse_public_key(struct ntb_load_keys_data *data, int line_number, const char *value, uint8_t *result) { ssize_t key_length; key_length = ntb_base58_decode(value, strlen(value), ...
false
false
false
false
false
0
execute() { m_commandlist[m_state]->execute(); if (++m_state >= m_commandlist.size()) m_state = 0; }
false
false
false
false
false
0
_evas_gl_common_version_check() { char *version; char *tmp; char *tmp2; int major; int minor; /* * glGetString returns a string describing the current GL connection. * GL_VERSION is used to get the version of the connection */ version = (char *)glGetString(GL_VERSION); /* * OpengL E...
false
false
false
false
true
1
part_recurse(Term top, Term t, Topform demod, int target, int direction, int *sequence, Ilist *ipos) { if (VARIABLE(t)) return t; else { int i; for (i = 0; i < ARITY(t) && *ipos == NULL; i++) { ARG(t,i) = part_recurse(top, ARG(t,i), demod, target, direction, sequence, ipos); } ...
false
false
false
false
false
0
vmci_dbell_register_notification_bitmap(u32 bitmap_ppn) { int result; struct vmci_notify_bm_set_msg bitmap_set_msg; bitmap_set_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, VMCI_SET_NOTIFY_BITMAP); bitmap_set_msg.hdr.src = VMCI_ANON_SRC_HANDLE; bitmap_set_msg.hdr.payload_size = sizeof(bitmap_...
false
false
false
false
false
0
selfpipe_set(struct selfpipe *sp) { pthread_mutex_lock(&sp->lock); if (!sp->set) { while (write(sp->pipe[1], "a", 1) < 1); sp->set=1; pthread_cond_broadcast(&sp->cond); } pthread_mutex_unlock(&sp->lock); }
false
false
false
false
false
0
inherit(const DiagnosticContextStack& stack) { DiagnosticContextStack* ptr = getPtr(); DiagnosticContextStack (stack).swap (*ptr); }
false
false
false
false
false
0
writeauthflush(int fd) { if (writeptr > buf) { if (writeauth(fd, buf, writeptr - buf)) return (-1); } writeptr=buf; writeleft=sizeof(buf); return (0); }
false
false
false
false
false
0
do_alloc_basic_block(struct compilation_unit *b_parent, unsigned long start, unsigned long end) { struct basic_block *bb; bb = malloc(sizeof(*bb)); if (!bb) return NULL; memset(bb, 0, sizeof(*bb)); bb->mimic_stack = alloc_stack(); if (!bb->mimic_stack) { free(bb); return NULL; } INIT_LIST_HEAD(&bb->stmt...
false
false
false
false
false
0
PKIX_PL_Cert_SetAsTrustAnchor(PKIX_PL_Cert *cert, void *plContext) { PKIX_ENTER(CERT, "PKIX_PL_Cert_SetAsTrustAnchor"); PKIX_NULLCHECK_ONE(cert); cert->isUserTrustAnchor = PKIX_TRUE; PKIX_RETURN(CERT); }
false
false
false
false
false
0
c_ekkrwcs(const EKKfactinfo *fact,double *dluval, int *hcoli, int *mrstrt, const int *hinrow, const EKKHlink *mwork, int nfirst) { #if 0 int *hcoli = fact->xecadr; double *dluval = fact->xeeadr; double *dvalpv = fact->kw3adr; int *mrstrt = fact->xrsadr; int *hrowi = fact->xeradr; int *mcstrt = fac...
false
false
false
false
false
0
elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) { ELM_SCROLLABLE_CHECK(obj); s_iface->region_bring_in(obj, x, y, w, h); }
false
false
false
false
false
0
align_pos( const int alignment ) { if( alignment > 1 ) { const int disp = alignment - ( pos_ % alignment ); if( disp < alignment && disp < size_ ) { pos_ += disp; size_ -= disp; } } }
false
false
false
false
false
0
method_77(const int *account, int *weight) { number2Array("0000054321", weight); if (0 == algo03(11, weight, false, account, 0, 9)) return AccountNumberCheck::OK; weight[8] = 4; weight[9] = 5; if (0 == algo03(11, weight, false, account, 0, 9)) return AccountNumberCheck::OK; return AccountNumberChe...
false
false
false
false
false
0
setDeviceVariable(const std::string& dev, const std::string& name, const std::string& value)throw(NutException) { std::string query = "SET VAR " + dev + " " + name + " " + escape(value); detectError(sendQuery(query)); }
false
false
false
false
false
0
gnc_currency_edit_get_currency (GNCCurrencyEdit *gce) { gnc_commodity *commodity; const char *fullname; char *mnemonic, *name; GtkTreeModel *model; GtkTreeIter iter; GValue value = { 0 }; g_return_val_if_fail(gce != NULL, NULL); g_return_val_if_fail(GNC_IS_CURRENCY_EDIT(gce), NULL); ...
false
false
false
false
false
0
secfile_lookup_enum_default_data(const struct section_file *secfile, int defval, bool bitwise, secfile_enum_name_data_fn_t name_fn, secfile_data_t data, const char *path, ....
false
false
false
false
false
0
lj_meta_call(lua_State *L, TValue *func, TValue *top) { cTValue *mo = lj_meta_lookup(L, func, MM_call); TValue *p; if (!tvisfunc(mo)) lj_err_optype_call(L, func); for (p = top; p > func; p--) copyTV(L, p, p-1); copyTV(L, func, mo); }
false
false
false
false
false
0
test_get_first_bit(MY_BITMAP *map, uint bitsize) { uint i, test_bit= 0; uint no_loops= bitsize > 128 ? 128 : bitsize; bitmap_set_all(map); for (i=0; i < bitsize; i++) bitmap_clear_bit(map, i); if (bitmap_get_first_set(map) != MY_BIT_NONE) goto error1; bitmap_clear_all(map); for (i=0; i < bitsize;...
false
false
false
false
false
0
GdipCreateLineBrushI (GDIPCONST GpPoint *point1, GDIPCONST GpPoint *point2, ARGB color1, ARGB color2, GpWrapMode wrapMode, GpLineGradient **lineGradient) { GpPointF p1, p2; if (!point1 || !point2 || !lineGradient) return InvalidParameter; p1.X = point1->X; p1.Y = point1->Y; p2.X = point2->X; p2.Y = point2->Y;...
false
false
false
false
false
0
srp_rport_reconnect(struct srp_rport *rport) { struct srp_target_port *target = rport->lld_data; struct srp_rdma_ch *ch; int i, j, ret = 0; bool multich = false; srp_disconnect_target(target); if (target->state == SRP_TARGET_SCANNING) return -ENODEV; /* * Now get a new local CM ID so that we avoid confusi...
false
false
false
false
false
0
buf_linedir (struct Buf *buf, const char* filename, int lineno) { char *t, *fmt = "#line %d \"%s\"\n"; size_t tsz; t = flex_alloc (tsz = strlen (fmt) + strlen (filename) + (int)(1 + log10(lineno>=0?lineno:-lineno)) + 1); snprintf (t, tsz, fmt, lineno, filename); buf = buf_strappend (buf, t); ...
false
false
false
false
false
0
get_key_info(Key_Entry *key, int save_mode) { /* bind buf is the maximum space allowed for a * binded command. We will add additional datas to * it so we increase by MAX_BUF*/ static char buf[MAX_BUF+sizeof(bind_buf)]; char buff[MAX_BUF]; int bi=0; if ((key->flags & KEYF_MODIFIERS) == KE...
false
false
false
false
false
0
L16() {register object *base=vs_base; register object *sup=base+VM15; VC15 vs_check; vs_top=sup; goto TTL; TTL:; if(((((object)VV[13])->s.s_dbind))==Cnil){ goto T240;} {frame_ptr fr; fr=frs_sch_catch(((object)VV[13])); if(fr==NULL) FEerror("The tag ~s is undefined.",1,((object)VV[13])); base[0]= Cnil; vs_top...
false
false
false
false
false
0
glusterd_op_ac_local_unlock (glusterd_op_sm_event_t *event, void *ctx) { int ret = 0; uuid_t *originator = NULL; GF_ASSERT (event); GF_ASSERT (ctx); originator = (uuid_t *) ctx; ret = glusterd_unlock (*originator); gf_log (THIS...
false
false
false
false
false
0