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
gfire_buddy_prpl_add(gfire_buddy *p_buddy, gfire_group *p_group) { if(!p_buddy || !p_buddy->gc || p_buddy->prpl_buddy) return; PurpleGroup *group = NULL; PurpleBuddy *prpl_buddy = purple_find_buddy(purple_connection_get_account(p_buddy->gc), gfire_buddy_get_name(p_buddy)); if(!prpl_buddy) { prpl_buddy = purp...
false
false
false
false
false
0
PR_SetAlarm( PRAlarm *alarm, PRIntervalTime period, PRUint32 rate, PRPeriodicAlarmFn function, void *clientData) { /* * Create a new periodic alarm an existing current structure. * Set up the context and compute the first notify time (immediate). * Link the new ID into the head of the list (s...
false
false
false
false
false
0
init_dictionary(void) { int indx; dictionary = &detok_table[dictionary_indx_max - 1]; dictionary_reset_position = dictionary; for (indx = 1; indx < dictionary_indx_max; indx++) { detok_table[indx].prev = &detok_table[indx - 1]; } }
false
false
false
false
false
0
LF(size_t idx) const { return m_bwStr.get(idx) != '$' ? PRED(m_bwStr.get(idx)) + OCC(m_bwStr.get(idx), idx) : 0; }
false
false
false
false
false
0
test_unlock_without_load (Test *test, gconstpointer unused) { GkmCredential *cred; GkmSecretData *sdata; CK_RV rv; gkm_secret_collection_set_filename (test->collection, SRCDIR "/files/encrypted.keyring"); /* Unlock the keyring, which should load it */ rv = gkm_credential_create (test->module, gkm_session_get_ma...
false
false
false
false
false
0
rssyl_fill_popup_menu_labels(void) { gint i; for( i = 0; rssyl_popup_menu_labels[i] != NULL; i++ ) { (rssyl_popup_entries[i]).label = _(rssyl_popup_menu_labels[i]); } }
false
false
false
false
false
0
value_new_cellrange_str (Sheet *sheet, char const *str) { GnmParsePos pp; GnmExprParseFlags flags = GNM_EXPR_PARSE_UNKNOWN_NAMES_ARE_STRINGS | GNM_EXPR_PARSE_FORCE_EXPLICIT_SHEET_REFERENCES; g_return_val_if_fail (IS_SHEET (sheet), NULL); g_return_val_if_fail (str != NULL, NULL); parse_pos_init_sheet (&pp, shee...
false
false
false
false
false
0
pp_cxx_type_id (cxx_pretty_printer *pp, tree t) { pp_flags saved_flags = pp_c_base (pp)->flags; pp_c_base (pp)->flags |= pp_c_flag_abstract; switch (TREE_CODE (t)) { case TYPE_DECL: case UNION_TYPE: case RECORD_TYPE: case ENUMERAL_TYPE: case TYPENAME_TYPE: case BOUND_TEMPLATE_TEMPLATE...
false
false
false
false
false
0
lzo_compress(const unsigned char *src, unsigned char *dst, size_t *dst_len, void *private) { int ret = lzo1x_1_compress(src, PAGE_SIZE, dst, dst_len, private); return ret == LZO_E_OK ? 0 : ret; }
false
false
false
false
false
0
apol_relabel_analysis_destroy(apol_relabel_analysis_t ** r) { if (r != NULL && *r != NULL) { free((*r)->type); free((*r)->result); apol_vector_destroy(&(*r)->classes); apol_vector_destroy(&(*r)->subjects); apol_regex_destroy(&(*r)->result_regex); free(*r); *r = NULL; } }
false
false
false
false
false
0
SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, const TargetData *TD, const DominatorTree *DT, unsigned MaxRecurse) { if (Value *V = SimplifyShift(Instruction::AShr, Op0, Op1, TD, DT, MaxRecurse)) return V; // all ones >>a X -> all ones if ...
false
false
false
false
false
0
redirect_exp_1 (loc, olabel, nlabel, insn) rtx *loc; rtx olabel, nlabel; rtx insn; { rtx x = *loc; RTX_CODE code = GET_CODE (x); int i; const char *fmt; if (code == LABEL_REF) { if (XEXP (x, 0) == olabel) { rtx n; if (nlabel) n = gen_rtx_LABEL_REF (VOIDmode, nlabel); e...
false
false
false
false
false
0
socket_open(void){ static struct sockaddr_in addr; /* The server address */ static int addrIsInit = 0; /* True once addr is initialized */ socket_global_init(); if( !addrIsInit ){ addr.sin_family = AF_INET; addr.sin_port = htons(g.urlPort); *(int*)&addr.sin_addr = inet_addr(g.urlName); i...
false
true
false
false
false
1
binary_upgrade_set_pg_class_oids(PQExpBuffer upgrade_buffer, Oid pg_class_oid, bool is_index) { PQExpBuffer upgrade_query = createPQExpBuffer(); int ntups; PGresult *upgrade_res; Oid pg_class_reltoastrelid; Oid pg_class_reltoastidxid; appendPQExpBuffer(upgrade_query, "SELECT c.reltoastrel...
false
false
false
false
false
0
target_a2i (int ms_bit_nr, const char *a) { if (ms_bit_nr) return (ms_bit_nr - a2i (a)); else return a2i (a); }
false
false
false
false
false
0
get_recode_request(const char *encreq) { static RecRequest *request_cache = NULL; /* recode request cache */ RECODE_REQUEST request; RecRequest *req; /* try to find the request in cache (bubble sorting it meanwhile) */ for (req = request_cache; req != NULL; req = req->next) { if (strcmp(req->request_str...
false
false
false
false
false
0
create_message (GeditMessageBus *bus, const gchar *object_path, const gchar *method, const gchar *first_property, va_list var_args) { GType message_type; GeditMessage *msg; message_type = gedit_message_bus_lookup (bus, object_path,...
false
false
false
false
false
0
FindSimilar(OBBase* pOb, multimap<double, unsigned int>& SeekposMap, int nCandidates) { ///If nCandidates is zero or omitted the original size of the multimap is used if(nCandidates) { //initialise the multimap with nCandidate zero entries SeekposMap.clear(...
false
false
false
false
false
0
gst_cmml_dec_parse_packet_type (GstCmmlDec * dec, GstBuffer * buffer) { GstCmmlPacketType packet_type = GST_CMML_PACKET_UNKNOWN; gchar *data = (gchar *) GST_BUFFER_DATA (buffer); guint size = GST_BUFFER_SIZE (buffer); if (size >= 8 && !memcmp (data, "CMML\0\0\0\0", 8)) { packet_type = GST_CMML_PACKET_IDENT...
false
false
false
false
false
0
SetBGFG(PLStream *pls) { XwDev *dev = (XwDev *) pls->dev; XwDisplay *xwd = (XwDisplay *) dev->xwd; PLColor fgcolor; int gslevbg, gslevfg; dbug_enter("SetBGFG"); /* * Set background color. * * Background defaults to black on color screens, white on grayscale (many * grayscale monitors have poo...
false
false
false
false
false
0
getframechunkdata( struct FLI *fli ) { struct FLI_FRAMECHUNK *fc; void *data; fc = fli->frame + fli->current; data = fc->cd; if( data ) return; /* frame chunk data already loaded */ if(fc->size) { data = malloc( fc->size ); if( !data ) { printf( "cannot allocate memory for frame data\n" ); exit( 1 ); } fs...
false
false
false
false
false
0
account_restore_fail_handler(gpointer data_for_children, GSList* data_from_children, GSList* sibling_data, gpointer parent_data, gpointer global_data, gpointer *result, ...
false
false
false
false
false
0
isBlocked( const Technology* tech ) const { for ( int i = 0; i < developedTechnologies.size(); ++i ) { Technology* t = technologyRepository.getObject_byID( developedTechnologies[i] ); if ( t && !t->techDependency.available ( *this ) ) { // this is a root technology for ( Technology::...
false
false
false
false
false
0
wxPGVariantToDouble( const wxVariant& variant, double* pResult ) { if ( variant.IsNull() ) return false; if ( wxPGIsVariantType(variant, double) ) { *pResult = variant.GetDouble(); return true; } if ( wxPGIsVariantType(variant, long) ) { *pResult = (double)varia...
false
false
false
false
false
0
gribapiDefParam(int editionNumber, grib_handle *gh, int param, const char *name) { int pdis, pcat, pnum; cdiDecodeParam(param, &pnum, &pcat, &pdis); if ( pnum < 0 ) { size_t len; int status; len = strlen(name); status = grib_set_string(gh, "shortName", name, &len); if ( status ...
false
false
false
false
false
0
hermon_remove ( struct pci_device *pci ) { struct hermon *hermon = pci_get_drvdata ( pci ); struct hermon_port *port; int i; for ( i = ( hermon->cap.num_ports - 1 ) ; i >= 0 ; i-- ) { port = &hermon->port[i]; port->type->unregister_dev ( hermon, port ); } for ( i = ( hermon->cap.num_ports - 1 ) ; i >= 0 ; i-...
false
false
false
false
false
0
save_combos ( ) { // Get file info. Shape_file_info *combos = files->create("combos.flx"); try { if (combos) combos->flush(); } catch (const exult_exception& e) { EStudio::Alert(e.what()); } }
false
false
false
false
false
0
tds_alloc_results(int num_cols) { TDSRESULTINFO *res_info; int col; TEST_MALLOC(res_info, TDSRESULTINFO); res_info->ref_count = 1; TEST_CALLOC(res_info->columns, TDSCOLUMN *, num_cols); for (col = 0; col < num_cols; col++) if (!(res_info->columns[col] = tds_alloc_column())) goto Cleanup; res_info->num_cols...
false
false
false
false
false
0
pfs_malloc(size_t size, myf flags) { DBUG_ASSERT(! pfs_initialized); DBUG_ASSERT(size > 0); void *ptr= malloc(size); if (likely(ptr != NULL)) pfs_allocated_memory+= size; if (likely((ptr != NULL) && (flags & MY_ZEROFILL))) memset(ptr, 0, size); return ptr; }
false
false
false
false
false
0
diff(const RCP<const Symbol> &x) const { if (eq(arg_->diff(x), zero)) return zero; else return rcp(new Derivative(rcp(this), {x})); }
false
false
false
false
false
0
caribou_iscannable_group_base_init (CaribouIScannableGroupIface * iface) { static gboolean initialized = FALSE; if (!initialized) { initialized = TRUE; g_object_interface_install_property (iface, g_param_spec_enum ("scan-grouping", "scan-grouping", "scan-grouping", CARIBOU_TYPE_SCAN_GROUPING, 0, G_PARAM_STATIC_NA...
false
false
false
false
false
0
tree_profiling (void) { struct cgraph_node *node; /* Don't profile functions produced at destruction time, particularly the gcov datastructure initializer. Don't profile if it has been already instrumented either (when OpenMP expansion creates child function from already instrumented body). */ i...
false
false
false
false
false
0
qr_select_cost(const Operand* op0, const Operand* op1, const Operand* op2, const Operand* op3) { int cost; symbol_type type1; symbol_type type2; if (op3->tbl.v->type != TYPE_INT || op0->tbl.v->type == TYPE_LOGICAL || op1->tbl.v->type == TYPE_LOGICAL ...
false
false
false
false
false
0
parse_network (char *net_s, struct in6_addr *network) { int type; char *t; if (NULL != (t = strchr(net_s, ':'))) { type = AF_INET6; if (!inet_pton(type, net_s, network)) { perror("parse_nets6"); return -1; } dlog("Network6 %-36s \t -> %08x:%08x:%08x:%0...
false
false
false
false
false
0
dcc_rejected(DCC_REC *dcc) { g_return_if_fail(dcc != NULL); printformat(dcc->server, NULL, MSGLEVEL_DCC, IRCTXT_DCC_CLOSE, dcc_type2str(dcc->type), dcc->nick, dcc->arg); }
false
false
false
false
false
0
ide_do_rw_disk(ide_drive_t *drive, struct request *rq, sector_t block) { ide_hwif_t *hwif = drive->hwif; BUG_ON(drive->dev_flags & IDE_DFLAG_BLOCKED); BUG_ON(rq->cmd_type != REQ_TYPE_FS); ledtrig_ide_activity(); pr_debug("%s: %sing: block=%llu, sectors=%u\n", drive->name, rq_data_dir(rq) == READ ? ...
false
false
false
false
false
0
added() { RideMetricFactory::instance().addMetric(DanielsPoints()); QVector<QString> deps; deps.append("time_riding"); deps.append("daniels_points"); RideMetricFactory::instance().addMetric(DanielsEquivalentPower(), &deps); return true; }
false
false
false
false
false
0
DtsSetVC1SH(HANDLE hDevice) { DTS_LIB_CONTEXT *Ctx = NULL; int sts = 0; DTS_GET_CTX(hDevice,Ctx); //Send SPS and PPS //unused uint8_t *pSrc = NULL; //unused uint8_t *pDes = NULL; if((Ctx->VidParams.MediaSubType == BC_MSUBTYPE_WVC1) || (Ctx->VidParams.MediaSubType == BC_MSUBTYPE_WMVA)) { Ctx->PESConvParams...
false
false
false
false
false
0
next_auth_mechanism (smtp_session_t session) { /* find the next usable auth mechanism */ while ((session->current_mechanism = session->current_mechanism->next) != NULL) if (auth_set_mechanism (session->auth_context, session->current_mechanism->name)) return 1; return 0; }
false
false
false
false
false
0
ad5593r_read_adc(struct ad5592r_state *st, unsigned chan, u16 *value) { struct i2c_client *i2c = to_i2c_client(st->dev); s32 val; val = i2c_smbus_write_word_swapped(i2c, AD5593R_MODE_CONF | AD5592R_REG_ADC_SEQ, BIT(chan)); if (val < 0) return (int) val; val = i2c_smbus_read_word_swapped(i2c, AD5593R_MODE_AD...
false
false
false
false
false
0
atomctrl_get_reference_clock(struct pp_hwmgr *hwmgr) { ATOM_FIRMWARE_INFO *fw_info; u8 frev, crev; u16 size; uint32_t clock; fw_info = (ATOM_FIRMWARE_INFO *) cgs_atom_get_data_table(hwmgr->device, GetIndexIntoMasterTable(DATA, FirmwareInfo), &size, &frev, &crev); if (fw_info == NULL) clock = 2700; el...
false
false
false
false
false
0
OnMotion (gccv::ItemClient *client, double x, double y, unsigned state) { m_CurObject = dynamic_cast <Object *> (client); if (m_CurObject) { m_CurAtom = dynamic_cast <Atom *> (m_CurObject); if (!m_CurAtom) { Theme *theme = m_pDoc->GetTheme (); m_CurAtom = reinterpret_cast <Atom *> (m_CurObject->GetAtomAt (x...
false
false
false
false
false
0
ves_icall_System_Threading_Thread_Abort (MonoInternalThread *thread, MonoObject *state) { LOCK_THREAD (thread); if ((thread->state & ThreadState_AbortRequested) != 0 || (thread->state & ThreadState_StopRequested) != 0 || (thread->state & ThreadState_Stopped) != 0) { UNLOCK_THREAD (thread); return; } if...
false
false
false
false
false
0
findNonBlankString (char *ptr, char **tail) { char *p, *q ; for (p = ptr ; *p && isspace((unsigned char) *p) ; p++) /* nada */ ; if ( ! *p ) return NULL ; for (q = p ; *q && !isspace((unsigned char) *q) ; q++) /* nada */ ; *tail = q ; return p ; }
false
false
false
false
false
0
cstash(char *s) { char *temp; temp = cnamp; do { if(cnamp >= &cnames[cnamsz]) error("too many characters in id's and literals"); else *cnamp++ = *s; } while(*s++); return temp; }
false
false
false
false
false
0
putImpl(const UnicodeString &key, void *value, UErrorCode &status) { if (fNodes == NULL) { fNodesCapacity = 512; fNodes = (CharacterNode *)uprv_malloc(fNodesCapacity * sizeof(CharacterNode)); fNodes[0].clear(); // Init root node. fNodesCount = 1; } UnicodeString foldedKey; ...
false
false
false
false
false
0
ap_message_add_key(ap_message_t *msg, ap_key_t *key) { if (!msg || !key) return; if (msg->root == NULL) { //printf("adding first key... (%s)\n", key->key_id); msg->root = key; msg->tail = msg->root; msg->current = msg->tail; } else { //printf("adding key...(%s)\n", key->key_id); msg->tail->next = key...
false
false
false
false
false
0
dhclient_interface_discovery_hook (struct interface_info *tmp) { struct interface_info *last, *ip; /* See if we can find the client from dummy_interfaces */ last = 0; for (ip = dummy_interfaces; ip; ip = ip -> next) { if (!strcmp (ip -> name, tmp -> name)) { /* Remove from dummy_interfaces */ if (last) { ...
false
false
false
false
false
0
setNewPartVisible(ItemBase * itemBase) { if (itemBase->itemType() == ModelPart::Breadboard || itemBase->itemType() == ModelPart::Symbol || itemBase->itemType() == ModelPart::SchematicSubpart || itemBase->moduleID().endsWith(ModuleIDNames::SchematicFrameModuleIDName) || itemBase->moduleID().endsWith(M...
false
false
false
false
false
0
G_Scale(Gen_node g){ psys PS; Dmatrix S; int l; if ( ((l=Gen_length(g))<1)|| ((l>=1)&&(Can_Be_Vector(Gen_elt(g,1),Ply_T)<=0))|| ((l>=2)&&(Gen_type(Gen_elt(g,2))!=Idf_T))|| (l>2)) return Rerror("Usage: Scale(<Ply>,[Idf])",g); PS=Gen_to_psys(g); S=psys_scale(PS); if (l==2) install(Gen_idval(G...
false
false
false
false
false
0
dm04_read_signal_strength(struct dvb_frontend *fe, u16 *strength) { struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct lme2510_state *st = fe_to_priv(fe); if (st->fe_read_signal_strength && !st->stream_on) return st->fe_read_signal_strength(fe, strength); if (c->strength.stat[0].scale == FE_SCA...
false
false
false
false
false
0
EndPDDeclaration() { SPtr<TClntCfgPD> pd = new TClntCfgPD(); pd->setOptions(ParserOptStack.getLast()); // copy all defined prefixes PrefixLst.first(); SPtr<TClntCfgPrefix> prefix; while (prefix = PrefixLst.get()) { pd->addPrefix(prefix); } PrefixLst.clear(); ClntCfgPDLst.append(p...
false
false
false
false
false
0
initio_post_scsi_rst(struct initio_host * host) { struct scsi_ctrl_blk *scb; struct target_control *active_tc; int i; host->active = NULL; host->active_tc = NULL; host->flags = 0; while ((scb = initio_pop_busy_scb(host)) != NULL) { scb->hastat = HOST_BAD_PHAS; initio_append_done_scb(host, scb); } /* clea...
false
false
false
false
false
0
cast(const char *name) { if (strcmp(name, "ARPTable") == 0) return _arpt; else if (strcmp(name, "ARPQuerier") == 0) return this; else return Element::cast(name); }
false
false
false
false
false
0
ps_pes(ipack *p) { int check; uint8_t pbuf[PS_HEADER_L2]; static int muxr = 0; static int ai = 0; static int vi = 0; static int start = 0; static uint32_t SCR = 0; if (p->mpeg == 2){ switch(p->buf[3]){ case VIDEO_STREAM_S ... VIDEO_STREAM_E: if (!p->has_vi){ if(get_vinfo(p->buf, p->count, &p->vi,1) ...
false
false
false
false
false
0
delete_native_rule( void * xrule, void * data ) { native_rule_t * rule = (native_rule_t *)xrule; object_free( rule->name ); if ( rule->procedure ) function_free( rule->procedure ); }
false
false
false
false
false
0
clutter_clone_set_source (ClutterClone *self, ClutterActor *source) { g_return_if_fail (CLUTTER_IS_CLONE (self)); g_return_if_fail (source == NULL || CLUTTER_IS_ACTOR (source)); clutter_clone_set_source_internal (self, source); clutter_actor_queue_relayout (CLUTTER_ACTOR (self)); }
false
false
false
false
false
0
cl_uuid_copy(cl_uuid_t* dst, cl_uuid_t* src) { if (dst == NULL || src == NULL){ cl_log(LOG_ERR, "cl_uuid_copy: " "wrong argument %s is NULL", dst == NULL?"dst":"src"); assert(0); } uuid_copy(dst->uuid, src->uuid); }
false
false
false
false
false
0
get_line(char* line) { while (*line && *line != '\n') line++; if (*line) line++; return line; }
false
false
false
false
false
0
lp_build_blend_factor_unswizzled(struct lp_build_blend_aos_context *bld, unsigned factor, boolean alpha) { LLVMValueRef src_alpha = bld->src_alpha ? bld->src_alpha : bld->src; LLVMValueRef src1_alpha = bld->src1_alpha ? bld->src1_alpha : bld->src1;...
false
false
false
false
false
0
getBiggestSeperator(xmlNodePtr N_set, unsigned int direction, float * C1, float * C2) { int i = 0; int nodeCount = xmlLsCountNode(N_set); float store; int min; float gap, endV; float * stt; float * end; if (nodeCount == 0){ //Add assertion that this shouldn't happen fprintf(stderr,"No child node...
false
false
false
false
false
0
Perl_sv_utf8_downgrade(pTHX_ SV *const sv, const bool fail_ok) { dVAR; PERL_ARGS_ASSERT_SV_UTF8_DOWNGRADE; if (SvPOKp(sv) && SvUTF8(sv)) { if (SvCUR(sv)) { U8 *s; STRLEN len; int mg_flags = SV_GMAGIC; if (SvIsCOW(sv)) { sv_force_normal_flags(sv, 0); ...
false
false
false
false
false
0
find_static_default_routes (struct rtnl_route *route, struct nl_addr *dst, const char *iface, gpointer user_data) { GList **def_routes = user_data; if ( nl_addr_get_prefixlen (dst) == 0 && rtnl_route_get_protocol (route) == RT...
false
false
false
false
false
0
imap_imap(void *vp) { sighandler_type saveint, savepipe; char o[LINESIZE]; enum okay ok = STOP; struct mailbox *mp = &mb; FILE *queuefp = NULL; (void)&saveint; (void)&savepipe; (void)&ok; verbose = value("verbose") != NULL; if (mp->mb_type != MB_IMAP) { printf("Not operating on an IMAP mailbox.\n"); retu...
true
true
false
false
false
1
MallocFrameBuffer(rfbClient* client) { uint64_t allocSize; if(client->frameBuffer) free(client->frameBuffer); /* SECURITY: promote 'width' into uint64_t so that the multiplication does not overflow 'width' and 'height' are 16-bit integers per RFB protocol design SIZE_MAX is the maximum value that ...
false
false
false
false
false
0
propagate_for_debug (rtx insn, rtx last, rtx dest, rtx src, basic_block this_basic_block) { rtx next, loc, end = NEXT_INSN (BB_END (this_basic_block)); rtx (*saved_rtl_hook_no_emit) (enum machine_mode, rtx); struct rtx_subst_pair p; p.to = src; p.adjusted = false; next = NEXT_INSN (insn); last = ...
false
false
false
false
false
0
add_handlers() { add_read_handler("data", read_param, (void *)0); add_write_handler("data", change_param, (void *)0); set_handler_flags("data", Handler::RAW); add_read_handler("limit", read_param, (void *)1); add_write_handler("limit", change_param, (void *)1); add_read_handler("interval", read_param, (void...
false
false
false
false
false
0
cma3000_i2c_read(struct device *dev, u8 reg, char *msg) { struct i2c_client *client = to_i2c_client(dev); int ret; ret = i2c_smbus_read_byte_data(client, reg); if (ret < 0) dev_err(&client->dev, "%s failed (%s, %d)\n", __func__, msg, ret); return ret; }
false
false
false
false
false
0
handleKey(const XKeyEvent &key) { KeySym k = XKeycodeToKeysym(xapp->display(), (KeyCode)key.keycode, 0); unsigned m = KEY_MODMASK(key.state); int uk = (k < 256) ? ASCII::toUpper((char)k) : k; if (fEnabled) { if (key.type == KeyPress) { if (!fSelected) { if (((k == XK...
false
false
false
false
false
0
gst_bin_send_event (GstElement * element, GstEvent * event) { GstBin *bin = GST_BIN_CAST (element); GstIterator *iter; gboolean res = TRUE; gboolean done = FALSE; if (GST_EVENT_IS_DOWNSTREAM (event)) { iter = gst_bin_iterate_sources (bin); GST_DEBUG_OBJECT (bin, "Sending %s event to src children", ...
false
false
false
false
false
0
crypt(AVAES *a, int s, const uint8_t *sbox, const uint32_t *multbl){ int r; for(r=a->rounds-1; r>0; r--){ mix(a->state, multbl, 3-s, 1+s); addkey(a->state[1], a->state[0], a->round_key[r]); } subshift(a->state[0][0], s, sbox); }
false
false
false
false
false
0
drmSetContextFlags(int fd, drm_context_t context, drm_context_tFlags flags) { drm_ctx_t ctx; /* * Context preserving means that no context switches are done between DMA * buffers from one context and the next. This is suitable for use in the * X server (which promises to maintain hardware conte...
false
false
false
false
false
0
stats_callback(void* closure __attribute__((unused)), SquatStatsEvent* params) { switch (params->generic.type) { case SQUAT_STATS_COMPLETED_INITIAL_CHAR: if (verbose > 1) { if (params->completed_initial_char.num_words > 0) { printf("Processing index character %d, %d total words, " ...
false
false
false
false
false
0
mkplan(const solver *ego_, const problem *p_, planner *plnr) { P *pln; const problem_rdft *p; problem *cldp; plan *cld; static const plan_adt padt = { X(rdft_solve), awake, print, destroy }; if (!applicable(ego_, p_, plnr)) return (plan *)0; p = (const problem_rdf...
false
false
false
false
false
0
_create_dm_tree_node(struct dm_tree *dtree, const char *name, const char *uuid, struct dm_info *info, void *context, uint16_t udev_flags) { struct dm_tree_node *node; dev_t dev; if (!(node = dm_pool_zalloc(dtree->mem, sizeof(*node)))) { log_error("_create_dm_tree_node alloc fail...
false
false
false
false
false
0
initialize(struct filter *f, struct initdata *i) { struct palettedata *s = (struct palettedata *) f->data; inhermisc(f, i); if (i->image->palette->type != C256 || i->image->palette->setpalette == NULL) { if (datalost(f, i) || i->image->version != f->imageversion || !s->active) { if (!s->active) ...
false
false
false
false
false
0
replaceXRef(XRef *xrefA) { Object obj1; Dict *pageDict = pageObj.getDict()->copy(xrefA); xref = xrefA; trans.free(); pageDict->lookupNF("Trans", &trans); annotsObj.free(); pageDict->lookupNF("Annots", &annotsObj); contents.free(); pageDict->lookupNF("Contents", &contents); if (contents.isArray()) { ...
false
false
false
false
false
0
Util_splitpath(const char *path, char *dir_part, char *file_part) { const char *p; /* find the last Util_DIR_SEP_CHAR except the last character */ for (p = path + strlen(path) - 2; p >= path; p--) { if (*p == Util_DIR_SEP_CHAR #ifdef DIR_SEP_BACKSLASH /* on DOSish systems slash can be also used as a directory sepa...
false
false
false
false
false
0
ConsentAddUser(CONSENTUSERS **ppCU, char *id, short not) #else ConsentAddUser(ppCU, id, not) CONSENTUSERS **ppCU; char *id; short not; #endif { CONSENTUSERS *u = (CONSENTUSERS *)0; CONSENTUSERS *p = (CONSENTUSERS *)0; for (u = *ppCU; u != (CONSENTUSERS *)0; u = u->next) { if (strcmp(u->user->n...
false
false
false
true
false
1
net2272_plat_probe(struct platform_device *pdev) { struct net2272 *dev; int ret; unsigned int irqflags; resource_size_t base, len; struct resource *iomem, *iomem_bus, *irq_res; irq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); iomem_bus = platform...
false
false
false
false
false
0
cib_process_delete_absolute(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, xmlNode * existing_cib, xmlNode ** result_cib, xmlNode ** answer) { xmlNode *failed = NULL; int result = pcmk_ok; xmlNode *update_section = NU...
false
false
false
false
false
0
dfscc(graph_t * g, node_t * n, int cc) { edge_t *e; if (ND_mark(n) == 0) { ND_mark(n) = cc; for (e = agfstout(g, n); e; e = agnxtout(g, e)) dfscc(g, aghead(e), cc); for (e = agfstin(g, n); e; e = agnxtin(g, e)) dfscc(g, agtail(e), cc); } }
false
false
false
false
false
0
refresh_player_pov_indicator(struct editbar *eb) { GtkListStore *store; GdkPixbuf *flag; GtkTreeIter iter; GtkWidget *combo; int index = -1, i; if (eb == NULL || eb->player_pov_store == NULL) { return; } store = eb->player_pov_store; gtk_list_store_clear(store); gtk_list_store_append(store, &...
false
false
false
false
false
0
gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) { const int width = gdImageSX(im); const int height = gdImageSY(im); int x,y; int match; gdRect crop; crop.x = 0; crop.y = 0; crop.width = 0; crop.height = 0; /* Pierre: crop everything sounds bad */ if (threshold > 100.0...
false
false
false
false
false
0
AUDxDAT (int nr, uae_u16 v, uaecptr addr) { struct audio_channel_data *cdp = audio_channel + nr; int chan_ena = (dmacon & DMA_MASTER) && (dmacon & (1 << nr)); #if DEBUG_AUDIO > 0 if (debugchannel (nr) && (DEBUG_AUDIO > 1 || (!chan_ena || addr == 0xffffffff || (cdp->state != 2 && cdp->state != 3)))) { write_log (_...
false
false
false
false
false
0
FS_TolowerPath (char *path) { int i = 0; static char buf[MAX_OSPATH]; // path can be const char *, so thats why do buf[i] = tolower(path[i]); while (path[i++]); return buf; }
false
false
false
false
false
0
tls_gd_to_ie(const Relocate_info<32, false>* relinfo, size_t relnum, Output_segment*, const elfcpp::Rel<32, false>& rel, unsigned int, elfcpp::Elf_types<32>::Elf_Addr value, unsigned char* view, section_size_type view_size) { // leal foo(,%ebx,1),%eax; call ___t...
false
false
false
false
false
0
udc_txfifo_write(struct udc_ep *ep, struct usb_request *req) { u8 *req_buf; u32 *buf; int i, j; unsigned bytes = 0; unsigned remaining = 0; if (!req || !ep) return; req_buf = req->buf + req->actual; prefetch(req_buf); remaining = req->length - req->actual; buf = (u32 *) req_buf; bytes = ep->ep....
false
false
false
false
false
0
date2timestamp(DateADT dateVal) { Timestamp result; if (DATE_IS_NOBEGIN(dateVal)) TIMESTAMP_NOBEGIN(result); else if (DATE_IS_NOEND(dateVal)) TIMESTAMP_NOEND(result); else { #ifdef HAVE_INT64_TIMESTAMP /* date is days since 2000, timestamp is microseconds since same... */ result = dateVal * USECS_PER_DAY;...
false
false
false
false
false
0
Construct (NPObject *aObject, const NPVariant *argv, uint32_t argc, NPVariant *_result) { totemNPObject* object = static_cast<totemNPObject*> (aObject); return object->Construct (argv, argc, _result); }
false
false
false
false
false
0
_rtl8723be_set_fw_clock_on(struct ieee80211_hw *hw, u8 rpwm_val, bool b_need_turn_off_ckk) { struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); bool b_support_remote_wake_up; u32 count = 0, isr_regaddr, content; bool b_schedule_timer = b_need_turn_off_ckk; rtlpriv-...
false
false
false
false
false
0
u4BigEndian(u4_int num) { if(isBigEndian()) return num; else return ((num & 0xFF)<<24) + ((num >> 8 & 0xFF)<<16) + ((num >> 16 & 0xFF)<<8) + (num >> 24); }
false
false
false
false
false
0
contentWidth() const { short w = m_width - style()->borderLeftWidth() - style()->borderRightWidth(); w -= paddingLeft() + paddingRight(); if (m_layer && scrollsOverflowY()) w -= m_layer->verticalScrollbarWidth(); //kDebug( 6040 ) << "RenderBox::contentWidth(2) = " << w; return w; }
false
false
false
false
false
0
get_client_finished(SSL *s) { unsigned char *p; int i, n; unsigned long len; p=(unsigned char *)s->init_buf->data; if (s->state == SSL2_ST_GET_CLIENT_FINISHED_A) { i=ssl2_read(s,(char *)&(p[s->init_num]),1-s->init_num); if (i < 1-s->init_num) return(ssl2_part_read(s,SSL_F_GET_CLIENT_FINISHED,i)); s->i...
false
false
false
false
false
0
VerifyFreeSpace(char *file,struct Attributes a,struct Promise *pp) { struct stat statbuf; long kilobytes; #ifdef MINGW if (!a.volume.check_foreign) { CfOut(cf_verbose, "", "storage.volume.check_foreign is not supported on Windows (checking every mount)"); } #endif /* MINGW */ if (cfstat(file,&statbuf) == -1) ...
false
false
false
false
false
0
unity_webapps_indicator_view_messaging_menu_create_mmapp (UnityWebappsIndicatorViewMessagingMenu *self) { gchar *desktop_id; g_return_if_fail (self->priv->mmapp == NULL); /* The messaging menu only accepts desktop file ids and looks for * corresponding applications in XDG_DATA_DIRS. Since we know that * ...
false
false
false
false
false
0
MuTGetEvent(MuTData *event) { MuTReadPacket(event->fd, packet); /* Sync bit always must be set to 1 */ if ((*packet & MuT_PANEL_SYNC_MASK) == 0) return 0; if (*packet & MuT_PANEL_TOUCH_MASK) event->action = MUT_PANEL_TOUCH; else event->action = MUT_PANE...
false
false
false
false
false
0
getreal(float defval) { float v = number.has * number.val; if(!number.has) return defval; while(--number.expon > 0) v *= 0.1; return v; }
false
false
false
false
false
0
gst_siren_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf) { GstSirenEnc *enc; GstFlowReturn ret = GST_FLOW_OK; GstBuffer *out_buf; guint8 *in_data, *out_data; guint i, size, num_frames; gint out_size; #ifndef GST_DISABLE_GST_DEBUG gint in_size; #endif gint encode_ret; GstMapInfo inmap, outm...
false
false
false
false
false
0
bnxt_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) { struct bnxt *bp = netdev_priv(dev); if ((ering->rx_pending > BNXT_MAX_RX_DESC_CNT) || (ering->tx_pending > BNXT_MAX_TX_DESC_CNT) || (ering->tx_pending <= MAX_SKB_FRAGS)) return -EINVAL; if (netif_running(dev)) bnxt...
false
false
false
false
false
0