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
assign_onionskin_to_cpuworker(connection_t *cpuworker, or_circuit_t *circ, char *onionskin) { char qbuf[1]; char tag[TAG_LEN]; time_t now = approx_time(); static time_t last_culled_cpuworkers = 0; /* Checking for wedged cpuworkers requires a linear search over all * connectio...
true
true
false
false
false
1
fixup_loop_exit_succesor (basic_block exit_succ, basic_block latch) { basic_block bb = exit_succ; basic_block bb1 = latch; if (!(bb && bb->rbi->next)) return; if (!bb1) return; if (bb && bb->rbi->next) { basic_block c = ENTRY_BLOCK_PTR->next_bb; while (c->rbi->next != bb) c = c-...
false
false
false
false
false
0
clear_rule_matches(struct xtables_rule_match **matches) { struct xtables_rule_match *matchp, *tmp; for (matchp = *matches; matchp;) { tmp = matchp->next; if (matchp->match->m) { free(matchp->match->m); matchp->match->m = NULL; } if (matchp->match == matchp->match->next) { free(matchp->match); mat...
false
false
false
false
false
0
crash_architecture(struct crash_elf_info *elf_info) { if (xen_present()) return xen_architecture(elf_info); else return elf_info->machine; }
false
false
false
false
false
0
read_any_file(gchar* FileName) { gint filetype = get_type_file_orb(FileName); switch(filetype) { case GABEDIT_TYPEFILE_GAMESS : read_gamess_orbitals(FileName);break; case GABEDIT_TYPEFILE_GAUSSIAN : read_gauss_orbitals(FileName);break; case GABEDIT_TYPEFILE_MOLPRO : read_molpro_orbitals(FileName);break; case...
false
false
false
false
false
0
nv50_mpeg_intr(struct nvkm_engine *mpeg) { struct nvkm_subdev *subdev = &mpeg->subdev; struct nvkm_device *device = subdev->device; u32 stat = nvkm_rd32(device, 0x00b100); u32 type = nvkm_rd32(device, 0x00b230); u32 mthd = nvkm_rd32(device, 0x00b234); u32 data = nvkm_rd32(device, 0x00b238); u32 show = stat; if...
false
false
false
false
false
0
SetDistCriterion(/*IN/OUT*/NJ_t *NJ, int nActive, /*IN/OUT*/besthit_t *hit) { if (hit->i < NJ->nSeq && hit->j < NJ->nSeq) { SeqDist(NJ->profiles[hit->i]->codes, NJ->profiles[hit->j]->codes, NJ->nPos, NJ->distance_matrix, /*OUT*/hit); } else { ProfileDist(NJ->profiles[hit->i], NJ->profiles[hit->j...
false
false
false
false
false
0
asm_sym_scan (GHFunc cb, gpointer userdata) { g_assert (cb); g_assert (hash_table); g_hash_table_foreach (hash_table, cb, userdata); }
false
false
false
false
false
0
path_to_nameidata(const struct path *path, struct nameidata *nd) { if (!(nd->flags & LOOKUP_RCU)) { dput(nd->path.dentry); if (nd->path.mnt != path->mnt) mntput(nd->path.mnt); } nd->path.mnt = path->mnt; nd->path.dentry = path->dentry; }
false
false
false
false
false
0
libmfdata_range_get_values( libmfdata_range_t *range, int *file_io_pool_entry, off64_t *offset, size64_t *size, uint32_t *flags, libcerror_error_t **error ) { static char *function = "libmfdata_range_get_values"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR...
false
false
false
false
false
0
to_ascii (char *where, uintmax_t v, size_t digits, unsigned logbase) { static char codetab[] = "0123456789ABCDEF"; int i = digits; do { where[--i] = codetab[(v & ((1 << logbase) - 1))]; v >>= logbase; } while (i); return v != 0; }
false
false
false
false
false
0
get_username_handler(CMD_DATA *p_cmd, int current_nr, void *p_context) { DYN_DNS_CLIENT *p_self = (DYN_DNS_CLIENT *) p_context; if (p_self == NULL) return RC_INVALID_POINTER; if (sizeof(p_self->info[curr_info].credentials.my_username) < strlen(p_cmd->argv[current_nr])) return RC_DYNDNS_BUFFER_TOO_SMALL; str...
false
true
false
false
false
1
ViewsWithin(IntCoord l, IntCoord b, IntCoord r, IntCoord t) { OverlaySelection* newSel = new OverlaySelection; Iterator i; for (First(i); !Done(i); Next(i)) { OverlayView* view = GetView(i); newSel->Merge(view->ViewsWithin(l, b, r, t)); } return newSel; }
false
false
false
false
false
0
multi_is_builtin_mission() { // int idx; char name[512]; // get the full filename memset(name,0,512); strcpy_s(name,Game_current_mission_filename); cf_add_ext(name, FS_MISSION_FILE_EXT); // if this mission is builtin if(game_find_builtin_mission(name) != NULL){ return 1; } // not builtin return 0; }
false
false
false
false
false
0
read_list_int(ScmPort *port, ScmChar closer, ScmReadContext *ctx, int *has_ref, int start_line) { ScmObj start = SCM_NIL, last = SCM_NIL, item; int c, dot_seen = FALSE, ref_seen = FALSE; for (;;) { c = skipws(port, ctx); if (c == EOF) goto eoferr; if (c =...
false
false
false
false
false
0
jbd2_alloc(size_t size, gfp_t flags) { void *ptr; BUG_ON(size & (size-1)); /* Must be a power of 2 */ flags |= __GFP_REPEAT; if (size == PAGE_SIZE) ptr = (void *)__get_free_pages(flags, 0); else if (size > PAGE_SIZE) { int order = get_order(size); if (order < 3) ptr = (void *)__get_free_pages(flags, or...
false
false
false
false
false
0
MR_max_height_of_tree(Tree *t) #else int MR_max_height_of_tree(t) Tree *t; #endif { int h; int height=0; Tree *u; if (t == NULL) return 0; require (t->token != ALT && t->token != EpToken,"MR_max_height_of_tree ALT or EpToken"); for (u=t; u != NULL; u=u->right) { h=MR_max_height_of...
false
false
false
false
false
0
slapi_sdn_init(Slapi_DN *sdn) { sdn->flag= 0; sdn->udn= NULL; sdn->dn= NULL; sdn->ndn= NULL; sdn->ndn_len=0; if(!counters_created) { sdn_create_counters(); } return sdn; }
false
false
false
false
false
0
each_slice_i(VALUE i, VALUE *memo, int argc, VALUE *argv) { VALUE ary = memo[0]; VALUE v = Qnil; long size = (long)memo[1]; ENUM_WANT_SVALUE(); rb_ary_push(ary, i); if (RARRAY_LEN(ary) == size) { v = rb_yield(ary); memo[0] = rb_ary_new2(size); } return v; }
false
false
false
false
false
0
run_format_code(uchar c) { if (c<FMT_CODE_CNT) agt_textcolor(c-3); }
false
false
false
false
false
0
lgdb_MakeKey(DBT *key, char * module) { int len = 0; char *commonName; commonName = NSSUTIL_ArgGetParamValue("name",module); if (commonName == NULL) { commonName = NSSUTIL_ArgGetParamValue("library",module); } if (commonName == NULL) return SECFailure; len = PORT_Strlen(commonName); ke...
false
false
false
false
false
0
opentoken(const char *file) { /* * b flag is needed for WIN32 environment. Almost unix ignore it. */ if ((ip = fopen(file, "rb")) == NULL) return 0; ib = strbuf_open(MAXBUFLEN); strlimcpy(curfile, file, sizeof(curfile)); sp = cp = lp = NULL; ptok[0] = '\0'; lineno = 0; crflag = cmode = cppmode = ymode = 0; ...
false
false
false
false
true
1
w83795_set_bank(struct i2c_client *client, u8 bank) { struct w83795_data *data = i2c_get_clientdata(client); int err; /* If the same bank is already set, nothing to do */ if ((data->bank & 0x07) == bank) return 0; /* Change to new bank, preserve all other bits */ bank |= data->bank & ~0x07; err = i2c_smbus_w...
false
false
false
false
false
0
backward_search (GeditViewFrame *frame) { GtkTextIter start_at; GtkTextBuffer *buffer; GtkSourceSearchContext *search_context; g_return_if_fail (frame->priv->search_mode == SEARCH); search_context = get_search_context (frame); if (search_context == NULL) { return; } renew_flush_timeout (frame); buffer ...
false
false
false
false
false
0
change_volume(gint volume_change, gint initial_volume) { static gint volume = 0; if (initial_volume >= 0) volume = initial_volume; if (volume < 100 && volume_change > 0) volume+=2; if (volume > 0 && volume_change < 0) volume-=2; xmms2ctrl_volume_set(connection, volume); }
false
false
false
false
false
0
ffgcnt( fitsfile *fptr, /* I - FITS file pointer */ char *value, /* O - continued string value */ int *status) /* IO - error status */ /* Attempt to read the next keyword, returning the string value if it is a continuation of the previous string keywo...
false
false
false
false
false
0
show_current_governor(struct device *dev, struct device_attribute *attr, char *buf) { ssize_t ret; mutex_lock(&cpuidle_lock); if (cpuidle_curr_governor) ret = sprintf(buf, "%s\n", cpuidle_curr_governor->name); else ret = sprintf(buf, "none\n"); mutex_unlock(&cpuidle_lock); return ret; }
false
true
false
false
false
1
php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, int mode TSRMLS_DC) /* {{{ */ { char *p; size_t len, mapped_len; php_stream *stream = php_stream_open_wrapper((char *)filename, "rb", mode, &handle->opened_path); if (stream) { handle->filename = (char*)filename; handle->free_filename ...
false
false
false
false
false
0
CheckIndices(D3DS::Mesh& sMesh) { for (std::vector< D3DS::Face >::iterator i = sMesh.mFaces.begin(); i != sMesh.mFaces.end();++i) { // check whether all indices are in range for (unsigned int a = 0; a < 3;++a) { if ((*i).mIndices[a] >= sMesh.mPositions.size()) { DefaultLogger::get()->warn("3DS: Verte...
false
false
false
false
false
0
files_has_changable_permissions_directory (NemoPropertiesWindow *window) { GList *l; for (l = window->details->target_files; l != NULL; l = l->next) { NemoFile *file; file = NEMO_FILE (l->data); if (nemo_file_is_directory (file) && nemo_file_can_get_permissions (file) && nemo_file_can_set_permissio...
false
false
false
false
false
0
applicable_cut(const problem_rdft *p, planner *plnr, int dim0, int dim1, int dim2, INT *nbuf) { INT n = p->vecsz->dims[dim0].n; INT m = p->vecsz->dims[dim1].n; INT vl, vs; get_transpose_vec(p, dim2, &vl, &vs); *nbuf = 0; /* always small enough to be non-UGLY (?) */ A(MINBUFDIV <= CUT_...
false
false
false
false
false
0
motorate() { float direction = 0.0f; if ( input1 ) direction +=10.0f; if ( input2 ) direction -=10.0f; if ( direction != 0.0f ) { hinge->enableAngularMotor(true, direction, 5000.0f); } }
false
false
false
false
false
0
InputCallbackProc (XtPointer closure, int *source, XtInputId *) { ACE_XtReactor *self = (ACE_XtReactor *) closure; ACE_HANDLE handle = (ACE_HANDLE) *source; // my copy isn't const. ACE_Time_Value zero = ACE_Time_Value::zero; ACE_Select_Reac...
false
false
false
false
false
0
ekg_session_users(ekg_sessionObj * self) { session_t * s = session_find(self->name); PyObject *list; userlist_t *ul; int len = LIST_COUNT2(s->userlist); list = PyList_New(len); len = 0; for (ul = s->userlist; ul; ul = ul->next) { userlist_t * u = ul; PyList_SetItem(list, len, python_build_user(self->name, ...
false
false
false
false
false
0
a_teardown(pTHX_ void *root) { if (!a_initialized) return; #if A_MULTIPLICITY if (aTHX != root) return; #endif { dMY_CXT; # if A_THREADSAFE && A_WORKAROUND_REQUIRE_PROPAGATION ptable_hints_free(MY_CXT.tbl); # endif /* A_THREADSAFE && A_WORKAROUND_REQUIRE_PROPAGATION */ ptable_seen_free(MY_CXT.seen); } ...
false
false
false
false
false
0
camif_hw_set_camera_bus(struct camif_dev *camif) { unsigned int flags = camif->pdata.sensor.flags; u32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); cfg &= ~(CIGCTRL_INVPOLPCLK | CIGCTRL_INVPOLVSYNC | CIGCTRL_INVPOLHREF | CIGCTRL_INVPOLFIELD); if (flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) cfg |= CIGCTRL_INVP...
false
false
false
false
false
0
cancel() { if(ThreadImpl::current() == _impl) throw InvalidOp_Exception(); _impl->cancel(); }
false
false
false
false
false
0
asihpi_tuner_band_query(struct snd_kcontrol *kcontrol, u16 *band_list, u32 len) { u32 h_control = kcontrol->private_value; u16 err = 0; u32 i; for (i = 0; i < len; i++) { err = hpi_tuner_query_band( h_control, i, &band_list[i]); if (err != 0) break; } if (err && (err != HPI_ERROR_INVALID_OBJ_IND...
false
false
false
false
false
0
imap_exec_m( imap_store_t *ctx, struct imap_cmd_cb *cb, const char *fmt, ... ) { va_list ap; struct imap_cmd *cmdp; va_start( ap, fmt ); cmdp = v_issue_imap_cmd( ctx, cb, fmt, ap ); va_end( ap ); if (!cmdp) return DRV_STORE_BAD; switch (get_cmd_result( ctx, cmdp )) { case RESP_BAD: return DRV_STORE_BAD; ca...
false
false
false
false
false
0
get_folder_info_elm (CamelStore *store, const gchar *top, guint32 flags, GCancellable *cancellable, GError **error) { CamelLocalSettings *local_settings; CamelSettings *settings; CamelService *service; CamelFolderInfo *fi = NULL; G...
false
false
false
false
false
0
doInsertItem(const std::string &luid, const std::string &item, bool raw) { // insertItem() is overloaded, need to disambiguate here. return continueInsertItem(boost::bind(static_cast<InsertItemResult (TrackingSyncSource::*)(const std::string &luid, const std::string &item, bool raw)>(&TrackingSyncSource::insert...
false
false
false
false
false
0
af9005_get_pre_vit_err_bit_count(struct dvb_frontend *fe, u32 * pre_err_count, u32 * pre_bit_count) { struct af9005_fe_state *state = fe->demodulator_priv; u8 temp, temp0, temp1, temp2; u32 super_frame_count, x, bits; int ret; ret = af9005_read_register_bits(state->d, xd_r_fec_vtb_ber_rdy, ...
false
false
false
false
false
0
eapol_rx ( struct io_buffer *iob, struct net_device *netdev, const void *ll_source ) { struct eapol_frame *eapol = iob->data; struct eapol_handler *handler; if ( iob_len ( iob ) < EAPOL_HDR_LEN ) { free_iob ( iob ); return -EINVAL; } for_each_table_entry ( handler, EAPOL_HANDLERS ) { if ( handler->...
false
false
false
false
false
0
GetGridVirtualSize(bool add_margin) const { wxSize size; const int numRows = GetNumberRows(); const int numCols = GetNumberCols(); if ((numCols > 0) && (numRows > 0)) { size.x = GetColRight(numCols - 1); size.y = GetRowBottom(numRows - 1); } if (add_margin) { ...
false
false
false
false
false
0
sockaddr_is_loopback(struct sockaddr *sa) { union sockaddr_union *u = (union sockaddr_union *)sa; switch (u->sa.sa_family) { case AF_INET: return ipv4_is_loopback(u->sin.sin_addr); #ifndef NO_IPV6 case AF_INET6: return IN6_IS_ADDR_LOOPBACK(&u->sin6.sin6_addr); #endif case AF_UNIX: return TR...
false
false
false
false
false
0
_dxf_ExDictionaryEndIterate (EXDictionary d) { DICT_UNLOCK (d->locking, d); return (OK); }
false
false
false
false
false
0
gnc_split_register_save_xfrm_cell (BasicCell * cell, gpointer save_data, gpointer user_data) { SRSaveData *sd = save_data; SplitRegister *reg = user_data; Account *old_acc; Account *new_acc; g_return_if_fail (gnc_basic_cell_has_n...
false
false
false
false
false
0
main(int argc, char *argv[]) { FILE *fileptr; unsigned char data[32768]; int sensors; int block_size = 0; int i; int len; int data_offset = 0x64; char* filename; if (argc != 2) { fprintf(stderr, "Usage: decode_tfa tfa.dump.filename\n"); exit(EXIT_FAILURE); } filename = argv[1]; ...
true
true
false
false
true
1
mthca_tavor_init_srq_context(struct mthca_dev *dev, struct mthca_pd *pd, struct mthca_srq *srq, struct mthca_tavor_srq_context *context) { memset(context, 0, sizeof *context); context->wqe_base_ds = cpu_to_be64(1 << (srq->wqe_shift - 4)); context->state_pd = cpu_to_be32(pd->pd_num); context->l...
false
false
false
false
false
0
__pyx_pf_6Cython_8Compiler_8Scanning_16SourceDescriptor_4is_cython_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; in...
false
false
false
false
false
0
ks_set_powermode(struct ks_net *ks, unsigned pwrmode) { unsigned pmecr; netif_dbg(ks, hw, ks->netdev, "setting power mode %d\n", pwrmode); ks_rdreg16(ks, KS_GRR); pmecr = ks_rdreg16(ks, KS_PMECR); pmecr &= ~PMECR_PM_MASK; pmecr |= pwrmode; ks_wrreg16(ks, KS_PMECR, pmecr); }
false
false
false
false
false
0
ir_edit_gains_insert(GxIREdit *ir_edit, int n, int i, double g) { int j = ir_edit->gains_len - n; assert(n >= 0 && j >= 0); ir_edit->gains_len += 1; gain_points *p = (gain_points*)g_malloc(ir_edit->gains_len * sizeof(gain_points)); if (n) { memcpy(p, ir_edit->gains, n * sizeof(gain_points)); } p[n].i = i; p[n...
false
false
false
false
false
0
_writeRawConstant(size_t physicalIndex, const Matrix4& m, size_t elementCount) { // remember, raw content access uses raw float count rather than float4 if (mTransposeMatrices) { Matrix4 t = m.transpose(); _writeRawConstants(physicalIndex, t[0], elementCount > 16 ? 1...
false
false
false
false
false
0
test_index_tests__add_bypath_to_a_bare_repository_returns_EBAREPO(void) { git_repository *bare_repo; git_index *index; cl_git_pass(git_repository_open(&bare_repo, cl_fixture("testrepo.git"))); cl_git_pass(git_repository_index(&index, bare_repo)); cl_assert_equal_i(GIT_EBAREREPO, git_index_add_bypath(index, "test...
false
false
false
false
false
0
CRYPTO_set_mem_debug_functions(void (*m)(void *,int,const char *,int,int), void (*r)(void *,void *,int,const char *,int,int), void (*f)(void *,int), void (*so)(long), long (*go)(void)) { if (!allow_customize_debug) return 0; OPENSSL_init(); malloc_debug_func=m; realloc_debug_func=r; ...
false
false
false
false
false
0
dobyte(BW *bw, unsigned char *s, void *object, int *notify) { long num = calc(bw, s); if (notify) *notify = 1; vsrm(s); if (num >= 0 && !merr) { int tmp = mid; pgoto(bw->cursor, num), bw->cursor->xcol = piscol(bw->cursor); mid = 1; dofollows(); mid = tmp; return 0; } else { if (merr) msgnw(bw-...
false
false
false
false
false
0
slapi_attrlist_size(Slapi_Attr *attrs) { size_t size = 0; Slapi_Attr *a; for (a= attrs; a; a = a->a_next) { if (a->a_type) size += strlen(a->a_type) + 1; size += valueset_size(&a->a_present_values); size += valueset_size(&a->a_deleted_values); /* Don't bother with a_listtofr...
false
false
false
false
false
0
workspace_remove_tag(gchar *filename, TagObject *obj, gpointer foo) { if (obj->tag) { tm_workspace_remove_object(obj->tag, TRUE, TRUE); obj->tag = NULL; } }
false
false
false
false
false
0
build_subst_list (Entity_Id gnat_subtype, Entity_Id gnat_type, bool definition) { vec<subst_pair> gnu_list = vNULL; Entity_Id gnat_discrim; Node_Id gnat_value; for (gnat_discrim = First_Stored_Discriminant (gnat_type), gnat_value = First_Elmt (Stored_Constraint (gnat_subtype)); Present (gnat_disc...
false
false
false
false
false
0
setMaxCycles(int maxCycles) { m_maxCycles = maxCycles; QSettings settings; settings.setValue(MaxCyclesName, maxCycles); }
false
false
false
false
false
0
set_nonblocking_mode(gint fd, gboolean nonblock) { #ifdef G_OS_UNIX gint flags; flags = fcntl(fd, F_GETFL, 0); if (flags < 0) { perror("fcntl"); return -1; } if (nonblock) flags |= O_NONBLOCK; else flags &= ~O_NONBLOCK; return fcntl(fd, F_SETFL, flags); #else return -1; #endif }
false
false
false
false
false
0
JobRestartJobs(void) { Job *job; while (!jobFull && (job = TAILQ_FIRST(&stoppedJobs)) != NULL) { DEBUGF(JOB, ("Job queue is not full. " "Restarting a stopped job.\n")); TAILQ_REMOVE(&stoppedJobs, job, link); JobRestart(job); } }
false
false
false
false
false
0
create(const string& name, int cost, int weight, int material, unsigned long long properties) { addToMap(name, new Key(name, cost, weight, material, properties)); }
false
false
false
false
false
0
PyFFGlyph_Transform(PyObject *self, PyObject *args) { SplineChar *sc = ((PyFF_Glyph *) self)->sc; int i; double m[6]; real t[6]; int flags; PyObject *flagO=NULL; if ( !PyArg_ParseTuple(args,"(dddddd)|O",&m[0], &m[1], &m[2], &m[3], &m[4], &m[5], &flagO) ) return( NULL ); flags = Fla...
false
false
false
false
false
0
universalInst(const Theorem& t1, const vector<Expr>& terms, int quantLevel){ Expr e = t1.getExpr(); const vector<Expr>& boundVars = e.getVars(); if(CHECK_PROOFS) { CHECK_SOUND(boundVars.size() == terms.size(), "Universal instantiation: size of terms array does " "not match quanitfied variables array siz...
false
false
false
false
false
0
saveCurrentImage(const char *filename, OFBool explicitVR) { if (filename==NULL) return EC_IllegalCall; if (pDicomImage==NULL) return EC_IllegalCall; OFCondition result = DVPSHelper::saveFileFormat(filename, pDicomImage, explicitVR); if (result != EC_Normal) DCMPSTAT_LOGFILE("Save image to file f...
false
false
false
false
false
0
read_enabled_file_bool(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { char buf[3]; if (!kprobes_all_disarmed) buf[0] = '1'; else buf[0] = '0'; buf[1] = '\n'; buf[2] = 0x00; return simple_read_from_buffer(user_buf, count, ppos, buf, 2); }
false
false
false
false
false
0
list_keys(struct strtbl *tbl, int one_per_line) { int c = 0; for (; tbl->str; tbl++) { int len = strlen(tbl->str) + 2; if (!one_per_line && c + len >= 80) { fprintf(stderr, "\n"); c = 0; } if (one_per_line) fprintf(stderr, " %s\n", tbl->str); else if (!c) fprintf(stderr, " %s", tbl->str); el...
false
false
false
false
false
0
NC_new_array(type, count, values) nc_type type ; unsigned count ; const void *values ; { NC_array *ret ; size_t memlen ; ret = (NC_array *)HDmalloc(sizeof(NC_array)) ; if( ret == NULL ) goto alloc_err ; ret->type = type ; ret->szof = NC_typelen(type) ; #ifdef DEBUG fprintf(stderr, "NC_new_array(): type=%u, ...
false
false
false
false
true
1
var(const string &n, bool, btp_stack *s) { string name = www2id(n); if (d_array_var->name() == name) { if (s) s->push(static_cast<BaseType *>(this)); return d_array_var; } for (Map_iter i = d_map_vars.begin(); i != d_map_vars.end(); i++) { if ((*i)->name() == name) ...
false
false
false
false
false
0
detect_newlink(unsigned short type, int index, unsigned flags, unsigned change) { struct connman_device *device; enum connman_device_type devtype; DBG("type %d index %d", type, index); devtype = __connman_rtnl_get_device_type(index); switch (devtype) { case CONNMAN_DEVICE_TYPE_UNKNOWN: case CONNMAN_DEVIC...
false
false
false
false
false
0
usb_add_phy(struct usb_phy *x, enum usb_phy_type type) { int ret = 0; unsigned long flags; struct usb_phy *phy; if (x->type != USB_PHY_TYPE_UNDEFINED) { dev_err(x->dev, "not accepting initialized PHY %s\n", x->label); return -EINVAL; } ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier); spin_lock_irqsave(&phy_lock,...
false
false
false
false
false
0
slapi_is_root_suffix(Slapi_DN * dn) { void * node; Slapi_DN * suffix = slapi_get_first_suffix (&node, 1); while (suffix) { if ( slapi_sdn_compare(dn, suffix) == 0 ) return 1; suffix = slapi_get_next_suffix(&node, 1); } return 0 ; }
false
false
false
false
false
0
inf() { static const Vector3 v((float)G3D::finf(), (float)G3D::finf(), (float)G3D::finf()); return v; }
false
false
false
false
false
0
setBoundaryParentIdsAndTags() { // Loop all bodies int index = 0; while (true) { Body* body = getBody(index++); if (body==NULL) break; int layer = -1; // Loop all layer and their elements in the body // while (true) { if (!body->selectLayer(++layer)) break; int be_index =...
false
false
false
false
false
0
run_task(Task *) { bool worked = false; _runs++; if (!_active) return false; _tb.refill(); if (_tb.contains(tb_bandwidth_thresh)) { if (Packet *p = input(0).pull()) { _tb.remove(p->length()); _pushes++; worked = true; output(0).push(p); } else { _failed_pulls++; i...
false
false
false
false
false
0
slotGoalSelected(QListWidgetItem* item) { kDebug(); int row = m_skinDefWidget->goalslist->row(item); Goal* goal = m_onu->goals()[row]; if (goal != 0) { initGoalWidgetWith(goal); } }
false
false
false
false
false
0
expand_command(char *arg,struct session *ses) { char left[BUFFER_SIZE], list[BUFFER_SIZE], cur[BUFFER_SIZE], out[BUFFER_SIZE], *outptr; int i,j; arg = get_arg(arg, left,0,ses); if (!*left) tintin_eprintf(ses,"#Error - Syntax: #expand {dest var} {list}"); else { *(outptr...
false
false
false
false
false
0
count_attribute_slots(const glsl_type *t) { /* From page 31 (page 37 of the PDF) of the GLSL 1.50 spec: * * "A scalar input counts the same amount against this limit as a vec4, * so applications may want to consider packing groups of four * unrelated float inputs together into a vector to...
false
false
false
false
false
0
HeapTupleSatisfiesToast(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer) { if (!(tuple->t_infomask & HEAP_XMIN_COMMITTED)) { if (tuple->t_infomask & HEAP_XMIN_INVALID) return false; if (tuple->t_infomask & HEAP_MOVED_OFF) { TransactionId xvac = HeapTupleHeaderGetXvac(tuple); if (Transac...
false
false
false
false
false
0
x509_from_printable(char *cert) { u_int8_t *buf; int plen, ret; void *foo; plen = (strlen(cert) + 1) / 2; buf = malloc(plen); if (!buf) { log_error("x509_from_printable: malloc (%d) failed", plen); return 0; } ret = hex2raw(cert, buf, plen); if (ret == -1) { free(buf); log_print("x509_from_printable...
false
false
false
false
false
0
qlv_doubleclick(Q3ListViewItem *i) { lcto_active = false; if(!i) return; if(PsiOptions::instance()->getOption("options.ui.contactlist.use-single-click").toBool()) return; ContactViewItem *item = (ContactViewItem *)i; item->contactProfile()->scActionDefault(item); //d->typeAhead = ""; }
false
false
false
false
false
0
_tp_proxy_set_feature_prepared (TpProxy *self, GQuark feature, gboolean succeeded) { g_return_if_fail (TP_IS_PROXY (self)); g_return_if_fail (tp_proxy_get_feature_state (self, feature) != FEATURE_STATE_INVALID); tp_proxy_set_feature_state (self, feature, succeeded ? FEATURE_STATE_READY : FEATU...
false
false
false
false
false
0
atl1_setup_mac_ctrl(struct atl1_adapter *adapter) { u32 value; struct atl1_hw *hw = &adapter->hw; struct net_device *netdev = adapter->netdev; /* Config MAC CTRL Register */ value = MAC_CTRL_TX_EN | MAC_CTRL_RX_EN; /* duplex */ if (FULL_DUPLEX == adapter->link_duplex) value |= MAC_CTRL_DUPLX; /* speed */ val...
false
false
false
false
false
0
natsemi_spi_read_bit ( struct bit_basher *basher, unsigned int bit_id ) { struct natsemi_nic *natsemi = container_of ( basher, struct natsemi_nic, spibit.basher ); uint32_t mask = natsemi_eeprom_bits[bit_id]; uint32_t reg; DBG_DISABLE ( DBGLVL_IO ); reg = readl ( natsemi->regs + NATSEMI_MEAR ); ...
false
false
false
false
false
0
c_pllab(const char *xlabel, const char *ylabel, const char *tlabel) { if (plsc->level < 2) { plabort("pllab: Please set up viewport first"); return; } plmtex("t", (PLFLT) 2.0, (PLFLT) 0.5, (PLFLT) 0.5, tlabel); plmtex("b", (PLFLT) 3.2, (PLFLT) 0.5, (PLFLT) 0.5, xlabel); plmtex("l", (PLFLT) 5.0, (...
false
false
false
false
false
0
engineID_conf(const char *word, char *cptr) { setup_engineID(NULL, cptr); DEBUGMSGTL(("snmpv3", "initialized engineID with: %s\n", cptr)); }
false
false
false
false
false
0
runOnModule(Module &M) override { TypeIdentifierMap.clear(); NamedMDNode *CU_Nodes = M.getNamedMetadata("llvm.dbg.cu"); if (CU_Nodes) TypeIdentifierMap = generateDITypeIdentifierMap(CU_Nodes); StringSet<> Processed; if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) for (unsigned...
false
false
false
false
false
0
os_date (lua_State *L) { const char *s = luaL_optstring(L, 1, "%c"); time_t t = luaL_opt(L, (time_t)luaL_checknumber, 2, time(NULL)); struct tm *stm; if (*s == '!') { /* UTC? */ stm = gmtime(&t); s++; /* skip `!' */ } else stm = localtime(&t); if (stm == NULL) /* invalid date? */ lua_pu...
false
false
false
false
false
0
p_init_widget_values(GapGveAviGlobalParams *gpp) { GapGveAviValues *epp; epp = &gpp->evl; if(epp == NULL) { return; } /* init spnbuttons */ gtk_adjustment_set_value(GTK_ADJUSTMENT(gpp->jpg_quality_spinbutton_adj) , (gfloat)epp->jpeg_quality); gpp->xvid_kbitrate = epp->xvi...
false
false
false
false
false
0
p_calculate_rangesize_pingpong(GapStoryElem *stb_elem) { gdouble fnr; if(stb_elem->step_density <= 0) { /* force leagal step_density value */ stb_elem->step_density = 1.0; } fnr = 2.0 * (gdouble)(ABS(stb_elem->from_frame - stb_elem->to_frame)); fnr = fnr / stb_elem->step_density; return((gint32...
false
false
false
false
false
0
mx_gtk_frame_update_style (MxGtkFrame *frame) { GdkColor *border_color; char *font = NULL; gtk_widget_style_get (GTK_WIDGET (frame), "border-color", &border_color, "title-font", &font, NULL); if (border_color) { frame->border_co...
false
false
false
false
false
0
convert_bgr_to_ycc(uint_8 data[], int pv, int ph) { uint_8 *c = data; int i, j, k; uint_32 t = 0; for (i = 0 ; i < pv ; i++) { for (j = 0 ; j < ph ; j++) { uint_8 B = c[0]; uint_8 G = c[1]; uint_8 R = c[2]; double Y = 0.299 * R + 0.587 * G + 0.114 * B; double Cb = -0.1687 * R - 0.3313 * G + 0...
false
false
false
false
false
0
gd_stack_get_preferred_height_for_width (GtkWidget* widget, gint width, gint *minimum_height, gint *natural_height) { GdStack *stack = GD_STACK (widget); GdStackPrivate *priv = stack->priv; GdStackChildInfo *child_info; GtkWidget *child; gint child_min, child_nat; GList *l; *minimum_hei...
false
false
false
false
false
0
prefs_prepare_cache(void) { gchar *clawsrc = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL); gchar *folderitemrc = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, FOLDERITEM_RC, NULL); gchar *accountrc = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, ACCOUNT_RC, NULL); if (whole_cache == NULL) { whole...
false
false
false
false
false
0
PromoteIntOp_CONCAT_VECTORS(SDNode *N) { DebugLoc dl = N->getDebugLoc(); unsigned NumElems = N->getNumOperands(); EVT RetSclrTy = N->getValueType(0).getVectorElementType(); SmallVector<SDValue, 8> NewOps; NewOps.reserve(NumElems); // For each incoming vector for (unsigned VecIdx = 0; VecIdx != NumElems...
false
false
false
false
false
0
install_check_click_on_desktop (void) { Window desktop_window; GdkWindow *window; Atom user_time_window; Atom user_time; if (!get_desktop_window (&desktop_window)) { return; } /* Access the desktop window. desktop_window is the root window for the * default screen, so we know using gdk_display_get_d...
false
false
false
false
false
0
procmime_parse_content_type(const gchar *content_type, MimeInfo *mimeinfo) { cm_return_if_fail(content_type != NULL); cm_return_if_fail(mimeinfo != NULL); /* RFC 2045, page 13 says that the mime subtype is MANDATORY; * if it's not available we use the default Content-Type */ if ((content_type[0] == '\0') || (str...
false
false
false
false
false
0
singleOptionUsage(FILE * fp, size_t cursor, const struct poptOption * opt, /*@null@*/ const char *translation_domain) /*@globals fileSystem @*/ /*@modifies *fp, fileSystem @*/ { size_t len = 4; char shortStr[2] = { '\0', '\0' }; const char * item = shortStr; const char * argDescrip = getArgDescri...
false
false
false
false
false
0
AddObserver(const EventObject & event, Command *cmd) const { if ( !this->m_SubjectImplementation ) { Self *me = const_cast< Self * >( this ); me->m_SubjectImplementation = new SubjectImplementation; } return this->m_SubjectImplementation->AddObserver(event, cmd); }
false
false
false
false
false
0