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
tradspool_retrieve(const TOKEN token, const RETRTYPE amount) { char *path; ARTHANDLE *art; static TOKEN ret_token; if (token.type != TOKEN_TRADSPOOL) { SMseterror(SMERR_INTERNAL, NULL); return NULL; } if ((path = TokenToPath(token)) == NULL) { SMseterror(SMERR_NOENT, NULL); return NULL; ...
false
false
false
false
false
0
gst_collect_pads2_set_flushing (GstCollectPads2 * pads, gboolean flushing) { g_return_if_fail (pads != NULL); g_return_if_fail (GST_IS_COLLECT_PADS2 (pads)); /* NOTE since this eventually calls _pop, some (STREAM_)LOCK is needed here */ GST_COLLECT_PADS2_STREAM_LOCK (pads); gst_collect_pads2_set_flushing_unl...
false
false
false
false
false
0
app_write_learn_status (app_t app, ctrl_t ctrl, unsigned int flags) { gpg_error_t err; if (!app) return gpg_error (GPG_ERR_INV_VALUE); if (!app->ref_count) return gpg_error (GPG_ERR_CARD_NOT_INITIALIZED); if (!app->fnc.learn_status) return gpg_error (GPG_ERR_UNSUPPORTED_OPERATION); /* We do not ...
false
false
false
false
false
0
getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*const*/ { UErrorCode status = U_ZERO_ERROR; initTransitionRules(status); if (U_FAILURE(status)) { return FALSE; } if (finalZone != NULL) { if (inclusive && base == firstFinalTZTransition->getTime()) { ...
false
false
false
false
false
0
mgmt_disconnect(int index, bdaddr_t *bdaddr, uint8_t bdaddr_type) { char buf[MGMT_HDR_SIZE + sizeof(struct mgmt_cp_disconnect)]; struct mgmt_hdr *hdr = (void *) buf; struct mgmt_cp_disconnect *cp = (void *) &buf[sizeof(*hdr)]; char addr[18]; ba2str(bdaddr, addr); DBG("index %d %s", index, addr); memset(buf, 0,...
false
false
false
false
false
0
ixgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) { struct ixgbe_adapter *adapter = netdev_priv(netdev); if (hfunc) *hfunc = ETH_RSS_HASH_TOP; if (indir) ixgbe_get_reta(adapter, indir); if (key) memcpy(key, adapter->rss_key, ixgbe_get_rxfh_key_size(netdev)); return 0; }
false
false
false
false
false
0
pack_Y41B (const GstVideoFormatInfo * info, GstVideoPackFlags flags, const gpointer src, gint sstride, gpointer data[GST_VIDEO_MAX_PLANES], const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site, gint y, gint width) { int i; guint8 *destY = GET_Y_LINE (y); guint8 *destU = GET_U_LINE (...
false
false
false
false
false
0
gmpc_meta_text_view_set_text_from_metadata (GmpcMetaTextView * self, MetaData * met) { #line 738 "gmpc-meta-text-view.c" #define __GOB_FUNCTION__ "Gmpc:Meta:Text:View::set_text_from_metadata" #line 313 "gmpc-meta-text-view.gob" g_return_if_fail (self != NULL); #line 313 "gmpc-meta-text-view.gob" g_return_if_fail (GMP...
false
false
false
false
false
0
get_udp_in_errors() { FILE* f = NULL; u_int64_t errs = 0; char buf[512], *p; int len, i; /* need to reopen /proc/net/snmp file each time, it won't update otherwise */ f = fopen("/proc/net/snmp", "r"); if (!f) { // warn("could not open /proc/net/snmp"); return 0; } ...
false
false
false
false
false
0
instruct_serifs(InstrCt *ct, StemData *stem) { int i, lcnt, rcnt; struct dependent_serif *serif; if ( stem->leftidx == -1 || stem->rightidx == -1 ) return; lcnt = rcnt = 0; for (i=0; i<stem->serif_cnt; i++) { serif = &stem->serifs[i]; if ((serif->is_ball && !instruct_ball_te...
false
false
false
false
false
0
UpdateStatusBar() { int x,y; getmaxyx(stdscr, y, x); char bar[cmCursesMainForm::MAX_WIDTH]; size_t size = strlen(this->Title.c_str()); if ( size >= cmCursesMainForm::MAX_WIDTH ) { size = cmCursesMainForm::MAX_WIDTH-1; } strncpy(bar, this->Title.c_str(), size); for(size_t i=size-1; i<cmCursesM...
false
false
false
false
true
1
insert( const gnSeqI offset, const gnSeqC *bases, const gnSeqI len){ STACK_TRACE_START string str(bases, len); gnStringSpec gpbs(str); insert(offset, gpbs); STACK_TRACE_END }
false
false
false
false
false
0
linkNamedMDNodes() { const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); for (const NamedMDNode &NMD : SrcM->named_metadata()) { // Don't link module flags here. Do them separately. if (&NMD == SrcModFlags) continue; NamedMDNode *DestNMD = DstM->getOrInsertNamedMetadata(NMD.getName())...
false
false
false
false
false
0
cpl_bivector_copy(cpl_bivector * self, const cpl_bivector * other) { return cpl_vector_copy(cpl_bivector_get_x(self), cpl_bivector_get_x_const(other)) || cpl_vector_copy(cpl_bivector_get_y(self), cpl_bivector_get_y_con...
false
false
false
false
false
0
paintEvent( QPaintEvent *event ) { Q_UNUSED( event ) QStyleOption op; op.initFrom( this ); bool hovered = op.state & QStyle::State_MouseOver; bool mover = mouseGrabber() == this; if( !hovered || mover ) { return; } QPainter p( this ); p.save(); KIcon icon( "transfo...
false
false
false
false
false
0
xkobo_shot() { int i, j; for(i = 0; i < game.bolts && boltst[i]; i++) ; for(j = i + 1; j < game.bolts && boltst[j]; j++) ; if(j >= game.bolts) { sound.g_player_overheat(1); return 1; } shot_single(i, di, 0); shot_single(j, (di > 4) ? (di - 4) : (di + 4), 0); sound.g_player_fire(); return 0; }
false
false
false
false
false
0
getline() { char linebuf[BUFSIZE]; int l = 0, eol = 0, left = 0, right = 0; if (bufsiz == -1) return NULL; while (l < bufsiz && !eol) { linebuf[l++] = out[outc]; switch (out[outc]) { case '\t': break; case 31: { // escape if (++outc == bufsiz) { ...
false
false
false
false
false
0
smc_detect_init (TCHAR **c) { int v, i; ignore_ws (c); v = readint (c); smc_free (); smc_size = 1 << 24; if (currprefs.z3fastmem_size) smc_size = currprefs.z3fastmem_start + currprefs.z3fastmem_size; smc_size += 4; smc_table = xmalloc (struct smc_item, smc_size); if (!smc_table) return; for (i = 0; i < s...
false
false
false
false
false
0
flmCurCSTestRec( CURSOR * pCursor, FLMUINT uiDrn, FlmRecord * pTestRec, FLMBOOL * pbIsMatchRV ) { RCODE rc = FERR_OK; CS_CONTEXT * pCSContext = pCursor->pCSContext; FCL_WIRE Wire( pCSContext); // If there is no VALID id for the cursor, get one. if (pCursor->uiCursorId == FCS_INVALID_ID) { if (RC_B...
false
false
false
false
false
0
pn544_hci_i2c_irq_thread_fn(int irq, void *phy_id) { struct pn544_i2c_phy *phy = phy_id; struct i2c_client *client; struct sk_buff *skb = NULL; int r; if (!phy || irq != phy->i2c_dev->irq) { WARN_ON_ONCE(1); return IRQ_NONE; } client = phy->i2c_dev; dev_dbg(&client->dev, "IRQ\n"); if (phy->hard_fault !=...
false
false
false
false
false
0
test_threading(tst_case *tc, void *data) { int i; pthread_t thread_id[NTHREADS]; Index *index = (Index *)data; (void)data; (void)tc; for(i=0; i < NTHREADS; i++) { pthread_create(&thread_id[i], NULL, &indexing_thread, index ); } for(i=0; i < NTHREADS; i++) { pthread_join...
false
false
false
false
false
0
ndmp_sxa_mover_listen (struct ndm_session *sess, struct ndmp_xa_buf *xa, struct ndmconn *ref_conn) { #ifndef NDMOS_OPTION_NO_DATA_AGENT struct ndm_data_agent * da = &sess->data_acb; #endif /* !NDMOS_OPTION_NO_DATA_AGENT */ struct ndm_tape_agent * ta = &sess->tape_acb; ndmp9_error error; int will_write; char ...
false
false
false
false
false
0
SetOutputFormat(int format) { if (format == this->OutputFormat) { return; } this->OutputFormat = format; // convert color format to number of scalar components int numComponents = 1; switch (this->OutputFormat) { case VTK_RGBA: numComponents = 4; break; case VTK_RGB: ...
false
false
false
false
false
0
add_button (int code, const gchar *hint, GtkSignalFunc cb, int show) { barpixwid[code] = gtk_pixmap_new(barpix[code], barmask[code]); gtk_widget_show(barpixwid[code]); mainbarbut[code] = gtk_toolbar_append_item(GTK_TOOLBAR(mainbar), NULL, hint, NULL, barpixwid[code], cb, NULL); if (show) gtk_widget_show(...
false
false
false
false
false
0
AdjustSpacingAndOrigin (int dimensions[3], double spacing[3], double origin[3]) { for (int i = 0; i < 3; i++) { if (spacing[i] < 0) { origin[i] = origin[i] + spacing[i] * dimensions[i]; spacing[i] = -spacing[i]; } } vtkDebugMacro("Adjusted Spacing " << spacing[0] << ", " << sp...
false
false
false
false
false
0
error_from_lstat_reply (GVfsBackendSftp *backend, int reply_type, GDataInputStream *reply, guint32 len, GVfsJob *job, gpointer user_data) { ErrorFromStatData *data = user_data; GFileInfo *info; gint stat_error; stat_error = 0; info = NULL; if (reply_type == SSH_FXP_STATUS) stat_error = r...
false
false
false
false
false
0
CountArrayItems ( XMP_StringPtr schemaNS, XMP_StringPtr arrayName ) const { XMP_Assert ( (schemaNS != 0) && (arrayName != 0) ); // Enforced by wrapper. XMP_ExpandedXPath expPath; ExpandXPath ( schemaNS, arrayName, &expPath ); const XMP_Node * arrayNode = FindConstNode ( &tree, expPath ); if ( arrayNod...
false
false
false
false
false
0
ComputeKeyedLoadOrStoreElement( JSObject* receiver, bool is_store, StrictModeFlag strict_mode) { Code::Flags flags = Code::ComputeMonomorphicFlags( is_store ? Code::KEYED_STORE_IC : Code::KEYED_LOAD_IC, NORMAL, strict_mode); String* name = is_stor...
false
false
false
false
false
0
combine_space(gs_ref_memory_t * mem) { alloc_save_t *saved = mem->saved; gs_ref_memory_t *omem = &saved->state; chunk_t *cp; chunk_t *csucc; alloc_close_chunk(mem); for (cp = mem->cfirst; cp != 0; cp = csucc) { csucc = cp->cnext; /* save before relinking */ if (cp->outer == 0) ...
false
false
false
false
false
0
hx509_ca_sign(hx509_context context, hx509_ca_tbs tbs, hx509_cert signer, hx509_cert *certificate) { const Certificate *signer_cert; AuthorityKeyIdentifier ai; int ret; memset(&ai, 0, sizeof(ai)); signer_cert = _hx509_get_cert(signer); ret = get_AuthorityKeyIdentifier(con...
false
false
false
false
false
0
store_get_iter_for_tracklist(GtkTreeIter * store_iter, GtkTreeIter * artist_iter, GtkTreeIter * record_iter, build_disc_t * disc, map_t ** artist_name_map) { int i; /* check if record already exists */ if (store_contains_disc(store_iter, artist_iter, record_iter, disc)) { if (disc->artis...
false
false
false
false
false
0
ne_request_create(ne_session *sess, const char *method, const char *path) { ne_request *req = ne_calloc(sizeof *req); req->session = sess; req->headers = ne_buffer_create(); /* Add in the fixed headers */ add_fixed_headers(req); /* Set the standard stuff */ req->method = ne_strd...
false
false
false
false
false
0
write(size_t size, const void* buf) { if (size + fPos > fMax) { size_t newSize = (fMax == 0) ? BLOCKSIZE : fMax * 2; while (newSize < (size + fPos)) newSize *= 2; resize(newSize); } memcpy(fData + fPos, buf, size); fPos += size; if (fPos > fSize) fSize = f...
false
false
false
false
false
0
hideBelow(VisuColorization *dt _U_, const VisuColorizationNodeData *values, gpointer data) { struct _HideBelowData *st = (struct _HideBelowData*)data; float *arr; g_return_val_if_fail(st->column < values->data->len, FALSE); arr = (float*)values->data->data; return (arr[st->column] ...
false
false
false
false
false
0
extend_min5_a(EDGE *e1, EDGE *e2) /* extends a graph in the way given by the type a extension for 5-connected triangulations. The edges e1, e2 start at the same vertex and must have at least two edges on each of their sides. It returns the edge characterizing this operation. */ { register EDGE *e3, *e4, ...
false
false
false
false
false
0
add_typedef_typeinfo(msft_typelib_t *typelib, type_t *tdef) { msft_typeinfo_t *msft_typeinfo; int alignment; if (-1 < tdef->typelib_idx) return; tdef->typelib_idx = typelib->typelib_header.nrtypeinfos; msft_typeinfo = create_msft_typeinfo(typelib, TKIND_ALIAS, tdef->name, tdef->attrs); ...
false
false
false
false
false
0
get_fields_for_table(const Document* document, const Glib::ustring& table_name, bool /* including_system_fields */) { //We could also get the field definitions from the database: //But that is inefficient because this method is called so often, //and that meta information is not even available if the user does no...
false
false
false
false
false
0
workio_thread(void *userdata) { struct thr_info *mythr = userdata; CURL *curl; bool ok = true; curl = curl_easy_init(); if (unlikely(!curl)) { applog(LOG_ERR, "CURL initialization failed"); return NULL ; } if(jsonrpc_2) { ok = workio_login(curl); } while (o...
false
false
false
false
false
0
variantSet(enum VariantType type, void *value, unsigned long valueSize, void *userParam, void (*setter)(void *userParam, const char *string)) { switch (type) { case VARIANT_TYPE_STRING: setter(userParam, value); break; case VARIANT_TYPE_SIGNED_INTEGER: if (valueSize >= sizeof(signed long)) { char ...
true
true
false
false
false
1
memChr(memBuf_t *mp, char c) { char *ret = strchr(mp->readptr, c); if (ret) mp->readptr = ret; return ret; }
false
false
false
false
false
0
getChildNodeWithAttribute(XMLCSTR name,XMLCSTR attributeName,XMLCSTR attributeValue, int *k) const { int i=0,j; if (k) i=*k; XMLNode x; XMLCSTR t; do { x=getChildNode(name,&i); if (!x.isEmpty()) { if (attributeValue) { j...
false
false
false
false
false
0
gtt_projects_tree_set_project_status (GttProjectsTree *gpt, GtkTreeStore *tree_model, GttProject *prj, GtkTreeIter *iter) { gchar *value; switch (gtt_project_get_status (prj)) { case GTT_NO_STATUS: value = "-"; break; case GTT_NOT_STARTED: value = _("Not Started"); break; case GTT_IN_PROGRESS: value = _("In Pro...
false
false
false
false
false
0
g_set_global_schema_csn(CSN *csn) { CSN *tmp = NULL; if (NULL != global_schema_csn) { tmp = global_schema_csn; } global_schema_csn = csn; if (NULL != tmp) { csn_free(&tmp); } }
false
false
false
false
false
0
repl_sup_init_ext () { int rc; /* populate the extension list */ repl_sup_ext_list[REPL_SUP_EXT_OP].object_name = SLAPI_EXT_OPERATION; rc = slapi_register_object_extension(repl_plugin_name, SLAPI_EXT_OPERATION, supplier_operation_extension_constructor, supplier_opera...
false
false
false
false
false
0
dxf_ray_init ( DxfRay *dxf_ray /*!< DXF line entity. */ ) { #if DEBUG DXF_DEBUG_BEGIN #endif /* Do some basic checks. */ if (dxf_ray == NULL) { fprintf (stderr, (_("Warning in %s () a NULL pointer was passed.\n")), ...
false
false
false
false
false
0
rpz_get_zbits(ns_client_t *client, dns_rdatatype_t ip_type, dns_rpz_type_t rpz_type) { dns_rpz_zones_t *rpzs; dns_rpz_st_t *st; dns_rpz_zbits_t zbits; rpzs = client->view->rpzs; switch (rpz_type) { case DNS_RPZ_TYPE_CLIENT_IP: zbits = rpzs->have.client_ip; break; case DNS_RPZ_TYPE_QNAME: zbits = r...
false
false
false
false
false
0
add_code_page (uintptr_t *hash, uintptr_t hsize, uintptr_t page) { uintptr_t i; uintptr_t start_pos; start_pos = (page >> CPAGE_SHIFT) % hsize; i = start_pos; do { if (hash [i] && CPAGE_ADDR (hash [i]) == CPAGE_ADDR (page)) { return 0; } else if (!hash [i]) { hash [i] = page; return 1; } /* wrap a...
false
false
false
false
false
0
ssl_sock_load_cert_chain_file(SSL_CTX *ctx, const char *file, struct bind_conf *s, char **sni_filter, int fcount) { BIO *in; X509 *x = NULL, *ca; int i, err; int ret = -1; int order = 0; X509_NAME *xname; char *str; #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME STACK_OF(GENERAL_NAME) *names; #endif in = BIO_new(BIO_s_f...
false
false
false
false
false
0
vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) { /* Signal the Guest tell them we used something up. */ if (vq->call_ctx && vhost_notify(dev, vq)) eventfd_signal(vq->call_ctx, 1); }
false
false
false
false
false
0
timeout_epilog(thread_t * thread, char *smtp_msg, char *debug_msg) { checker_t *checker = THREAD_ARG(thread); log_message(LOG_INFO, "Timeout %s server %s." , debug_msg , FMT_HTTP_RS(checker)); /* check if server is currently alive */ if (svr_checker_up(checker->id, checker->rs)) { smtp_alert(check...
false
false
false
false
false
0
openpgp_s2k (const void *passphrase, size_t passphraselen, int algo, int hashalgo, const void *salt, size_t saltlen, unsigned long iterations, size_t keysize, void *keybuffer) { gpg_err_code_t ec; gcry_md_hd_t md; char *key = keybuffer; int pass, i; int used...
false
true
false
false
true
1
finish_function (void) { tree fndecl = current_function_decl; if (c_dialect_objc ()) objc_finish_function (); if (TREE_CODE (fndecl) == FUNCTION_DECL && targetm.calls.promote_prototypes (TREE_TYPE (fndecl))) { tree args = DECL_ARGUMENTS (fndecl); for (; args; args = DECL_CHAIN (args)...
false
false
false
false
false
0
operator<(const char *s1, const GStr& s2) { if (s1==NULL) return !s2.is_empty(); return (strcmp(s1, s2.chars()) < 0); }
false
false
false
false
false
0
iwl_mvm_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state) { struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); bool calibrating = ACCESS_ONCE(mvm->calibrating); if (state) set_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status); else clear_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status); wiphy_rfkill_set_hw_...
false
false
false
false
false
0
prime_cache_tree(void) { struct tree *tree = (struct tree *)trees->item; if (!tree) return; active_cache_tree = cache_tree(); prime_cache_tree_rec(active_cache_tree, tree); }
false
false
false
false
false
0
userException(cdrStream& stream, IOP_C* iop_c, const char* repoId) { // Server side returns a user-defined exception, but we seem // to think the operation has none. The IDL used on each side // probably differs. if( omniORB::trace(1) ) { omniORB::logger l; l << "WARNING -- server returned user-...
false
false
false
false
false
0
update_av_offset (GstPlaySink * playsink) { gint64 av_offset; GstPlayAudioChain *achain; GstPlayVideoChain *vchain; av_offset = playsink->av_offset; achain = (GstPlayAudioChain *) playsink->audiochain; vchain = (GstPlayVideoChain *) playsink->videochain; if (achain && vchain && achain->ts_offset && vcha...
false
false
false
false
false
0
DXDelete(Object o) { int rc = 0, i, n; Class class; if (!o) return OK; if (o->count==PERMANENT) return OK; /* sanity checks - up thru dx 2.1.1, this was if DEBUGGED only */ if (o->count < 0) DXErrorReturn(ERROR_DATA_INVALID, "Object deleted too often! (or not an object)"); class =...
false
false
false
false
false
0
skip_whitespace() { while ( std::isspace( stream.peek() ) ) stream.get(); }
false
false
false
false
false
0
dirvote_perform_vote(void) { crypto_pk_t *key = get_my_v3_authority_signing_key(); authority_cert_t *cert = get_my_v3_authority_cert(); networkstatus_t *ns; char *contents; pending_vote_t *pending_vote; time_t now = time(NULL); int status; const char *msg = ""; if (!cert || !key) { log_warn(LD_N...
false
false
false
false
false
0
changeKomi(But *but) { CliMatch *m = but_packet(but); char komiStr[10]; assert(MAGIC(m)); if (newKomi(m->komiIn, butTextin_get(m->komiIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (but == m->komiUp) { m->komi += 1.0; if (m->komi > 99.5) m->komi = 99.5; } else { assert(but == m->komiD...
true
true
false
false
false
1
usr_string_list_create(UsrCategory category, gint id, gint *index) { GList *list = NULL, *iter; g_hash_table_foreach(category == UIC_USER ? the_usr.dict_uname : the_usr.dict_gname, list_visit, &list); if(index != NULL) /* Do we need to search? */ { gint tmp, pos; for(iter = list, pos = 0; iter != NULL; iter...
false
false
false
false
false
0
ar9300_read_eeprom(struct ath_hw *ah, int address, u8 *buffer, int count) { struct ath_common *common = ath9k_hw_common(ah); int i; if ((address < 0) || ((address + count) / 2 > AR9300_EEPROM_SIZE - 1)) { ath_dbg(common, EEPROM, "eeprom address not in range\n"); return false; } /* * Since we're r...
false
false
false
false
false
0
ldns_resolver_send_pkt(ldns_pkt **answer, ldns_resolver *r, ldns_pkt *query_pkt) { ldns_pkt *answer_pkt = NULL; ldns_status stat = LDNS_STATUS_OK; size_t *rtt; stat = ldns_send(&answer_pkt, (ldns_resolver *)r, query_pkt); if (stat != LDNS_STATUS_OK) { if(answer_pkt) { ldns_pkt_free(answer_pkt); ans...
false
false
false
false
false
0
isc_file_splitpath(isc_mem_t *mctx, char *path, char **dirname, char **basename) { char *dir, *file, *slash; if (path == NULL) return (ISC_R_INVALIDFILE); slash = strrchr(path, '/'); if (slash == path) { file = ++slash; dir = isc_mem_strdup(mctx, "/"); } else if (slash != NULL) { file = ++slash; dir =...
false
false
false
false
false
0
PyFF_ActiveGlyph(PyObject *self, PyObject *args) { if ( sc_active_in_ui==NULL ) Py_RETURN_NONE; return( PySC_From_SC_I( sc_active_in_ui )); }
false
false
false
false
false
0
TmNPolarDecomp(const TransformN *A, TransformN *Q) { HPtNCoord limit, g, f, pf; TransformN *a; Q = TmNCopy(A, Q); limit = (1.0+EPS)*sqrt((float)(A->odim-1)); a = TmNInvert(Q, NULL); g = sqrt(frob_norm(a)/frob_norm(Q)); axpbytNxN(0.5*g, Q, 0.5/g, a, Q); f = frob_norm(Q); pf = 1e8; while (f > limit &...
false
false
false
false
false
0
expand_acl(struct proc_acl *proc, struct role_acl *role) { char *tmpproc; struct proc_acl *tmpp; tmpproc = (char *)alloca(strlen(proc->filename) + 1); strcpy(tmpproc, proc->filename); while (parent_dir(proc->filename, &tmpproc)) { tmpp = lookup_acl_subject_by_name(role, tmpproc); if (tmpp) { proc->...
false
true
false
false
false
1
skipws(ScmPort *port, ScmReadContext *ctx) { ScmChar c0; for (;;) { int c = Scm_GetcUnsafe(port); if (c == EOF) return c; if (c <= 127) { if (isspace(c)) continue; if (c == ';') { read_comment(port); continue; } ...
false
false
false
false
false
0
pretty_process_dot(const char *infile, bool file_is_expr, const char *outfile, ErrorHandler *errh) { RouterT *r = read_router(infile, file_is_expr, errh); if (!r) return; // open output file FILE *outf = open_output_file(outfile, errh); if (!outf) { delete r; return; } // write dot...
false
false
false
false
false
0
readChar(const XMLByte*& srcPtr, const XMLByte* srcEnd, XMLByte& firstByte, XMLCh& UTF8Char, const Charset::Tables& tables){ if(!srcPtr || !*srcPtr || srcPtr>=srcEnd) return 0; firstByte=*srcPtr++; UTF8Char=tables.fromTable[firstByte]; if(UTF8Char<0x80) return 1; else if(UTF8Char<0x800) return 2; else if(...
false
false
false
false
false
0
test_slice(isl_ctx *ctx) { const char *str; isl_map *map; int equal; str = "{ [i] -> [j] }"; map = isl_map_read_from_str(ctx, str); map = isl_map_equate(map, isl_dim_in, 0, isl_dim_out, 0); equal = map_check_equal(map, "{ [i] -> [i] }"); isl_map_free(map); if (equal < 0) return -1; str = "{ [i] -> [j] }";...
false
false
false
false
false
0
authenticateAuthUserRequestSetIp(auth_user_request_t * auth_user_request, struct in_addr ipaddr, request_t * request) { auth_user_ip_t *ipdata, *next; auth_user_t *auth_user; char *ip1; int found = 0; CBDATA_INIT_TYPE(auth_user_ip_t); if (!auth_user_request->auth_user) return; auth_user = a...
false
false
false
false
false
0
LI17__LEFT_PARENTHESIS_READER__debug(V126,V127) object V126;object V127; { VMB17 VMS17 VMV17 goto TTL; TTL:; {object V128; register object V129; V128= Cnil; V129= symbol_value(((object)VV[29])); if(!((symbol_value(((object)VV[29])))==(Ct))){ goto T402;} setq(((object)VV[29]),Cnil); goto T402; T402:; if(((V1...
false
false
false
false
false
0
png_colorspace_check_xy(png_XYZ *XYZ, const png_xy *xy) { int result; png_xy xy_test; /* As a side-effect this routine also returns the XYZ endpoints. */ result = png_XYZ_from_xy(XYZ, xy); if (result) return result; result = png_xy_from_XYZ(&xy_test, XYZ); if (result) return result; if (png_c...
false
false
false
false
false
0
unit_snprintf(char *s, int inLen, double inNum, char inFormat) { int conv; const char *suffix; const char *format; /* convert to bits for [bkmga] */ if (!isupper((int) inFormat)) { inNum *= 8; } switch (toupper(inFormat)) { case 'B': conv = UNIT_CONV; break...
false
false
false
false
true
1
delrdsdebug() { rdsdebug_list *DelDebug; DelDebug = HEAD_RDSDEBUG; if ( DelDebug != (rdsdebug_list *)NULL ) { HEAD_RDSDEBUG = DelDebug->NEXT; freerdsdebug( DelDebug ); } }
false
false
false
false
false
0
pixbuf_inline(const gchar *key) { gint i; if (!key) return NULL; i = 0; while (inline_pixbuf_data[i].key) { if (strcmp(inline_pixbuf_data[i].key, key) == 0) { return gdk_pixbuf_new_from_inline(-1, inline_pixbuf_data[i].data, FALSE, NULL); } i++; } log_printf("warning: inline pixbuf key \"%s\" n...
false
false
false
false
false
0
glp_ios_heur_sol(glp_tree *tree, const double x[]) { glp_prob *mip = tree->mip; int m = tree->orig_m; int n = tree->n; int i, j; double obj; xassert(mip->m >= m); xassert(mip->n == n); /* check values of integer variables and compute value of the objective function...
false
false
false
false
false
0
set_quote_source_name( gpointer pObject, gpointer pValue ) { gnc_commodity* pCommodity; const gchar* quote_source_name = (const gchar*)pValue; gnc_quote_source* quote_source; g_return_if_fail( pObject != NULL ); g_return_if_fail( GNC_IS_COMMODITY(pObject) ); if ( pValue == NULL ) return; ...
false
false
false
false
false
0
yuyv_to_yuv_soa(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i, LLVMValueRef *y, LLVMValueRef *u, LLVMValueRef *v) { LLVMBuilderRef builder = gallivm->builder; struct lp_type type; LL...
false
false
false
false
false
0
setContent(GooString* new_content) { if (isReadOnly()) { error(-1, "FormWidgetText::setContentCopy called on a read only field\n"); return; } modified = gTrue; if (new_content == NULL) { parent->setContentCopy(NULL); } else { //append the unicode marker <FE FF> if needed if (!new_content-...
false
false
false
false
false
0
setCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal) { if (_setCharPropertyFn) return _setCharPropertyFn(_widget, prop, index, value, doSignal); else return GWEN_ERROR_NOT_SUPPORTED; }
false
false
false
false
false
0
dump_tree (gchar *current_key, xmms_config_property_t *prop, dump_tree_data_t *data) { gchar *prop_name, section[256]; gchar *dot = NULL, *current_last_dot, *start = current_key; prop_name = strrchr (current_key, '.'); /* check whether we need to open a new section. * this is always the case if data-...
false
false
false
false
false
0
snd_rme32_playback_getrate(struct rme32 * rme32) { int rate; rate = ((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_0) & 1) + (((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_1) & 1) << 1); switch (rate) { case 1: rate = 32000; break; case 2: rate = 44100; break; case 3: rate = 48000; break; default: retu...
false
false
false
false
false
0
nautilus_file_get_string_attribute_with_default_q (NautilusFile *file, GQuark attribute_q) { char *result; guint item_count; gboolean count_unreadable; NautilusRequestStatus status; result = nautilus_file_get_string_attribute_q (file, attribute_q); if (result != NULL) { return result; } /* Supply default va...
false
false
false
false
false
0
H5C_get_evictions_enabled(const H5C_t *cache_ptr, hbool_t * evictions_enabled_ptr) { herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(FAIL) if ( ( cache_ptr == NULL ) || ( cache_ptr->magic != H5C__H5C_T_MAGIC ) ) { HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, F...
false
false
false
false
false
0
td_tx_submit(struct dma_async_tx_descriptor *txd) { struct timb_dma_desc *td_desc = container_of(txd, struct timb_dma_desc, txd); struct timb_dma_chan *td_chan = container_of(txd->chan, struct timb_dma_chan, chan); dma_cookie_t cookie; spin_lock_bh(&td_chan->lock); cookie = dma_cookie_assign(txd); if (list_...
false
false
false
false
false
0
tp_base_contact_list_channel_dispose (GObject *object) { TpBaseContactListChannel *self = TP_BASE_CONTACT_LIST_CHANNEL (object); void (*dispose) (GObject *) = G_OBJECT_CLASS (_tp_base_contact_list_channel_parent_class)->dispose; _tp_base_contact_list_channel_close (self); if (dispose != NULL) dispose ...
false
false
false
false
false
0
end_test_iterator_result (CutStreamParser *parser, CutStreamParserPrivate *priv, GMarkupParseContext *context, const gchar *element_name, GError **error) { if (!priv->test_iterator_result) return; if (priv->run_context) { CutTestResult *result...
false
false
false
false
false
0
acquire_group(struct mcast_port *port, union ib_gid *mgid, gfp_t gfp_mask) { struct mcast_group *group, *cur_group; unsigned long flags; int is_mgid0; is_mgid0 = !memcmp(&mgid0, mgid, sizeof mgid0); if (!is_mgid0) { spin_lock_irqsave(&port->lock, flags); group = mcast_find(port, mgid); if (group) g...
false
false
false
false
false
0
PyvtkTransform_GetOrientation_s3(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetOrientation"); double temp0[3]; double save0[3]; const int size0 = 3; vtkMatrix4x4 *temp1 = NULL; PyObject *result = NULL; if (ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetVTKObject(temp1, ...
false
false
false
false
false
0
gst_video_calculate_display_ratio (guint * dar_n, guint * dar_d, guint video_width, guint video_height, guint video_par_n, guint video_par_d, guint display_par_n, guint display_par_d) { gint num, den; gint tmp_n, tmp_d; g_return_val_if_fail (dar_n != NULL, FALSE); g_return_val_if_fail (dar_d != NUL...
false
false
false
false
false
0
move_win_sym() { #if 0 dbg("move_win_sym %d\n", current_CS->in_method); #endif if (!gwin_sym) return; int wx, wy; #if 0 if (hime_pop_up_win) { wx = dpy_xl; } else #endif { // dbg("win_y: %d %d\n", win_y, win_yl); update_active_in_win_geom(); wx = win_x; wy = win_y + win_yl; } int ...
false
false
false
false
false
0
dfx_ctl_update_filters(DFX_board_t *bp) { int i = 0; /* used as index */ /* Fill in command request information */ bp->cmd_req_virt->cmd_type = PI_CMD_K_FILTERS_SET; /* Initialize Broadcast filter - * ALWAYS ENABLED * */ bp->cmd_req_virt->filter_set.item[i].item_code = PI_ITEM_K_BROADCAST; bp->cmd_req_vi...
false
false
false
false
false
0
gnac_profiles_utils_init_raw_audioconvert(XMLDoc *doc) { if (G_UNLIKELY(!raw)) { raw = gnac_profiles_xml_engine_get_text_node(doc, "//process[@id='gstreamer-audio']"); } if (G_UNLIKELY(!audioconvert)) { audioconvert = gnac_profiles_xml_engine_get_text_node(doc, "//process[@id='audioconver...
false
false
false
false
false
0
mono_set_assemblies_path (const char* path) { char **splitted, **dest; splitted = g_strsplit (path, G_SEARCHPATH_SEPARATOR_S, 1000); if (assemblies_path) g_strfreev (assemblies_path); assemblies_path = dest = splitted; while (*splitted) { char *tmp = *splitted; if (*tmp) *dest++ = mono_path_canonicalize ...
false
false
false
false
false
0
estPairRemember( ajint col, ajint row ) { EstOSavePair rp; ajint left; ajint right; ajint middle; ajint d; ajint bad; if(!rpairs_sorted) { qsort(rpair, rpairs, sizeof(EstOSavePair), estSavePairCmp); rpairs_sorted = 1; } rp.col = col; rp.row = row; left = 0; right...
false
false
false
false
false
0
CDB___log_flush(dblp, lsn) DB_LOG *dblp; const DB_LSN *lsn; { DB_LSN t_lsn; LOG *lp; int current, ret; ret = 0; lp = dblp->reginfo.primary; /* * If no LSN specified, flush the entire log by setting the flush LSN * to the last LSN written in the log. Otherwise, check that the LSN * isn't a non-existent ...
false
false
false
false
false
0
stop( KDirLister *lister, bool silent ) { #ifdef DEBUG_CACHE //printDebug(); #endif //kDebug(7004) << "lister:" << lister << "silent=" << silent; const KUrl::List urls = lister->d->lstDirs; Q_FOREACH(const KUrl& url, urls) { stopListingUrl(lister, url, silent); } #if 0 // test code QHa...
false
false
false
false
false
0