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
lj_cf_package_require(lua_State *L) { const char *name = luaL_checkstring(L, 1); int i; lua_settop(L, 1); /* _LOADED table will be at index 2 */ lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED"); lua_getfield(L, 2, name); if (lua_toboolean(L, -1)) { /* is it there? */ if (lua_touserdata(L, -1) == sentinel...
false
false
false
false
false
0
add (boost::shared_ptr<Account> account) { account->trigger_saving.connect (boost::bind (&LM::Bank::save, this)); add_account (account); }
false
false
false
false
false
0
free_cachefile(struct cachefile *cacheptr) { rb_dlink_node *ptr; rb_dlink_node *next_ptr; if(cacheptr == NULL) return; RB_DLINK_FOREACH_SAFE(ptr, next_ptr, cacheptr->contents.head) { if(ptr->data != emptyline) rb_free(ptr->data); } rb_free(cacheptr); }
false
false
false
false
false
0
_e2_confdlg_category_selected_cb (GtkTreeSelection *selection, E2_ConfigDialogRuntime *rt) { printd (DEBUG, "callback: category selected"); GtkTreeIter iter; GtkTreeModel *model; if (gtk_tree_selection_get_selected (selection, &model, &iter)) { g_free (page_last_name); gint page; gtk_tree_model_get (model,...
false
false
false
false
false
0
skinny_session(void *data) { int res; struct skinny_req *req; struct skinnysession *s = data; ast_verb(3, "Starting Skinny session from %s\n", ast_inet_ntoa(s->sin.sin_addr)); for (;;) { res = get_input(s); if (res < 0) { ast_verb(3, "Ending Skinny session from %s (bad input)\n", ast_inet_ntoa(s->sin.sin_...
false
false
false
false
false
0
ajSeqBamHeaderGetSortorder(const AjPSeqBamHeader header) { const char* ret = NULL; BamPHeaderLine hline = NULL; AjIList k = NULL; BamPHeaderTag so = NULL; if(!header || !header->dict) return NULL; k = ajListIterNewread(header->dict); while(!ajListIterDone(k)) { hline = ajListIterGet...
false
false
false
false
false
0
cb_locaddr() { GtkWidget *dlg, *isloc, *locwid; dlg = gtk_dialog_new_with_buttons("Set local address", GTK_WINDOW(toplevel), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_OK, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL); isloc = gtk_check_button_new_wi...
false
false
false
false
false
0
cio_byteout(opj_cio_t *cio, unsigned char v) { if (cio->bp >= cio->end) { opj_event_msg(cio->cinfo, EVT_ERROR, "write error\n"); return OPJ_FALSE; } *cio->bp++ = v; return OPJ_TRUE; }
false
false
false
false
false
0
_handle_source_request (client_t *client, const char *uri) { INFO1("Source logging in at mountpoint \"%s\"", uri); if (uri[0] != '/') { WARN0 ("source mountpoint not starting with /"); client_send_401 (client); return; } switch (client_check_source_auth (client, uri)) { ...
false
false
false
false
false
0
SaveVectors(int n, int m, const double* q, int base) { // Store the contents of q. Basically this is a fifo. When a write // with base=0 is called, we start another fifo. if (base == 0) { for (unsigned i=0; i...
false
false
false
false
false
0
qf_age(eap) exarg_T *eap; { qf_info_T *qi = &ql_info; int count; if (eap->cmdidx == CMD_lolder || eap->cmdidx == CMD_lnewer) { qi = GET_LOC_LIST(curwin); if (qi == NULL) { EMSG(_(e_loclist)); return; } } if (eap->addr_count != 0) count = eap->line2; else count = 1; ...
false
false
false
false
false
0
toKeyword(Scanner *s) { std::string t=""; if ( s->match ( "appbar_color_to" ) ) { t = "{"; if ( s->match ( t ) ) { rgbKeywords(s); to.red = temp_color; rgbKeywords(s); to.green = temp_color; rgbKeywords(s); to.blue = temp_color; t = "}"; if ( s->match ( t ) ) { retur...
false
false
false
false
false
0
cbf_read_line (cbf_file *file, const char **line) { int c; char buffer[80]; /* Does the file exist? */ if (!file) return CBF_ARGUMENT; /* Empty the buffer */ file->buffer_used = 0; file->column = 0; /* Read the characters */ do { c = cbf_read_character (file); if (c ...
true
true
false
false
false
1
allocateStrings(UErrorCode &status) { if (U_FAILURE(status)) { return FALSE; } strings = new UVector(uhash_deleteUnicodeString, uhash_compareUnicodeString, 1, status); if (strings == NULL) { // Check for memory allocation error. status = U_MEMORY_ALLOCATION_ERRO...
false
false
false
false
false
0
object_format(PyObject *self, PyObject *args) { PyObject *format_spec; PyObject *self_as_str = NULL; PyObject *result = NULL; Py_ssize_t format_len; if (!PyArg_ParseTuple(args, "O:__format__", &format_spec)) return NULL; #ifdef Py_USING_UNICODE if (PyUnicode_Check(format_spec)) { ...
false
false
false
false
false
0
pkix_pl_LdapResponse_GetMessage( PKIX_PL_LdapResponse *response, LDAPMessage **pMessage, void *plContext) { PKIX_ENTER(LDAPRESPONSE, "PKIX_PL_LdapResponse_GetMessage"); PKIX_NULLCHECK_TWO(response, pMessage); *pMessage = &response->decoded; PKIX_RETURN(LDAPRESPO...
false
false
false
false
false
0
igbvf_intr_msix_rx(int irq, void *data) { struct net_device *netdev = data; struct igbvf_adapter *adapter = netdev_priv(netdev); adapter->int_counter0++; /* Write the ITR value calculated at the end of the * previous interrupt. */ if (adapter->rx_ring->set_itr) { writel(adapter->rx_ring->itr_val, ...
false
false
false
false
false
0
Resize(int& new_w, int& new_h) { if (dga) return -1; Lock(); int r = doResize(new_w, new_h); //printf("DORESIZE %d %d %d\n", new_w, new_h, r); Unlock(); if (r == 0) Refresh(); return r; }
false
false
false
false
false
0
max7359_write_reg(struct i2c_client *client, u8 reg, u8 val) { int ret = i2c_smbus_write_byte_data(client, reg, val); if (ret < 0) dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", __func__, reg, val, ret); return ret; }
false
false
false
false
false
0
createRoot(const char* name, GLESubArgNames* argNames) { GLERC<GLEString> strName(new GLEString(name)); GLESubRoot* root = (GLESubRoot*)m_SubRoots->getObjectByKey(strName); if (root != NULL) { root->updateArgNames(argNames); return root; } else { GLESubRoot* newRoot = new GLESubRoot(strName.get(), argNames); ...
false
false
false
false
false
0
shift_32(Register dst, int subcode) { EnsureSpace ensure_space(this); emit_optional_rex_32(dst); emit(0xD3); emit_modrm(subcode, dst); }
false
false
false
false
false
0
CheckTietzeFlags ( Obj * ptTietze, Int numrels, Obj * flags, Obj * * ptFlags ) { /* get and check the Tietze flags list */ *flags = ptTietze[TZ_FLAGS]; if ( *flags==0 || ! IS_PLIST(*flags) || LEN_PLIST(*f...
false
false
false
false
false
0
__ecereMethod___ecereNameSpace__ecere__gfx__Bitmap_MakeDD(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__Instance * displaySystem) { struct __ecereNameSpace__ecere__gfx__Bitmap * __ecerePointer___ecereNameSpace__ecere__gfx__Bitmap = (struct __ecereNameSpace__ecere__gfx__Bitma...
false
false
false
false
false
0
cgi_initialize_cookies(void) { const char *cookie; /* HTTP_COOKIE environment variable */ char name[128], /* Name string */ value[512], /* Value string */ *ptr; /* Pointer into name/value */ if ((cookie = getenv("HTTP_COOKIE")) == NULL) return; while (*cookie) { /* * Skip leading white...
true
true
false
false
true
1
sqlite_db_collation_needed(pTHX_ SV *dbh, SV *callback) { D_imp_dbh(dbh); if (!DBIc_ACTIVE(imp_dbh)) { sqlite_error(dbh, -2, "attempt to see if collation is needed on inactive database handle"); return; } croak_if_db_is_null(); /* remember the callback within the dbh */ sv_set...
false
false
false
false
false
0
LLVMInitializeNVPTXTargetMC() { for (Target *T : {&TheNVPTXTarget32, &TheNVPTXTarget64}) { // Register the MC asm info. RegisterMCAsmInfo<NVPTXMCAsmInfo> X(*T); // Register the MC codegen info. TargetRegistry::RegisterMCCodeGenInfo(*T, createNVPTXMCCodeGenInfo); // Register the MC instruction in...
false
false
false
false
false
0
rtl92d_phy_rf6052_set_ofdm_txpower(struct ieee80211_hw *hw, u8 *ppowerlevel, u8 channel) { u32 writeval[2], powerbase0[2], powerbase1[2]; u8 index; _rtl92d_phy_get_power_base(hw, ppowerlevel, channel, &powerbase0[0], &powerbase1[0]); for (index = 0; index < 6; index++) { _rtl92d_get_txpower_writeval_by_r...
false
false
false
false
false
0
build_greater_vault(struct cave *c, int y0, int x0) { int i; int numerator = 2; int denominator = 3; /* Only try to build a GV as the first room. */ if (dun->cent_n > 0) return FALSE; /* Level 90+ has a 2/3 chance, level 80-89 has 4/9, ... */ for(i = 90; i > c->depth; i -= 10) { numerator *= 2; denomina...
false
false
false
false
false
0
mp_weight_handler(vector strvec) { struct mpentry * mpe = VECTOR_LAST_SLOT(conf->mptable); char * buff; if (!mpe) return 1; buff = set_value(strvec); if (!buff) return 1; if (strlen(buff) == 10 && !strcmp(buff, "priorities")) mpe->rr_weight = RR_WEIGHT_PRIO; FREE(buff); return 0; }
false
false
false
false
false
0
cq_initialize(cqueue_t *cq, const char *name, cq_time_t now, int period) { /* * The cq_hash hash list is used to speed up insert/delete operations. */ cq->cq_magic = CQUEUE_MAGIC; cq->cq_name = atom_str_get(name); XMALLOC0_ARRAY(cq->cq_hash, HASH_SIZE); cq->cq_items = 0; cq->cq_ticks = 0; cq->cq_time = now;...
false
false
false
false
false
0
brasero_app_indicator_init (BraseroAppIndicator *obj) { GtkWidget *indicator_menu; obj->priv = g_new0 (BraseroAppIndicatorPrivate, 1); indicator_menu = brasero_app_indicator_build_menu (obj); if (indicator_menu != NULL) { obj->priv->indicator = app_indicator_new_with_path ("brasero", "brasero-disc-...
false
false
false
false
false
0
on_select_all(GtkAction* act, FmFolderView* fv) { GtkMenu *popup = g_object_get_qdata(G_OBJECT(fv), popup_quark); GtkWidget *win = gtk_menu_get_attach_widget(popup); GtkWidget *focus = gtk_window_get_focus(GTK_WINDOW(win)); /* check if we are inside the view; for desktop focus will be NULL */ if(FO...
false
false
false
false
false
0
rp2_probe(struct pci_dev *pdev, const struct pci_device_id *id) { struct rp2_card *card; struct rp2_uart_port *ports; void __iomem * const *bars; int rc; card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); if (!card) return -ENOMEM; pci_set_drvdata(pdev, card); spin_lock_init(&card->card_lock)...
false
false
false
false
false
0
changing_fdlimit(va_list args) { int old_fdlimit = hard_fdlimit; hard_fdlimit = va_arg(args, int); if (ServerInfo.max_clients > MAXCLIENTS_MAX) { if (old_fdlimit != 0) sendto_realops_flags(UMODE_ALL, L_ALL, "HARD_FDLIMIT changed to %d, adjusting MAXCLIENTS to %d", hard_fdlimit, MAXCL...
false
false
false
false
false
0
match_finalize (Match* obj) { Match * self; self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MATCH, Match); _tile_unref0 (self->tile0); _tile_unref0 (self->tile1); }
false
false
false
false
false
0
transform(double *in, double *out) { int i; PostScriptFunctionKey key(m, in, false); PopplerCacheItem *item = cache->lookup(key); if (item) { PostScriptFunctionItem *it = static_cast<PostScriptFunctionItem *>(item); for (int i = 0; i < n; ++i) { out[i] = it->out[i]; } return; } sta...
false
false
false
false
false
0
cert_get_hash(const ne_ssl_certificate* cert, guint32* out_hash) { char* certPem = ne_ssl_cert_export(cert); g_return_val_if_fail(certPem != NULL, 1); gsize derLength = 0; guchar* certDer = g_base64_decode(certPem, &derLength); free(certPem); g_return_val_if_fail(certDer != NULL, 1); struct...
false
false
false
false
false
0
WriteDataChunks(ArchiveHandle *AH) { TocEntry *te; StartDataPtr startPtr; EndDataPtr endPtr; for (te = AH->toc->next; te != AH->toc; te = te->next) { if (te->dataDumper != NULL) { AH->currToc = te; /* printf("Writing data for %d (%x)\n", te->id, te); */ if (strcmp(te->desc, "BLOBS") == 0) { ...
false
false
false
false
false
0
calc_arrow (PanelOrientation orientation, int button_width, int button_height, int *x, int *y, gdouble *angle, gdouble *size) { GtkArrowType retval = GTK_ARROW_UP; double scale; scale = (orientation & PANEL...
false
false
false
false
false
0
doartic() { if (isdigit(token[fieldx])) { artic = (int) scanint(); if (token[fieldx]) fferror("Only digits were expected here"); } else fferror("No digits after /"); }
false
false
false
false
false
0
check_nan_inf_mpq (void) { mpfr_t mpfr_value, mpfr_cmp; mpq_t mpq_value; int status; mpfr_init2 (mpfr_value, MPFR_PREC_MIN); mpq_init (mpq_value); mpq_set_si (mpq_value, 0, 0); mpz_set_si (mpq_denref (mpq_value), 0); status = mpfr_set_q (mpfr_value, mpq_value, MPFR_RNDN); if ((status != 0) || (!MPF...
false
false
false
false
false
0
_scsih_fw_event_del_from_list(struct MPT3SAS_ADAPTER *ioc, struct fw_event_work *fw_event) { unsigned long flags; spin_lock_irqsave(&ioc->fw_event_lock, flags); if (!list_empty(&fw_event->list)) { list_del_init(&fw_event->list); fw_event_work_put(fw_event); } spin_unlock_irqrestore(&ioc->fw_event_lock, flags...
false
false
false
false
false
0
banwd(const char *word) { int row, cnt; const char *cp; int Pwidth = in_params.pi_width > 10? in_params.pi_width: 80; for (row = 0; row < 16; row++) { for (cp = word, cnt = 8; *cp && cnt < Pwidth; cp++, cnt += 8) banch(*cp, row); lcnt++; (*pfunc)('\n'); } }
false
false
false
false
false
0
handler_msn_usr (u_char *raw, int length, ip_address source, u_short source_port, ip_address destination, u_short destination_port) { int rc, nt; log_debug (4, "Entry into handler_msn_usr"); rc= get_new_line_malloc (&next_line, raw, length); if (rc<0) return rc; nt= get_tokens (next_line, &line_tokens, 0);...
false
false
false
false
false
0
calc_equal_probs(void) { FILEDESC *fiddlylist; Num_files = Num_kids = 0; fiddlylist = File_list; while (fiddlylist != NULL) { Num_files++; Num_kids += fiddlylist->num_children; fiddlylist = fiddlylist->next; } }
false
false
false
false
false
0
Add(TreeMap *tree, void *Data,void *ExtraArgs) { struct Node *p; CompareInfo cInfo; cInfo.ExtraArgs = ExtraArgs; cInfo.ContainerLeft = tree; p = iHeap.NewObject(tree->Heap); if (p) { memcpy(p->data ,Data,tree->ElementSize); } else { iError.RaiseError("TreeMap.Add",CONTAINER_ER...
false
true
false
false
false
1
print_80000001_ebx_amd(unsigned int value, unsigned int val_1_eax) { if (__F(val_1_eax) == _XF(0) + _F(15) && __M(val_1_eax) < _XM(4) + _M(0)) { static named_item names[] = { { "raw" , 0, 31, NIL_IMAGES }, { "BrandId" ...
false
false
false
false
false
0
gnc_warning_dialog_common(GtkWidget *parent, const gchar *format, va_list args) { GtkWidget *dialog = NULL; gchar *buffer; if (parent == NULL) parent = GTK_WIDGET(gnc_ui_get_toplevel()); buffer = g_strdup_vprintf(format, args); dialog = gtk_message_dialog_new (GTK_WINDOW(parent), ...
false
false
false
false
false
0
printinter (apInter) struct lInter_s *apInter; { struct eInter_s *pInter; fflush (stderr); fprintf (stdout, " o Interval set : (min = %ld, max = %ld, len = %ld)\n", apInter->min, apInter->max, apInter->len); fflush (stdout); for (pInter = apInter->l; pInter != NULL; pIn...
false
false
false
false
false
0
FindSelectorAndURoR(Instruction *Inst, bool &URoRInvoke, SmallPtrSet<IntrinsicInst*, 8> &SelCalls, SmallPtrSet<PHINode*, 32> &SeenPHIs) { bool Changed = false; for (Value::use_iterator I = Inst->use_begin(), E = Inst->use_end(); I != ...
false
false
false
false
false
0
ExpectedDataType(char *lvalname) { int i,j,k; struct BodySyntax *bs; struct SubTypeSyntax *ss; for (i = 0; i < CF3_MODULES; i++) { if ((ss = CF_ALL_SUBTYPES[i]) == NULL) { continue; } for (j = 0; ss[j].subtype != NULL; j++) { if ((bs = ss[j].bs) == NULL) { ...
false
false
false
false
false
0
CreateVertex(const R3Point& position, R3MeshVertex *v) { // Create vertex if (!v) { v = new R3MeshVertex(); v->flags.Add(R3_MESH_VERTEX_ALLOCATED); } // Set position of new vertex SetVertexPosition(v, position); // Set ID of new vertex v->id = vertices.NEntries(); // Insert vertex into array ...
false
false
false
false
false
0
getChar() { if (length >= 0 && count >= length) return EOF; ++count; return str->getChar(); }
false
false
false
false
false
0
sec_PKCS12NewCertBag(PLArenaPool *arena, SECOidTag certType) { sec_PKCS12CertBag *certBag = NULL; SECOidData *bagType = NULL; SECStatus rv; void *mark = NULL; if(!arena) { return NULL; } mark = PORT_ArenaMark(arena); certBag = (sec_PKCS12CertBag *)PORT_ArenaZAlloc(arena, ...
false
false
false
false
false
0
rpcsvc_callback_build_record (rpcsvc_t *rpc, int prognum, int progver, int procnum, size_t payload, uint64_t xid, struct iovec *recbuf) { struct rpc_msg request = {0, }; struct iobuf *request_iob = NULL; char ...
false
false
false
false
false
0
hasPnpInfoService(const std::vector<std::string> &uuids) { // The UUID that indicates the PnPInformation attribute is available. static const char * PNPINFOMATION_ATTRIBUTE_UUID = "00001200-0000-1000-8000-00805f9b34fb"; // Note: GetProperties appears to return this list sorted which binary_search requires....
false
false
false
false
false
0
lx_stream_set_format(struct lx6464es *chip, struct snd_pcm_runtime *runtime, u32 pipe, int is_capture) { int err; u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); u32 channels = runtime->channels; if (runtime->channels != channels) dev_err(chip->card->dev, "channel count mismatch: %d vs %d", runtime-...
false
false
false
false
false
0
act1() { NLA = Eof; /* L o o k F o r A n o t h e r F i l e */ { FILE *new_input; new_input = NextFile(); if ( new_input == NULL ) { NLA=Eof; return; } fclose( input ); input = new_input; zzrdstream( input ); zzskip(); /* Skip the Eof (@) char i.e continue */ }...
false
false
false
false
false
0
debug_attributes(const char *title, /* I - Title */ ipp_t *ipp, /* I - Request/response */ int type) /* I - 0 = object, 1 = request, 2 = response */ { ipp_tag_t group_tag; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ char buffer[2048]; /* Str...
false
false
false
false
false
0
UpdateFile ( bool doSafeUpdate ) { bool updated = false; if ( ! this->needsUpdate ) return; LFA_FileRef fileRef ( this->parent->fileRef ); if ( fileRef == 0 ) return; ASF_Support support; ASF_Support::ObjectState objectState; long numTags = support.OpenASF ( fileRef, objectState ); if ( numTags == 0 ) retu...
false
false
false
false
false
0
cdv_intel_edp_panel_on(struct gma_encoder *intel_encoder) { struct drm_device *dev = intel_encoder->base.dev; struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv; u32 pp, idle_on_mask = PP_ON | PP_SEQUENCE_NONE; if (intel_dp->panel_on) return true; DRM_DEBUG_KMS("\n"); pp = REG_READ(PP_CONTROL); pp &= ~P...
false
false
false
false
false
0
add_handlers() { add_read_handler("count", read_handler, 0); add_write_handler("reset_counts", write_handler, 0); if (input_is_pull(0)) add_task_handlers(&_task); }
false
false
false
false
false
0
__glfs_cwd_set (struct glfs *fs, inode_t *inode) { if (inode->table->xl != fs->active_subvol) { inode = __glfs_refresh_inode (fs, fs->active_subvol, inode); if (!inode) return -1; } else { inode_ref (inode); } if (fs->cwd) inode_unref (fs->cwd); fs->cwd = inode; return 0; }
false
false
false
false
false
0
clutter_im_context_filter_keypress (ClutterIMContext *context, ClutterKeyEvent *key) { ClutterIMContextClass *klass; STEP(); g_return_val_if_fail (CLUTTER_IS_IM_CONTEXT (context), FALSE); g_return_val_if_fail (key != NULL, FALSE); klass = CLUTTER_IM_CONTEXT_GET_CLASS (context); return klass->filter_k...
false
false
false
true
false
1
gst_rtsp_message_take_header (GstRTSPMessage * msg, GstRTSPHeaderField field, gchar * value) { RTSPKeyValue key_value; g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL); g_return_val_if_fail (value != NULL, GST_RTSP_EINVAL); key_value.field = field; key_value.value = value; g_array_append_val (msg-...
false
false
false
false
false
0
ByteCount() const { if (stream_count_ == 0) { return bytes_retired_; } else { return bytes_retired_ + streams_[0]->ByteCount(); } }
false
false
false
false
false
0
verify_format(const char *format) { const char *cp, *sp; for (cp = format; *cp && (sp = find_next(cp)); ) { const char *ep = strchr(sp, ')'); if (!ep) die("malformatted format string %s", sp); /* sp points at "%(" and ep points at the closing ")" */ parse_atom(sp + 2, ep); cp = ep + 1; } }
false
false
false
false
false
0
cxd2820r_sleep_t2(struct dvb_frontend *fe) { struct cxd2820r_priv *priv = fe->demodulator_priv; int ret, i; struct reg_val_mask tab[] = { { 0x000ff, 0x1f, 0xff }, { 0x00085, 0x00, 0xff }, { 0x00088, 0x01, 0xff }, { 0x02069, 0x00, 0xff }, { 0x00081, 0x00, 0xff }, { 0x00080, 0x00, 0xff }, }; dev_dbg(&pr...
false
false
false
false
false
0
endElementSSCbk(const char *pszName) { if (bStopParsing) return; nWithoutEventCounter = 0; nDepth--; switch(stateStack[nStackDepth].eVal) { case STATE_DEFAULT: break; case STATE_T: { if (stateStack[nStackDepth].nBeginDepth == nDepth) { ...
false
false
false
false
false
0
DecodeVSHLMaxInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler::Success; unsigned Rd = fieldFromInstruction(Insn, 12, 4); Rd |= fieldFromInstruction(Insn, 22, 1) << 4; unsigned Rm = fieldFromInstruction(Insn...
false
false
false
false
false
0
dirserv_have_any_microdesc(const smartlist_t *fps) { microdesc_cache_t *cache = get_microdesc_cache(); SMARTLIST_FOREACH(fps, const char *, fp, if (microdesc_cache_lookup_by_digest256(cache, fp)) return 1); return 0; }
false
false
false
false
false
0
linkcopy_internal (GFile *src, GFile *dest, GFileCopyFlags flags, gboolean sync_data, GCancellable *cancellable, GError **error) { gboolean ret = FALSE; gboolean dest_exists; int i; ...
false
false
false
false
false
0
can_replace_passign(RfmBlock block, RfmPblockInfo pblock_info) { pblock_info->head_block = block; while (block) { #if 0 if (block == pblock_info->tail_block) { break; } #endif if (!can_replace_passign_branch(block, pblock_info)) { return(FALSE); } ...
false
false
false
false
false
0
dav_get_ns_table_uri(dav_db *db, int ns_id) { const char *p = db->ns_table.buf + sizeof(dav_propdb_metadata); while (ns_id--) p += strlen(p) + 1; return p; }
false
false
false
false
false
0
render(render_guts_t* guts, int indentation) const { return rope_t("@[") + this->_childNodes.front()->render(guts, indentation) + "]"; }
false
false
false
false
false
0
PyException_SetContext(PyObject *self, PyObject *context) { PyObject *old_context = ((PyBaseExceptionObject *)self)->context; ((PyBaseExceptionObject *)self)->context = context; Py_XDECREF(old_context); }
false
false
false
false
false
0
readImage1( QImage &img, QDataStream &s, const PCXHEADER &header ) { QByteArray buf( header.BytesPerLine, 0 ); img = QImage( header.width(), header.height(), QImage::Format_Mono ); img.setNumColors( 2 ); for ( int y=0; y<header.height(); ++y ) { if ( s.atEnd() ) { img = QImage(); return;...
false
false
false
false
false
0
symbol_bd_cobol_purge_file (Symbolizable *self, gchar *filename) { gphpedit_debug (DEBUG_SYMBOLIZABLE); SymbolBdCOBOLDetails *symbolbddet; symbolbddet = SYMBOL_BD_COBOL_GET_PRIVATE(self); if(!filename) return ; g_return_if_fail(self); symbolbddet->completion_prefix = filename; if (!g_hash_table_remove (s...
false
false
false
false
false
0
compare_name (GstElement * element, const gchar * name) { gint eq; GST_OBJECT_LOCK (element); eq = strcmp (GST_ELEMENT_NAME (element), name); GST_OBJECT_UNLOCK (element); if (eq != 0) { gst_object_unref (element); } return eq; }
false
false
false
false
false
0
win_altframe(win, tp) win_T *win; tabpage_T *tp; /* tab page "win" is in, NULL for current */ { frame_T *frp; int b; if (tp == NULL ? firstwin == lastwin : tp->tp_firstwin == tp->tp_lastwin) /* Last window in this tab page, will go to next tab page. */ return alt_tabpage()->tp_curwin->w_frame; ...
false
false
false
false
false
0
db_debug (lua_State *L) { for (;;) { char buffer[250]; fputs("lua_debug> ", stderr); if (fgets(buffer, sizeof(buffer), stdin) == 0 || strcmp(buffer, "cont\n") == 0) return 0; if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || lua_pcall(L, 0, 0, 0)) { fput...
false
false
false
false
false
0
BIFS_AttachScene(GF_SceneDecoder *plug, GF_Scene *scene, Bool is_scene_decoder) { BIFSPriv *priv = (BIFSPriv *)plug->privateStack; if (priv->codec) return GF_BAD_PARAM; priv->pScene = scene; priv->app = scene->root_od->term; priv->codec = gf_bifs_decoder_new(scene->graph, 0); gf_bifs_decoder_set_extraction_path(...
false
false
false
false
false
0
main(int argc, const char *argv[]) { pthread_t thread_id[NTHREADS]; int j; done = false; for (j = 0; j < NTHREADS; j++) { pthread_create(&thread_id[j], NULL, &thread, NULL); } for (j = 0; j < NTHREADS; j++) { pthread_join(thread_id[j], NULL); } return 0; }
false
false
false
false
false
0
push(QUndoCommand * cmd) { #ifndef QT_NO_DEBUG writeUndo(cmd, 0, NULL); #endif if (m_temporary == cmd) { m_temporary->redo(); return; } QUndoStack::push(cmd); }
false
false
false
false
false
0
fileputs(const char *str, FILE *fp) { for ( ; *str; str++) { register char c = *str == '\n' ? ' ' : *str; putc(c, fp); } putc('\n', fp); }
false
false
false
false
false
0
SigErrorHandler(int /*sig*/, const std::string& msg) { AnytunError::throwErr() << msg; return 0; }
false
false
false
false
false
0
snd_pcm_areas_silence(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format) { int width = snd_pcm_format_physical_width(format); while (channels > 0) { void *addr = dst_areas->addr; unsigned int step = dst_areas->step;...
false
false
false
false
false
0
add_gvalue_int64_to_slist( const GncSqlBackend* be, QofIdTypeConst obj_name, const gpointer pObject, const GncSqlColumnTableEntry* table_row, GSList** pList ) { gint64 i64_value = 0; Int64AccessFunc getter; GValue* value; g_return_if_fail( be != NULL ); g_return_if_fail( ...
false
false
false
false
false
0
_elm_segment_control_smart_focus_next(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next) { Eina_List *items = NULL; Eina_List *l; Elm_Segment_Item *it; ELM_SEGMENT_CONTROL_CHECK(obj) EINA_FALSE; ELM_SEGMENT_CONTROL_DATA_GET(obj, sd)...
false
false
false
false
false
0
initialize(ShowerParticle & particle,PPtr) { // set the basis vectors Lorentz5Momentum p,n; if(particle.perturbative()!=0) { // find the partner and its momentum ShowerParticlePtr partner=particle.partner(); Lorentz5Momentum ppartner(partner->momentum()); // momentum of the emitting particle p...
false
false
false
false
false
0
Perl_dump_all_perl(pTHX_ bool justperl) { dVAR; PerlIO_setlinebuf(Perl_debug_log); if (PL_main_root) op_dump(PL_main_root); dump_packsubs_perl(PL_defstash, justperl); }
false
false
false
false
false
0
abituguru_remove(struct platform_device *pdev) { int i; struct abituguru_data *data = platform_get_drvdata(pdev); hwmon_device_unregister(data->hwmon_dev); for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) device_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr); for (i = 0; i < ARRAY_SIZE(abituguru...
false
false
false
false
false
0
cmafec_get_short_descr_of_city(const struct city *pcity) { struct cm_parameter parameter; if (!cma_is_city_under_agent(pcity, &parameter)) { return _("none"); } else { return cmafec_get_short_descr(&parameter); } }
false
false
false
false
false
0
ParsePositionArgumentSuffix( float *ret_factor, char *suffix, float wfactor, float sfactor) { int n; switch (*suffix) { case 'p': case 'P': *ret_factor = 1.0; n = 1; break; case 'w': case 'W': *ret_factor = wfactor; n = 1; break; default: *ret_factor = sfactor; n = 0; break; } return n; }
false
false
false
false
false
0
_e_place_coverage_shelf_add(E_Zone *zone, int ar, int x, int y, int w, int h) { Eina_List *l; E_Shelf *es; int x2, y2, w2, h2; EINA_LIST_FOREACH(e_shelf_list(), l, es) { if (es->zone != zone) continue; x2 = es->x; y2 = es->y; w2 = es->w; h2 = es->h; if (E_INTERSECTS(x, y, w, h, x2, y2, w2, h2)) ...
false
false
false
false
false
0
memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) { int rc = -ENXIO; if ((*mrq) && (*mrq)->error && host->retries) { (*mrq)->error = rc; host->retries--; return 0; } if (host->card && host->card->next_request) rc = host->card->next_request(host->card, mrq); if (!rc) host->re...
false
false
false
false
false
0
diff_print_info_init( diff_print_info *pi, git_buf *out, git_diff *diff, git_diff_format_t format, git_diff_line_cb cb, void *payload) { pi->diff = diff; pi->format = format; pi->print_cb = cb; pi->payload = payload; pi->buf = out; if (diff) pi->flags = diff->opts.flags; else pi->flags = 0...
false
false
false
false
false
0
sell_impr_iterate(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { struct sell_data *sd = (struct sell_data *) data; struct city *pcity = city_model_get(model, iter); if (NULL != pcity && !pcity->did_sell && city_has_building(pcity, sd->target...
false
false
false
false
false
0
slotServiceReady(Plasma::Service *service) { KConfigGroup op = service->operationDescription("GetPackage"); service->startOperationCall(op); q->connect(service, SIGNAL(finished(Plasma::ServiceJob*)), q, SLOT(slotPackageDownloaded(Plasma::ServiceJob*))); }
false
false
false
false
false
0
stex_set_dma_mask(struct pci_dev * pdev) { int ret; if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) return 0; ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); if (!ret) ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); return ret; }
false
false
false
false
false
0