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
write_start_end_tag_with_content_as_list (GOutputStream *os, const gchar *tag_name, GList *content_list) { GList *iter = NULL; GString *content = g_string_new (""); gchar *cur_word = NULL; for (iter = g_list_first (content_list); i...
false
false
false
false
false
0
eina_rectangle_pool_release(Eina_Rectangle *rect) { Eina_Rectangle_Alloc *era = ((Eina_Rectangle_Alloc *)rect) - 1; Eina_Rectangle *r; EINA_SAFETY_ON_NULL_RETURN(rect); EINA_MAGIC_CHECK_RECTANGLE_ALLOC(era); EINA_MAGIC_CHECK_RECTANGLE_POOL(era->pool); DBG("rect=%p pool=%p, size=(%d, %d), references...
false
false
false
false
false
0
e_contact_photo_set_inlined (EContactPhoto *photo, const guchar *data, gsize len) { g_return_if_fail (photo != NULL); g_return_if_fail (photo->type == E_CONTACT_PHOTO_TYPE_INLINED); photo->data.inlined.data = g_malloc (len); memcpy (photo->data.inlined.data...
false
true
false
false
false
1
rl_cleanup_after_signal () { _rl_clean_up_for_exit (); if (rl_deprep_term_function) (*rl_deprep_term_function) (); rl_clear_pending_input (); rl_clear_signals (); }
false
false
false
false
false
0
aty_resume_chip(struct fb_info *info) { struct atyfb_par *par = info->par; aty_st_le32(MEM_CNTL, par->mem_cntl, par); if (par->pll_ops->resume_pll) par->pll_ops->resume_pll(info, &par->pll); if (par->aux_start) aty_st_le32(BUS_CNTL, aty_ld_le32(BUS_CNTL, par) | BUS_APER_REG_DIS, par); }
false
false
false
false
false
0
show_commit(struct commit *commit) { graph_show_commit(revs.graph); if (show_timestamp) printf("%lu ", commit->date); if (header_prefix) fputs(header_prefix, stdout); if (!revs.graph) { if (commit->object.flags & BOUNDARY) putchar('-'); else if (commit->object.flags & UNINTERESTING) putchar('^'); ...
false
false
false
false
false
0
metro_vram_w(offs_t offset,data16_t data,data16_t mem_mask,int layer,data16_t *vram) { data16_t olddata = vram[offset]; data16_t newdata = COMBINE_DATA(&vram[offset]); if ( newdata != olddata ) { /* Account for the window */ int col = (offset % BIG_NX) - ((metro_window[layer * 2 + 1] / 8) % BIG_NX); ...
false
false
false
false
false
0
atom_list() const { Atom_list list; for ( int a = 0; a < children.size(); a++ ) list.push_back( Atom( children[a] ) ); return list; }
false
false
false
false
false
0
canPutStore( const KCardPile * pile, const QList<KCard*> & cards ) const { int freeCells = 0; for ( int i = 0; i < 4; ++i ) if ( freecell[i]->isEmpty() ) ++freeCells; int freeStores = 0; for ( int i = 0; i < 8; ++i ) if ( store[i]->isEmpty() && store[i] != pile ) ...
false
false
false
false
false
0
cpl_polynomial_copy(cpl_polynomial * out, const cpl_polynomial * in) { /* Check input */ cpl_ensure_code(out != NULL, CPL_ERROR_NULL_INPUT); cpl_ensure_code(in != NULL, CPL_ERROR_NULL_INPUT); cpl_ensure_code(in != out, CPL_ERROR_INCOMPATIBLE_INPUT); /* Verif...
false
true
false
false
false
1
zotlmlist(LMLIST *lm) { LMLIST *tp; while(lm){ if(lm->fname) free(lm->fname); if(lm->dir) free(lm->dir); tp = lm; lm = lm->next; tp->next = NULL; free((char *) tp); } }
false
false
false
false
false
0
_midgard_workspace_manager_dispose (GObject *object) { MidgardWorkspaceManager *self = (MidgardWorkspaceManager *)object; if (self->priv->mgd) g_object_ref (self->priv->mgd); self->priv->mgd = NULL; parent_class->dispose(object); }
false
false
false
false
false
0
evg_user_fill_const_a(s32 y, s32 count, EVG_Span *spans, EVGSurface *surf) { u32 col, a, col_no_a; s32 i; a = (surf->fill_col>>24)&0xFF; col_no_a = surf->fill_col | 0xFF000000; for (i=0; i<count; i++) { col = mul255(a, spans[i].coverage); surf->raster_fill_run_alpha(surf->raster_cbk, spans[i].x, y, spans[i].le...
false
false
false
false
false
0
test_hash_int(tst_case *tc, void *data) { int i; HashTable *ht = h_new_int(&free); char buf[100]; char *word; (void)data; /* suppress unused argument warning */ Aiequal(0, ht->size); Aiequal(HASH_KEY_DOES_NOT_EXIST, h_set_int(ht, 0, estrdup("one"))); Aiequal(1, ht->size); Atrue(h_ha...
true
true
false
false
false
1
empathy_server_sasl_handler_dispose (GObject *object) { EmpathyServerSASLHandlerPriv *priv = EMPATHY_SERVER_SASL_HANDLER (object)->priv; DEBUG ("%p", object); tp_clear_object (&priv->channel); tp_clear_object (&priv->account); G_OBJECT_CLASS (empathy_server_sasl_handler_parent_class)->dispose (object); }
false
false
false
false
false
0
ftp_state_post_mdtm(struct connectdata *conn) { CURLcode result = CURLE_OK; struct FTP *ftp = conn->data->reqdata.proto.ftp; struct SessionHandle *data = conn->data; /* If we have selected NOBODY and HEADER, it means that we only want file information. Which in FTP can't be much more than the file size an...
false
false
false
false
false
0
stop() { if (pps_pid > 0) { for (;;) { kill(-pps_pid, SIGKILL); int ret = (waitpid( -pps_pid, NULL, WNOHANG)); if (-1 == ret) break; } pps_pid = -1; } }
false
false
false
false
false
0
age_active_anon(struct zone *zone, struct scan_control *sc) { struct mem_cgroup *memcg; if (!total_swap_pages) return; memcg = mem_cgroup_iter(NULL, NULL, NULL); do { struct lruvec *lruvec = mem_cgroup_zone_lruvec(zone, memcg); if (inactive_anon_is_low(lruvec)) shrink_active_list(SWAP_CLUSTER_MAX, lruve...
false
false
false
false
false
0
fetion_process_invite(fetion_account *account, const gchar *sipmsg) { gchar *from; gchar *auth; gchar *ip; gchar *credential; gchar *sid; gint port; gchar *sip_text; fetion_account *new_account; fetion_b...
false
false
false
false
false
0
update_interface(void) { int i; QPalette palette; BgColorButton->setColor(mainwindow->maincurve->backgroundcolor); SrColorButton->setColor(mainwindow->maincurve->small_ruler_color); BrColorButton->setColor(mainwindow->maincurve->big_ruler_color); MrColorButton->setColor(mainwindow->maincurve->mouse_re...
false
false
false
false
false
0
set_fspe_syncch(int pe, int ch) { Pc_info_tmp *ppt; ppt = (Pc_info_tmp *)calloc(1,sizeof(Pc_info_tmp)); if(ppt == NULL){ fprintf(stderr,"No more room for Pc_info_tmp_ptr\n"); exit(-1); } ppt->fstpe = pe; ppt->ch = ch; ppt->next = NULL; return ppt; }
false
false
false
false
false
0
Stamp( const char* now, TiXmlEncoding encoding ) { assert( now ); // Do nothing if the tabsize is 0. if ( tabsize < 1 ) { return; } // Get the current row, column. int row = cursor.row; int col = cursor.col; const char* p = stamp; assert( p ); while ( p < now ) { // Treat p as unsigned, so we have a ...
false
false
false
false
false
0
binsearch(char *w, Keyword *kp, int n) { int cond, low, mid, high; low = 0; high = n - 1; while (low <= high) { mid = (low + high) / 2; if ((cond = strcmp(w, kp[mid].word)) < 0) high = mid - 1; else if (cond > 0) low = mid + 1; else return mid; } return -1; }
false
false
false
false
false
0
xdr_gfs3_setxattr_req (XDR *xdrs, gfs3_setxattr_req *objp) { register int32_t *buf; buf = NULL; if (!xdr_opaque (xdrs, objp->gfid, 16)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; if (!xdr_bytes (xdrs, (char **)&objp->dict.dict_val, (u_int *) &objp->dict.dict_len, ~0)) retu...
false
false
false
false
false
0
utf_ptr2cells(p) char_u *p; { int c; /* Need to convert to a wide character. */ if (*p >= 0x80) { c = utf_ptr2char(p); /* An illegal byte is displayed as <xx>. */ if (utf_ptr2len(p) == 1 || c == NUL) return 4; /* If the char is ASCII it must be an overlong sequence. */ if (c < 0x80) ...
false
false
false
false
false
0
jack_port_by_name(jack_client_t* ext_client, const char* portname) { JackGlobals::CheckContext("jack_port_by_name"); JackClient* client = (JackClient*)ext_client; if (client == NULL) { jack_error("jack_port_by_name called with a NULL client"); return NULL; } if (portname == NULL) {...
false
false
false
false
false
0
Read_AN1_Lines(gbfile* f) { unsigned long count = 0; unsigned long i = 0; unsigned long j = 0; an1_line_record* rec = NULL; an1_vertex_record* vert = NULL; route_head* rte_head; waypoint* wpt_tmp; ReadShort(f); count = ReadLong(f); for (i = 0; i < count; i++) { rec = Alloc_AN1_Line(); Read_...
false
true
false
false
false
1
refdec_nri(NETRootInfoPrivate *p) { #ifdef NETWMDEBUG fprintf(stderr, "NET: decrementing NETRootInfoPrivate::ref (%d)\n", p->ref - 1); #endif if (! --p->ref) { #ifdef NETWMDEBUG fprintf(stderr, "NET: \tno more references, deleting\n"); #endif delete [] p->name; delete [] p->stacking; delete [] p->...
false
false
false
false
false
0
pk_is_top(ap_manager_t* man, pk_t* po) { pk_internal_t* pk = pk_init_from_manager(man,AP_FUNID_IS_TOP); man->result.flag_exact = man->result.flag_best = true; if (pk->funopt->algorithm>=0) poly_chernikova(man,po,NULL); if (!po->C && !po->F) return false; else if (po->C && po->F) return po->C->nbr...
false
false
false
false
false
0
init(AtmosModel &atms, const AerosolConcentration &aerocon) { xps = original_xps; xpp = original_xpp; float uwus; float uo3us; if(xps <= 0) { xps = 0; uwus = 1.424f; uo3us = 0.344f; } else if(atms.idatm != 8) pressure(atms, atms.uw, atms.uo3); else pressure(atms, uwus, uo3us); ...
false
false
false
false
false
0
path_from_url_to_url(const conststring a, const conststring b) { URL p, q; string s = NULL; char cwd[4096]; int i, j; if (!getcwd(cwd, sizeof(cwd) - 1)) return NULL; /* To do: handle long path */ strcat(cwd, "/"); s = URL_s_absolutize(cwd, a); p = URL_new(s); dispose(s); s = URL_s_absolutize(cwd, b); q...
false
false
false
false
false
0
zmat_connect_next(struct core_pak *core) { gint size, max; GSList *list; struct bond_pak *bond; struct core_pak *tmp, *next; max = 0; next = NULL; for (list=core->bonds ; list ; list=g_slist_next(list)) { bond = list->data; if (bond->type == BOND_HBOND) continue; if (bond->atom1 == core) tmp = bond->...
false
false
false
false
false
0
stCactusGraph_markCyclesP(stCactusEdgeEnd *edgeEnd, stHash *nodesOnChainToEdgeEnds, stList *chainPath) { stList_append(chainPath, edgeEnd); stList_append(chainPath, NULL); while (stList_length(chainPath) > 0) { stCactusEdgeEnd *edgeEnd2 = stList_pop(chainPath); edgeEnd = stList_peek(chainPat...
false
false
false
false
false
0
OSRExportToPrettyWkt( OGRSpatialReferenceH hSRS, char ** ppszReturn, int bSimplify) { VALIDATE_POINTER1( hSRS, "OSRExportToPrettyWkt", CE_Failure ); *ppszReturn = NULL; return ((OGRSpatialReference *) hSRS)->exportToPrettyWkt( ppszReturn, ...
false
false
false
false
false
0
remove_attribute (const char *attr_name, tree list) { tree *p; size_t attr_len = strlen (attr_name); gcc_checking_assert (attr_name[0] != '_'); for (p = &list; *p; ) { tree l = *p; /* TODO: If we were storing attributes in normalized form, here we could use a simple strcmp(). */ if (p...
false
false
false
false
false
0
glusterd_gsync_configure (glusterd_volinfo_t *volinfo, char *slave, dict_t *dict, dict_t *resp_dict, char **op_errstr) { int32_t ret = -1; char *op_name = NULL; char *op_value = NULL; runner_t runner = {0,}; gl...
false
false
true
true
false
1
AsObject() { Object* obj; // The maps in |maps_| must be copied to a newly allocated FixedArray, // both because the referenced MapList is short-lived, and because C++ // objects can't be stored in the heap anyway. { MaybeObject* maybe_obj = HEAP->AllocateUninitializedFixedArray(maps_->lengt...
false
false
false
false
false
0
cx231xx_mbox_func(void *priv, u32 command, int in, int out, u32 data[CX2341X_MBOX_MAX_DATA]) { struct cx231xx *dev = priv; unsigned long timeout; u32 value, flag, retval = 0; int i; dprintk(3, "%s: command(0x%X) = %s\n", __func__, command, cmd_to_str(command)); /* this may not be 100% safe if we can't...
false
false
false
false
false
0
trail_move_all(float frametime) { int num_alive_segments,n; float time_delta; trail *next_trail; trail *prev_trail = &Trails; for (trail *trailp = Trails.next; trailp != &Trails; trailp = next_trail) { next_trail = trailp->next; num_alive_segments = 0; if ( trailp->tail != trailp->head ) { n = trailp->...
false
false
false
false
false
0
initdrawtreenode(node **p, node **grbg, node *q, long len, long nodei, long *ntips, long *parens, initops whichinit, pointarray treenode, pointarray nodep, Char *str, Char *ch, char** treestr) { /* initializes a node */ long i; boolean minusread; double valyew, di...
false
true
false
false
false
1
get(pos_type pos) const { List::const_iterator end = list_.end(); List::const_iterator it = insetIterator(pos); if (it != end && it->pos == pos) return it->inset; return 0; }
false
false
false
false
false
0
ibus_property_set_tooltip (IBusProperty *prop, IBusText *tooltip) { g_assert (IBUS_IS_PROPERTY (prop)); g_assert (tooltip == NULL || IBUS_IS_TEXT (tooltip)); IBusPropertyPrivate *priv = prop->priv; if (priv->tooltip) { g_object_unref (priv->tooltip); } i...
false
false
false
false
false
0
dsc_init_with_alloc( void *caller_data, void *(*memalloc)(size_t size, void *closure_data), void (*memfree)(void *ptr, void *closure_data), void *closure_data) { CDSC *dsc = (CDSC *)memalloc(sizeof(CDSC), closure_data); if (dsc == NULL) return NULL; memset(dsc, 0, sizeof(CDSC)); dsc->ca...
false
false
false
false
false
0
saa7134_raw_decode_irq(struct saa7134_dev *dev) { struct saa7134_card_ir *ir = dev->remote; unsigned long timeout; int space; /* Generate initial event */ saa_clearb(SAA7134_GPIO_GPMODE3, SAA7134_GPIO_GPRESCAN); saa_setb(SAA7134_GPIO_GPMODE3, SAA7134_GPIO_GPRESCAN); space = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2...
false
false
false
false
false
0
isl_band_tile(__isl_keep isl_band *band, __isl_take isl_vec *sizes) { isl_ctx *ctx; isl_band *child; isl_band_list *list = NULL; isl_union_pw_multi_aff *sched; if (!band || !sizes) goto error; ctx = isl_vec_get_ctx(sizes); child = isl_band_dup(band); list = isl_band_list_alloc(ctx, 1); list = isl_band_list...
false
false
false
false
false
0
sst_detect_dactype(struct fb_info *info, struct sstfb_par *par) { int i, ret = 0; for (i = 0; i < ARRAY_SIZE(dacs); i++) { ret = dacs[i].detect(info); if (ret) break; } if (!ret) return 0; f_dprintk("%s found %s\n", __func__, dacs[i].name); par->dac_sw = dacs[i]; return 1; }
false
false
false
false
false
0
gl_label_text_get_lines (glLabelText *ltext) { GtkTextIter start, end; gchar *text; GList *lines; g_return_val_if_fail (ltext && GL_IS_LABEL_TEXT (ltext), NULL); gtk_text_buffer_get_bounds (ltext->priv->buffer, &start, &end); text = gtk_text_buffer_get_text (ltext->priv->buffer, &start, &end,...
false
false
false
false
false
0
InitArenaPool(ArenaPool *pool, const char* /*name*/, unsigned int /*size*/, unsigned int align) { unsigned int size = POOL_SIZE; if (align == 0) align = ARENA_DEFAULT_ALIGN; pool->mask = BITMASK(CeilingLog2(align)); pool->first.next = NULL; pool->first.base = pool->f...
false
false
false
false
false
0
do_cleanup(void) { struct gntalloc_gref *gref, *n; list_for_each_entry_safe(gref, n, &gref_list, next_gref) { if (!gref->users) __del_gref(gref); } }
false
false
false
false
false
0
game_statusbar_message_cb (AisleriotGame *game, const char *message, AisleriotWindow *window) { AisleriotWindowPrivate *priv = window->priv; guint id = priv->game_message_id; gtk_statusbar_pop (priv->statusbar, id); if (message != NULL) { gtk_statusbar_...
false
false
false
false
false
0
arm_function_arg (cumulative_args_t pcum_v, enum machine_mode mode, const_tree type, bool named) { CUMULATIVE_ARGS *pcum = get_cumulative_args (pcum_v); int nregs; /* Handle the special case quickly. Pick an arbitrary value for op2 of a call insn (op3 of a call_value insn). */ if (mode == VOIDmode) ...
false
false
false
false
false
0
AdjustArrays(int MeanCenter, int MedianCenter, int Normalize) { int row, column; /* Center Arrays */ if (MeanCenter || MedianCenter) { double* temp = malloc(_rows*sizeof(double)); if (!temp) return 0; for (column = 0; column < _columns; column++) { int counter = 0; for (row = 0; row < _rows; row...
false
true
false
false
false
1
readSecret(const PppSettings& pppSettings) { QString strSecret; QFile secretsFile(getSecretsFilePath(pppSettings)); if (secretsFile.exists()) { if (secretsFile.open(QIODevice::ReadOnly)) { QByteArray abSecret(secretsFile.readAll()); EncSecrets secrets(abSecret.data()); ...
false
false
false
false
false
0
tf_iclearalldelays(char *inst) { int32 rv; struct tfinst_t *sav_tfip; struct tfrec_t *sav_tfrp; set_tfinst_(inst, sav_tfip, sav_tfrp); __push_itstk(__tfinst->tfitp); rv = tf_clearalldelays(); __pop_itstk(); __tfinst = sav_tfip; __tfrec = sav_tfrp; return(rv); }
false
false
false
false
false
0
cxx_print_xnode (FILE *file, tree node, int indent) { switch (TREE_CODE (node)) { case BASELINK: print_node (file, "functions", BASELINK_FUNCTIONS (node), indent + 4); print_node (file, "binfo", BASELINK_BINFO (node), indent + 4); print_node (file, "access_binfo", BASELINK_ACCESS_BINFO (node...
false
false
false
false
false
0
read_key_settings ( XmlContent *keylist_element, int index, XmlElementType *key_type, XmlElementType *keyname_type, XmlElementType *default_action_type, XmlElementType *keycode_type, XmlElementType *scancode_type, XmlElementType *usbcode_type, XmlElementType *event_descr_type, XmlEl...
false
false
false
false
false
0
bfa_tskim_sm_iocleanup(struct bfa_tskim_s *tskim, enum bfa_tskim_event event) { bfa_trc(tskim->bfa, tskim->tsk_tag << 16 | event); switch (event) { case BFA_TSKIM_SM_IOS_DONE: bfa_sm_set_state(tskim, bfa_tskim_sm_hcb); bfa_tskim_qcomp(tskim, __bfa_cb_tskim_done); break; case BFA_TSKIM_SM_CLEANUP: /* * ...
false
false
false
false
false
0
test_read_object(object_data *data) { git_oid id; git_odb_object *obj; git_odb *odb; git_rawobj tmp; write_object_files(data); cl_git_pass(git_odb_open(&odb, "test-objects")); cl_git_pass(git_oid_fromstr(&id, data->id)); cl_git_pass(git_odb_read(&obj, odb, &id)); tmp.data = obj->buffer; t...
false
false
false
false
false
0
_cat_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata) { if (cfdata->page[0].configs) eina_list_free(cfdata->page[0].configs); /* _conf->cfd = NULL; */ E_FREE(cfdata); }
false
false
false
false
false
0
bnxt_subtract_ulp_resources(struct bnxt *bp, int ulp_id) { ASSERT_RTNL(); if (bnxt_ulp_registered(bp->edev, ulp_id)) { struct bnxt_en_dev *edev = bp->edev; unsigned int msix_req, max; msix_req = edev->ulp_tbl[ulp_id].msix_requested; max = bnxt_get_max_func_cp_rings(bp); bnxt_set_max_func_cp_rings(bp, max -...
false
false
false
false
false
0
ghex_print_job_info_new(HexDocument *doc, guint group_type) { GHexPrintJobInfo *pji; PangoFontDescription *d_font; PangoFontDescription *h_font; if (!doc) return NULL; /* Create the header and data fonts */ d_font = pango_font_description_from_string (data_font_name); if (!d_font) return NULL; h_font = p...
false
false
false
false
false
0
CanSeekStream() { mClient->Lock(); bool rc = (mDemuxer != NULL) && mDemuxer->CanSeekStream(); mClient->Unlock(); return rc; }
false
false
false
false
false
0
outdata (fd, name, size) int fd; char *name; reg off_t size; { reg size_t chunk; reg ssize_t got; reg int oops; reg size_t avail; auto char *buf; oops = got = 0; while (size) { avail = outavail (&buf); size -= (chunk = size < (off_t)avail ? size : avail); if (oops == ...
false
false
false
false
false
0
GroupGetPaltreeItemWithParent(GtkTreeModel *model, GtkTreeIter *iter, GroupInfo *grpinf) { GtkTreeIter parent; GroupInfo *pgrpinf; parent = *iter; if (!gtk_tree_model_iter_children(model, iter, &parent)) re...
false
false
false
false
false
0
futils__rmdir_empty_parent(void *opaque, const char *path) { futils__rmdir_data *data = opaque; int error = 0; if (strlen(path) <= data->baselen) error = GIT_ITEROVER; else if (p_rmdir(path) < 0) { int en = errno; if (en == ENOENT || en == ENOTDIR) { /* do nothing */ } else if (en == ENOTEMPTY || en =...
false
false
false
false
false
0
enum2int(const char *str, long val, conString *vec, const char *msg) { int i; STATIC_BUFFER(buf); const char *end, *prefix = "", *comma = ", ", *elide = " ... "; for (i = 0; vec[i].data; ++i) { if (str && cstrcmp(str, vec[i].data) == 0) return i; } if (str) { if (is_digit(*str))...
false
false
false
false
false
0
ajSysExecEnvC(const char* cmdlinetxt, char * const env[]) { ajint status = 0; #ifndef WIN32 pid_t pid; pid_t retval; char *pgm = NULL; char **argptr = NULL; ajint i; AjPStr pname = NULL; if(!ajSysArglistBuildC(cmdlinetxt, &pgm, &argptr)) return -1; pname = ajStrNew(); ajDeb...
false
false
false
false
false
0
on_fbo_parent_change (ClutterActor *actor, ClutterActor *old_parent, ClutterTexture *texture) { ClutterActor *parent = CLUTTER_ACTOR(texture); while ((parent = clutter_actor_get_parent (parent)) != NULL) { if (parent == actor) ...
false
false
false
false
false
0
anthy_quit_depword_tab(void) { int i; for (i = 0; i < ddic.nrNodes; i++) { struct dep_node* node = &ddic.nodes[i]; free(node->branch); } free(ddic.nodes); }
false
false
false
false
false
0
payload_first(struct message *msg, u_int8_t payload) { if (payload_map[payload]) return TAILQ_FIRST(&msg->payload[payload_map[payload]]); else return 0; }
false
false
false
false
false
0
c_e_h(GWindow gw, GEvent *event) { struct dlg_info *d = GDrawGetUserData(gw); if ( event->type==et_close ) { d->done = true; d->ret = -1; } else if ( event->type==et_resize ) { #if 0 GGadgetResize(GWidgetGetControl(gw,CID_List), event->u.resize.size.width - 2*GDrawPointsToPixels(gw,8), event->u.resi...
true
true
false
false
false
1
doinit() { ScalarFormFactor::doinit(); unsigned int isize(numberOfFactors()); if(isize!=_Vr1.size()||isize!=_Vr2.size()||isize!=_A0r1.size()||isize!=_A0r2.size()|| isize!=_A1r1.size()||isize!=_A1r2.size()||isize!=_A2r1.size()||isize!=_A2r2.size()|| isize!=_T1r1.size()||isize!=_T1r2.size()||isize!=_T2r1....
false
false
false
false
false
0
objobjnocol(void *obj1, void *obj2) { Model_object *o1 = (Model_object *)obj1; Model_object *o2 = (Model_object *)obj2; Rect a, b; if (IS_DELETED(o1) || IS_DELETED(o2) || o1 == o2) return TRUE; new_rect_from_object_cur(&a, o1); new_rect_from_object_cur(&b, o2); return !rects_collide(&a, &b); }
false
false
false
false
false
0
e_desklock_hide(void) { E_Desklock_Popup_Data *edp; E_Event_Desklock *ev; if ((!edd) && (!_e_custom_desklock_exe)) return; if (e_config->desklock_language) e_intl_language_set(e_config->language); if (e_config_xkb_layout_eq(e_config->xkb.current_layout, e_config->xkb.lock_layout)) { ...
false
false
false
false
false
0
cx24110_initfe(struct dvb_frontend* fe) { struct cx24110_state *state = fe->demodulator_priv; /* fixme (low): error handling */ int i; dprintk("%s: init chip\n", __func__); for(i = 0; i < ARRAY_SIZE(cx24110_regdata); i++) { cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data); } return 0;...
false
false
false
false
false
0
seek(CORBA::Long index) { CHECK_NOT_DESTROYED; switch( index ) { case 0: pd_curr_index = 0; return 1; case 1: if (pd_member) { pd_curr_index = 1; return 1; } // drop through default: pd_curr_index = -1; return 0; } }
false
false
false
false
false
0
accesslog_op_bind( Operation *op, SlapReply *rs ) { slap_callback *sc; sc = op->o_tmpcalloc( 1, sizeof(slap_callback), op->o_tmpmemctx ); sc->sc_response = accesslog_bind_resp; sc->sc_private = op->o_bd->bd_info; if ( op->o_callback ) { sc->sc_next = op->o_callback->sc_next; op->o_callback->sc_next = sc; } ...
false
false
false
false
false
0
gtk_plot_candle_draw_legend(GtkPlotData *data, gint x, gint y) { GtkPlotCandle *box; GtkPlot *plot = NULL; GtkPlotText legend; GdkRectangle area; gint lascent, ldescent, lheight, lwidth; gdouble m; box = GTK_PLOT_CANDLE(data); g_return_if_fail(data->plot != NULL); g_return_if_fail(GTK_IS_PLOT(data->...
false
false
false
false
false
0
SQLGetCursorNameW (SQLHSTMT hstmt, SQLWCHAR * szCursor, SQLSMALLINT cbCursorMax, SQLSMALLINT * pcbCursor) { ENTER_STMT (hstmt, trace_SQLGetCursorNameW (TRACE_ENTER, hstmt, szCursor, cbCursorMax, pcbCursor)); retcode = SQLGetCursorName_Internal( hstmt, (SQLCHAR *) szCursor, cbCursorM...
false
false
false
false
false
0
winsnstr(WINDOW *win, const char *s, int n) { int code = ERR; NCURSES_SIZE_T oy; NCURSES_SIZE_T ox; const unsigned char *str = (const unsigned char *) s; const unsigned char *cp; T((T_CALLED("winsnstr(%p,%s,%d)"), win, _nc_visbufn(s, n), n)); if (win != 0 && str != 0) { oy = win->_cury; ...
false
false
false
false
false
0
addDestination(LogDestination& destination) { Glib::Mutex::Lock lock(mutex); getContext().destinations.push_back(&destination); }
false
false
false
false
false
0
NewPixelWands(const unsigned long number_wands) { register long i; struct _PixelWand **wands; wands=(struct _PixelWand **) AcquireMagickMemory((size_t) number_wands*sizeof(struct _PixelWand *)); if (wands == (PixelWand **) NULL) MagickFatalError3(ResourceLimitFatalError,MemoryAllocationFailed,...
false
false
false
true
false
1
jbd2_journal_init_transaction_cache(void) { J_ASSERT(!transaction_cache); transaction_cache = kmem_cache_create("jbd2_transaction_s", sizeof(transaction_t), 0, SLAB_HWCACHE_ALIGN|SLAB_TEMPORARY, NULL); if (transaction_cache) return 0; return -ENOMEM; }
false
false
false
false
false
0
kg_arcfour_docrypt_iov(krb5_context context, const krb5_keyblock *keyblock, int usage, const unsigned char *kd_data, size_t kd_data_len, gss_iov_buffer_desc *iov, int iov_count) { krb5_error_code code; krb5_data kd = make_data((char *) kd_data...
false
false
false
false
false
0
ip_access_list_ext() { ANTLR_USE_NAMESPACE(antlr)RefToken name = ANTLR_USE_NAMESPACE(antlr)nullToken; try { // for error handling match(ACCESS_LIST); match(EXTENDED); name = LT(1); match(WORD); if ( inputState->guessing==0 ) { #line 238 "iosacl.g" importer->newUnidirRuleSet( name->getText(), ...
false
false
false
false
false
0
dispatch (void) { ACE_TRACE (ACE_TEXT ("ACE_Name_Handler::dispatch")); // Dispatch the appropriate request. int index = this->name_request_.msg_type (); // Invoke the appropriate member function obtained by indexing into // the op_table_. ACE_TABLE_MAP returns the same index (by bitwise // AND) for list_na...
false
false
false
false
false
0
read_pretty_host_name(void) { char *contents, *ret; char **lines; guint i; if (g_file_get_contents(MACHINE_INFO_DIR MACHINE_INFO_FILE, &contents, NULL, NULL) == FALSE) return NULL; lines = g_strsplit_set(contents, "\r\n", 0); g_free(contents); if (lines == NULL) return NULL; ret = NULL; for (i = 0...
false
false
false
false
false
0
e_xml_set_double_prop_by_name (xmlNode *parent, const xmlChar *prop_name, gdouble value) { gchar buffer[E_ASCII_DTOSTR_BUF_SIZE]; gchar *format; g_return_if_fail (parent != NULL); g_return_if_fail (prop_name != NULL); if (fabs (value) < 1e9 && fabs (v...
false
false
false
false
false
0
resizeEvent(QResizeEvent* event) { QScrollArea::resizeEvent(event); // calculate sum of all editor heights int listHeight = 0; foreach (QWidget* w, m_editors) { listHeight += w->sizeHint().height(); } // resize scroll area widget QWidget* top = widget(); top->resize(event->size().width(), listHeig...
false
false
false
false
false
0
asd_find_flash_dir(struct asd_ha_struct *asd_ha, struct asd_flash_dir *flash_dir) { u32 v; for (v = 0; v < ASD_FLASH_SIZE; v += FLASH_NEXT_ENTRY_OFFS) { asd_read_flash_seg(asd_ha, flash_dir, v, sizeof(FLASH_DIR_COOKIE)-1); if (memcmp(flash_dir->cookie, FLASH_DIR_COOKIE, sizeof(FLASH_DIR_COOK...
false
false
false
false
false
0
init_ml_buf_desc(mca_bcol_ptpcoll_ml_buffer_desc_t **desc, void *base_addr, uint32_t num_banks, uint32_t num_buffers_per_bank, uint32_t size_buffer, uint32_t header_size, int group_size, int pow_k) { uint32_t i, j, ci; mca_bcol_ptpcoll_ml_buffer_desc_t *tmp_desc = NULL; int k_nomial_radix = mca_bcol...
false
false
false
false
false
0
generate(std::locale const &base,std::string const &id) const { if(d->caching_enabled) { boost::unique_lock<boost::mutex> guard(d->cached_lock); data::cached_type::const_iterator p = d->cached.find(id); if(p!=d->cached.end()) { retu...
false
false
false
false
false
0
getfen_ok(GtkWidget *w, gpointer data) { string s; GetFENDialog *me; me=(GetFENDialog *)data; s=gtk_entry_get_text(GTK_ENTRY(me->e)); me->owner->applyFEN(s); me->release(); }
false
false
false
false
false
0
gst_flv_mux_request_new_pad (GstElement * element, GstPadTemplate * templ, const gchar * pad_name) { GstElementClass *klass = GST_ELEMENT_GET_CLASS (element); GstFlvMux *mux = GST_FLV_MUX (element); GstFlvPad *cpad; GstPad *pad = NULL; const gchar *name = NULL; GstPadSetCapsFunction setcapsfunc = NULL; ...
false
false
false
false
false
0
serviceTypes() const { QStringList ret; QVector<KService::ServiceTypeAndPreference>::const_iterator it = m_serviceTypes.begin(); for ( ; it < m_serviceTypes.end(); ++it ) { Q_ASSERT(!(*it).serviceType.isEmpty()); ret.append((*it).serviceType); } return ret; }
false
false
false
false
false
0
is_sentinel(struct queue *q, struct list_head *h) { return (h >= q->sentinels) && (h < (q->sentinels + NR_SENTINELS)); }
false
false
false
false
false
0
is_next_token_in(const char* charlist) throw(ParserError) { get_check_token(); if (m_token.length() == 1) { char ch = m_token[0]; if (strcontains(charlist, ch)) return ch; } pushback_token(); return -1; }
false
false
false
false
false
0
SSLv3_MAC_ConstantTime( unsigned char *result, unsigned int *resultLen, unsigned int maxResultLen, const SECHashObject *hashObj, const unsigned char *secret, unsigned int secretLen, const unsigned char *header, unsigned int headerLen, const unsigned char *body, unsigned int bodyL...
false
false
false
false
false
0
main_cleanup(options_t *options_p) { int i=0; while((i < MAXRULES) && (options_p->rules[i].mask != RA_NONE)) regfree(&options_p->rules[i++].expr); printf_ddd("Debug3: main_cleanup(): %i %i %i %i\n", options_p->watchdirsize, options_p->watchdirwslashsize, options_p->destdirsize, options_p->destdirwslashsize); re...
false
false
false
false
false
0
logStatisticData ( std::ostream& o, bool needLocal ) const { #ifdef USE_REASONING_STATISTICS nTacticCalls.Print ( o, needLocal, "\nThere were made ", " tactic operations, of which:" ); nIdCalls.Print ( o, needLocal, "\n CN operations: ", "" ); nSingletonCalls.Print(o, needLocal, "\n including ", " si...
false
false
false
false
false
0