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
bfa_fcs_lport_ms_sm_online(struct bfa_fcs_lport_ms_s *ms, enum port_ms_event event) { bfa_trc(ms->port->fcs, ms->port->port_cfg.pwwn); bfa_trc(ms->port->fcs, event); switch (event) { case MSSM_EVENT_PORT_OFFLINE: bfa_sm_set_state(ms, bfa_fcs_lport_ms_sm_offline); break; case MSSM_EVENT_PORT_FABRIC_RSCN: ...
false
false
false
false
false
0
ui_common_place_cursor(ui_common_cursor_t which_cursor, GtkWidget * widget) { /* call the actual function */ ui_common_place_cursor_no_wait(which_cursor, widget); /* do any events pending, this allows the cursor to get displayed */ while (gtk_events_pending()) gtk_main_iteration(); return; }
false
false
false
false
false
0
list_init(list_t *l) { if (l == NULL) return -1; srandom((unsigned long)time(NULL)); l->numels = 0; /* head/tail sentinels and mid pointer */ l->head_sentinel = (struct list_entry_s *)malloc(sizeof(struct list_entry_s)); l->tail_sentinel = (struct list_entry_s *)malloc(sizeof(struct list_entr...
false
false
false
false
false
0
locale_to_utf8_normalized(const char *src, uni_norm_t norm) { g_assert(src); return convert_to_utf8_normalized(cd_locale_to_utf8, src, norm); }
false
false
false
false
false
0
write_header (dbf) gdbm_file_info *dbf; { int num_bytes; /* Return value for write. */ off_t file_pos; /* Return value for lseek. */ file_pos = lseek (dbf->desc, 0L, L_SET); if (file_pos != 0) _gdbm_fatal (dbf, "lseek error"); num_bytes = write (dbf->desc, dbf->header, dbf->header->block_size); if (n...
false
false
false
false
false
0
_cdk_filter_literal (void *data, int ctl, FILE * in, FILE * out) { if (ctl == STREAMCTL_READ) return literal_decode (data, in, out); else if (ctl == STREAMCTL_WRITE) return literal_encode (data, in, out); else if (ctl == STREAMCTL_FREE) { literal_filter_t *pfx = data; if (pfx) { ...
false
false
false
false
false
0
panel_tsls_robust_vcv (MODEL *pmod, const DATASET *dset) { panelmod_t pan; int err = 0; panelmod_init(&pan); err = panelmod_setup(&pan, pmod, dset, 0, OPT_NONE); if (!err) { err = panel_robust_vcv(pmod, &pan, (const double **) dset->Z); } panelmod_free(&pan); return err; }
false
false
false
false
false
0
photo_object_add(Evas_Object *parent, Evas_Object *ic, const char *icon, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, int angle) { char buf[PATH_MAX]; Photo_Object *po; po = calloc(1, sizeof(*po)); po->base_zoom = po->zoom = BASE_ZOOM; if (ic) { po->ic = ic; } else ...
true
true
false
false
false
1
OpnDoDefinitionBlock ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child; ACPI_SIZE Length; UINT32 i; char *Filename; /* * These nodes get stuffed into the table header. They are special * cased when the table is written t...
false
false
false
false
false
0
attach(Observer* o) { ObserverList* list = observers_; if (list == nil) { list = new ObserverList(5); observers_ = list; } list->append(o); }
false
false
false
false
false
0
_panel_run_get_recent_programs_list (PanelRunDialog *dialog) { GtkListStore *list; char **commands; int i; list = gtk_list_store_new (1, G_TYPE_STRING); commands = g_settings_get_strv (dialog->run_settings, PANEL_RUN_HISTORY_KEY); for (i = 0; commands[i] != NULL; i++) { GtkTreeIter i...
false
false
false
false
false
0
status(const Space& _home) const { if (done) return false; const FlatZincSpace& home = static_cast<const FlatZincSpace&>(_home); for (int i=0; i<home.iv_aux.size(); i++) if (!home.iv_aux[i].assigned()) return true; for (int i=0; i<home.bv_aux.size(); i++) if (!home.bv_aux[i].assi...
false
false
false
false
false
0
do_create_table( const GncSqlBackend* be, const gchar* table_name, const GncSqlColumnTableEntry* col_table ) { GList* col_info_list = NULL; gboolean ok = FALSE; g_return_val_if_fail( be != NULL, FALSE ); g_return_val_if_fail( table_name != NULL, FALSE ); g_return_val_if_fail( col_t...
false
false
false
false
false
0
var_needs_tls_wrapper (tree var) { return (!error_operand_p (var) && DECL_THREAD_LOCAL_P (var) && !DECL_GNU_TLS_P (var) && !DECL_FUNCTION_SCOPE_P (var) && !var_defined_without_dynamic_init (var)); }
false
false
false
true
false
1
ar5523_stat_work(struct work_struct *work) { struct ar5523 *ar = container_of(work, struct ar5523, stat_work.work); int error; ar5523_dbg(ar, "%s\n", __func__); mutex_lock(&ar->mutex); /* * Send request for statistics asynchronously once a second. This * seems to be important. Throughput is a lot better if t...
false
false
false
false
false
0
cx_bm_mng_down(void) { int pos; if ((pos = panel_bm_mng.pd->curs) == bm_cnt - 1) return; us_xchg(&bm_list[pos],&bm_list[panel_bm_mng.pd->curs = pos + 1]); changed = 1; win_panel(); }
false
false
false
false
false
0
set_cell(GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data) { gboolean header; gchar *text; IpodInfo *info; gtk_tree_model_get(tree_model, iter, COL_POINTER, &info, -1); g_return_if_fail (info); header = gtk_tree_model_iter_has_child(...
false
false
false
false
false
0
VM_getDebugMode () { char *env; env = getenv ("DEBUG"); if (NULL != env) return atoi(env) != 0; else return false; }
false
false
false
false
true
1
unlock_scd (ctrl_t ctrl, int rc) { if (gpg_err_code (rc) == GPG_ERR_NOT_OPERATIONAL && gpg_err_source (rc) == GPG_ERR_SOURCE_SCD) { /* If the SCdaemon returned this error, it detected a major problem, like no reader connected. To finish this we need to stop the connection. This sim...
false
false
false
false
false
0
dll_msg(TCHAR *msg, LPCTSTR str, int msglen) { int len = (int)cslen(str); if (len < msglen){ csncat(msg, str, len); msglen -= len; } return msglen; }
false
false
false
false
false
0
lpfc_mbx_cmpl_fcf_rr_read_fcf_rec(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) { struct fcf_record *new_fcf_record; uint32_t boot_flag, addr_mode; uint16_t next_fcf_index, fcf_index; uint16_t current_fcf_index; uint16_t vlan_id; int rc; /* If link state is not up, stop the roundrobin failover process */ if (phb...
false
true
false
false
false
1
operator=(const Matrix& M) { int i, j; if (n != M.n) { delete [] _rep; n = M.n; _rep = new double [n*n]; } for (i = 0; i < n; i++) for (j = 0; j < n; j++) _rep[i * n + j] = M._rep[i * n + j]; return *this; }
false
false
false
false
false
0
can_fixup_bittiming(struct net_device *dev, struct can_bittiming *bt, const struct can_bittiming_const *btc) { struct can_priv *priv = netdev_priv(dev); int tseg1, alltseg; u64 brp64; tseg1 = bt->prop_seg + bt->phase_seg1; if (!bt->sjw) bt->sjw = 1; if (bt->sjw > btc->sjw_max || tseg1 < btc->tse...
false
false
false
false
false
0
data_book_error_from_gdata_error (GError **error, const GError *gdata_error) { gboolean use_fallback = FALSE; g_return_if_fail (gdata_error != NULL); /* Authentication errors */ if (gdata_error->domain == GDATA_CLIENT_LOGIN_AUTHORIZER_ERROR) { switch (gdata_error->code) { cas...
false
false
false
false
false
0
log_set_argv0(char *argv0) { slurm_mutex_lock(&log_lock); if (log->argv0) xfree(log->argv0); if (!argv0) log->argv0 = xstrdup(""); else log->argv0 = xstrdup(argv0); slurm_mutex_unlock(&log_lock); }
false
false
false
false
false
0
lookup_auto_avfs(struct parse_state *ps, const char *opts, const char *param) { int res; struct avfs *avfs; struct ext_info *ext = NULL; AV_LOCK(avfs_lock); avfs = find_auto_avfs(ps->prevseg, &ext); if(avfs == NULL) res = -ENOENT; else { av_ref_ob...
false
false
false
false
false
0
bio_remaining_done(struct bio *bio) { /* * If we're not chaining, then ->__bi_remaining is always 1 and * we always end io on the first invocation. */ if (!bio_flagged(bio, BIO_CHAIN)) return true; BUG_ON(atomic_read(&bio->__bi_remaining) <= 0); if (atomic_dec_and_test(&bio->__bi_remaining)) { bio_clear...
false
false
false
false
false
0
msn_command_get_from_string(char *cmd) { int prospective_command = 0; /* Save us the agony of browsing through the list for an error message */ if ((prospective_command = atoi(cmd)) > 0) return prospective_command; for (prospective_command = 0; prospective_command < MSN_COMMAND_COUNT; prospective_command++) ...
false
false
false
false
false
0
linear(Home home, const FloatValArgs& a, const FloatVarArgs& x, FloatRelType frt, FloatVar y, Reify r) { using namespace Float; if (a.size() != x.size()) throw ArgumentSizeMismatch("Float::linear"); if (home.failed()) return; Region re(home); Linear::Term* t = re.alloc<Linea...
false
false
false
false
false
0
os_get_exec_path () { char *ret; ret = NULL; #if LINUX ret = get_path_from_proc_exe (); if (ret != NULL) return ret; #endif #if WINDOWS ret = get_path_from_module_filename (); if (ret != NULL) return ret; #endif #if DARWIN ret = get_path_from_NSGetExecutablePath (); if (ret != NULL) return ...
false
false
false
false
false
0
reheap(int s, Overlap **heap, int hsize) { int c, l, r; int bigger; Overlap *hs, *hr, *hl; c = s; hs = heap[s]; while ((l = 2*c) <= hsize) { r = l+1; hl = heap[l]; if (r > hsize) bigger = 1; else { hr = heap[r]; COMPARE(hr,hl) } if (bi...
false
false
false
false
false
0
iGetExtension(ILconst_string FileName) { ILboolean PeriodFound = IL_FALSE; ILstring Ext = (ILstring)FileName; ILint i, Len = ilStrLen(FileName); if (FileName == NULL || !Len) // if not a good filename/extension, exit early return NULL; Ext += Len; // start at the end for (i = Len; i >= 0; i--) { if (*Ext...
false
false
false
false
false
0
ath10k_htt_rx_h_filter(struct ath10k *ar, struct sk_buff_head *amsdu, struct ieee80211_rx_status *rx_status) { if (skb_queue_empty(amsdu)) return; if (ath10k_htt_rx_amsdu_allowed(ar, amsdu, rx_status)) return; __skb_queue_purge(amsdu); }
false
false
false
false
false
0
save(const QString& fileName) { QFile file( fileName ); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) return; QTextStream out(&file); out << code(); setFile( fileName ); setModified( false ); mIgnoreChangeNotification = true; QLanguageItem::fileChanged( fileName , code() ); mIgnoreChangeNotifi...
false
false
false
false
false
0
gf_m2ts_reframe_reset(GF_M2TS_Demuxer *ts, GF_M2TS_PES *pes, Bool same_pts, unsigned char *data, u32 data_len) { if (pes->data) { gf_free(pes->data); pes->data = NULL; } pes->data_len = 0; if (pes->prev_data) { gf_free(pes->prev_data); pes->prev_data = NULL; } pes->prev_data_len = 0; pes->pes_len = 0; p...
false
false
false
false
false
0
cfgfile_rom (const TCHAR *option, const TCHAR *value, const TCHAR *name, TCHAR *location, int maxsz) { TCHAR id[MAX_DPATH]; if (!cfgfile_string (option, value, name, id, sizeof id / sizeof (TCHAR))) return 0; if (zfile_exists (location)) return 1; TCHAR *p = _tcschr (id, ','); if (p) { TCHAR *endptr, tmp; ...
false
false
false
false
false
0
printSCPBasicFilmBoxAction( DVInterface& cfg, const char *cfgname, T_DIMSE_Message& rq, T_DIMSE_Message& rsp, DVPSPresentationLUT_PList& globalPresentationLUTList) { OFListIterator(DVPSStoredPrint *) first = list_.begin(); OFListIterator(DVPSStoredPrint *) last = list_.end(); OFBool found = OF...
false
false
false
false
false
0
signal_mdevs(unsigned my_pid) { procps_status_t* p = NULL; while ((p = procps_scan(p, PSSCAN_ARGV0)) != NULL) { if (p->pid != my_pid && p->argv0 && strcmp(bb_basename(p->argv0), "mdev") == 0 ) { kill(p->pid, SIGCHLD); } } }
false
false
false
false
false
0
default_geometry() { WindowRep& w = *rep(); const Display& d = *w.display_; w.glyph_->request(w.shape_); Coord width = w.shape_.requirement(Dimension_X).natural(); Coord height = w.shape_.requirement(Dimension_Y).natural(); w.canvas_->size(width, height); w.xpos_ = d.to_pixels(w.left_); ...
false
false
false
false
false
0
nv_mark(cap) cmdarg_T *cap; { if (!checkclearop(cap->oap)) { if (setmark(cap->nchar) == FAIL) clearopbeep(cap->oap); } }
false
false
false
false
false
0
lg4ff_init_wheel_data(struct lg4ff_wheel_data * const wdata, const struct lg4ff_wheel *wheel, const struct lg4ff_multimode_wheel *mmode_wheel, const u16 real_product_id) { u32 alternate_modes = 0; const char *real_tag = NULL; const char *real_name = NULL; if (mmode_wheel) { alternate_modes = mmode_wh...
false
false
false
false
false
0
xmlSecOpenSSLKeyDataX509AdoptCert(xmlSecKeyDataPtr data, X509* cert) { xmlSecOpenSSLX509DataCtxPtr ctx; int ret; xmlSecAssert2(xmlSecKeyDataCheckId(data, xmlSecOpenSSLKeyDataX509Id), -1); xmlSecAssert2(cert != NULL, -1); ctx = xmlSecOpenSSLX509DataGetCtx(data); xmlSecAssert2(ctx != NULL, -1); ...
false
false
false
false
false
0
AttachError(void) { PATMT *ap; if(!Pmaster) return(0); ap = Pmaster->attachments; while(ap){ if((ap->flags) & A_ERR) return(1); ap = ap->next; } return(FALSE); }
false
false
false
false
false
0
spool_berkeleydb_clear_log(lList **answer_list, bdb_info info) { bool ret = true; DB_ENV *env; DENTER(BDB_LAYER, "spool_berkeleydb_clear_log"); /* check connection */ env = bdb_get_env(info); if (env == NULL) { dstring dbname_dstring = DSTRING_INIT; const char *dbname; dbname =...
false
false
false
false
false
0
gpssim_write(void) { if (waypt_count()) { if (splitfiles) { char* ofname = xstrdup(fnamestr); ofname = xstrappend(ofname, "-waypoints.gpssim"); fout = gbfopen(ofname, "wb", MYNAME); xfree(ofname); } if (wayptspd && wayptspd[0]) { gpssim_write_spd(atof(wayptspd)); } wa...
false
false
false
false
false
0
removeDeadFunctions(CallGraph &CG, SmallPtrSet<const Function *, 16> *DNR) { SmallPtrSet<CallGraphNode*, 16> FunctionsToRemove; // Scan for all of the functions, looking for ones that should now be removed // from the program. Insert the dead ones in the FunctionsToRemove set....
false
false
false
false
false
0
user_change_password_authorized_cb (Daemon *daemon, User *user, GDBusMethodInvocation *context, gpointer data) { gchar **strings = data; GError *erro...
false
false
false
false
false
0
MarkUnmarkedObject(HeapObject* object) { ASSERT(!object->IsMarked()); ASSERT(HEAP->Contains(object)); if (object->IsMap()) { Map* map = Map::cast(object); if (FLAG_cleanup_code_caches_at_gc) { map->ClearCodeCache(heap()); } SetMark(map); // When map collection is enabled we have to mark...
false
false
false
false
false
0
peak_usb_get_ts_tv(struct peak_time_ref *time_ref, u32 ts, struct timeval *tv) { /* protect from getting timeval before setting now */ if (time_ref->tv_host.tv_sec > 0) { u64 delta_us; delta_us = ts - time_ref->ts_dev_2; if (ts < time_ref->ts_dev_2) delta_us &= (1 << time_ref->adapter->ts_used_bits) - 1;...
false
false
false
false
false
0
mtd_get_dev_info(libmtd_t desc, const char *node, struct mtd_dev_info *mtd) { int mtd_num; struct libmtd *lib = (struct libmtd *)desc; if (!lib->sysfs_supported) return legacy_get_dev_info(node, mtd); if (dev_node2num(lib, node, &mtd_num)) return -1; return mtd_get_dev_info1(desc, mtd_num, mtd); }
false
false
false
false
false
0
cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid, unsigned int queue, bool ipv6) { int ret; struct filter_entry *f; struct adapter *adap; adap = netdev2adap(dev); /* Adjust stid to correct filter index */ stid -= adap->tids.sftid_base; stid += adap->tids.nftids; f = &adap->tids.ft...
false
false
false
false
false
0
uhc_send_ping(void) { g_assert(uhc_connecting); guid_random_muid(&uhc_ctx.muid); if (udp_send_ping(&uhc_ctx.muid, uhc_ctx.addr, uhc_ctx.port, TRUE)) { if (GNET_PROPERTY(bootstrap_debug) || GNET_PROPERTY(log_uhc_pings_tx)) { g_debug("BOOT sent UDP SCP ping #%s to %s:%u", guid_hex_str(&uhc_ctx.muid), uhc_...
false
false
false
false
false
0
EXTRACTOR_IPC_channel_destroy_ (struct EXTRACTOR_Channel *channel) { int status; if (0 != kill (channel->cpid, SIGKILL)) LOG_STRERROR ("kill"); if (-1 == waitpid (channel->cpid, &status, 0)) LOG_STRERROR ("waitpid"); if (0 != close (channel->cpipe_out)) LOG_STRERROR ("close"); if (0 != close (cha...
false
false
false
false
false
0
decompress_iwb (gchar *iwbfile, gchar *project_tmp_dir) { GError *err = (GError *) NULL; GsfInput *input = (GsfInput *) NULL; GsfInfile *infile = (GsfInfile *) NULL; gsf_init (); input = gsf_input_stdio_new (iwbfile, &err); infile = gsf_infile_zip_new (input, &err); g_object_unre...
false
false
false
false
false
0
ojc_object_get_by_key(ojcErr err, ojcVal object, const char *key) { ojcVal m = 0; if (bad_object(err, object, "get by key")) { return 0; } for (m = object->members.head; 0 != m; m = m->next) { if (0 == strcmp(key, ojc_key(m))) { break; } } return m; }
false
false
false
false
false
0
cfg_fs (struct cfg_cb *cb) { ndmp9_config_info * cfg = cb->config_info; ndmp9_fs_info * ent = cfg->fs_info.fs_info_val; int n_ent = cfg->fs_info.fs_info_len; int i, rc; if (!ent) n_ent = 0; ent = NDMOS_MACRO_NEWN(ndmp9_fs_info, n_ent+1); if (!ent) { cb->n_error++; return -1; } for (i = 0; i < n_e...
false
false
false
false
false
0
set_label( FL_OBJECT * obj, const char * str ) { int i = 0, j = 0; char *tmpstr = fl_malloc( strlen( str ) + 1 ); *tmpstr = '\0'; do { if ( str[ i ] == '\\' && str[ i + 1 ] == 'n' ) { tmpstr[ j++ ] = NL; i++; } else if ( s...
false
false
false
false
false
0
lib_print_room_name (sc_gameref_t game, sc_int room) { const sc_filterref_t filter = gs_get_filter (game); const sc_char *name; /* Print the room name, possibly in bold. */ name = lib_get_room_name (game, room); if (game->bold_room_names) { pf_buffer_tag (filter, SC_TAG_BOLD); pf_buffer_strin...
false
false
false
false
false
0
hidden_name_p (tree val) { if (DECL_P (val) && DECL_LANG_SPECIFIC (val) && TYPE_FUNCTION_OR_TEMPLATE_DECL_P (val) && DECL_ANTICIPATED (val)) return true; return false; }
false
false
false
false
false
0
qla4xxx_dump_buffer(void *b, uint32_t size) { uint32_t cnt; uint8_t *c = b; printk(" 0 1 2 3 4 5 6 7 8 9 Ah Bh Ch Dh Eh " "Fh\n"); printk("------------------------------------------------------------" "--\n"); for (cnt = 0; cnt < size; c++) { printk("%02x", *c); if (!(+...
false
false
false
false
false
0
cfspi_init(struct net_device *dev) { int res = 0; struct cfspi *cfspi = netdev_priv(dev); /* Set flow info. */ cfspi->flow_off_sent = 0; cfspi->qd_low_mark = LOW_WATER_MARK; cfspi->qd_high_mark = HIGH_WATER_MARK; /* Set slave info. */ if (!strncmp(cfspi_spi_driver.driver.name, "cfspi_sspi", 10)) { cfspi->sl...
false
false
false
false
false
0
read_dlpoly_pbc(gint imcon, FILE *fp, struct model_pak *model) { /* imcon -- periodic boundary key: imcon meaning 0 no periodic boundaries 1 cubic boundary conditions 2 orthorhombic boundary conditions 3 parallelepip...
false
false
false
false
false
0
zend_mm_remove_from_free_list(zend_mm_heap *heap, zend_mm_free_block *mm_block) { zend_mm_free_block *prev = mm_block->prev_free_block; zend_mm_free_block *next = mm_block->next_free_block; ZEND_MM_CHECK_MAGIC(mm_block, MEM_BLOCK_FREED); if (EXPECTED(prev == mm_block)) { zend_mm_free_block **rp, **cp; #if ZEND...
false
false
false
false
false
0
p_2(unsigned char *state) { for(int rnd=0; rnd<p2rounds; rnd++) { primate(state); state[RateSizeElements+1]^=rc_p2[rnd]; } }
false
false
false
false
false
0
untaggedMessage(imap &imapAccount, string msgname) { if (msgname == "LIST") { dummy_rights.clear(); imapAccount .installBackgroundTask(new imapGetRights ::listGetRights(folderName, dummy_rights)); return true; } if (msgname == "ACLFAILED") { imapAccount .installBackgroundTa...
false
false
false
false
false
0
test_load_secret_async (Test *test, gconstpointer unused) { const gchar *item_path = "/org/freedesktop/secrets/collection/english/1"; GAsyncResult *result = NULL; GError *error = NULL; SecretItem *item; SecretValue *value; gconstpointer data; gboolean ret; gsize length; item = secret_i...
false
false
false
false
false
0
__fimc_md_create_fimc_sink_links(struct fimc_md *fmd, struct media_entity *source, struct v4l2_subdev *sensor, int pad, int link_mask) { struct fimc_source_info *si = NULL; struct media_entity *sink; unsigned int flags = 0; int i, ret = 0; if (sensor) { si = v4l2_get_subdev_hostdata(s...
false
false
false
false
false
0
WriteBlendedLine3x(byte *dest, byte *src1, byte *src2, byte *stretch_table) { int x; int val; for (x=0; x<SCREENWIDTH; ++x) { val = stretch_table[*src1 * 256 + *src2]; dest[0] = val; dest[1] = val; dest[2] = val; dest += 3; ...
false
false
false
false
false
0
isEqualToState(GLEPropertyStore* store) { GLERC<GLEColor> curr_fill(g_get_fill()); return curr_fill->equalsApprox(store->getColorProperty(this)); }
false
false
false
false
false
0
mvapich_processops (mvapich_state_t *st) { /* Until a 'CLOSE' or 'ABORT' message is seen, we continuously * loop processing ops */ mvapich_debug ("Initiated PMGR processing"); while (mvapich_pmgr_loop (st) != 1) {}; mvapich_debug ("Completed processing PMGR opcodes"); return (0); }
false
false
false
false
false
0
mark_as_complete (GkdSecretUnlock *self, gboolean dismissed) { GkdSecretUnlock *other; DBusMessage *signal; DBusMessageIter iter; dbus_bool_t bval; DBusMessageIter variant; DBusMessageIter array; const char *value; gint i; if (self->completed) return FALSE; self->completed = TRUE; signal = dbus_message_n...
false
false
false
false
false
0
ushl_ov(const APInt &ShAmt, bool &Overflow) const { Overflow = ShAmt.uge(getBitWidth()); if (Overflow) return APInt(BitWidth, 0); Overflow = ShAmt.ugt(countLeadingZeros()); return *this << ShAmt; }
false
false
false
false
false
0
ACL_INTCacheEnter(int which, char *uri, ACLListHandle_t **acllistp) { ACLListHandle_t *tmpacllist; NSErr_t *errp = 0; PLHashTable *hash; PR_ASSERT(uri); ACL_CritEnter(); /* Get the pointer to the hash table after acquiring the lock */ if (which == ACL_URI_HASH) hash = acl_uri_hash; e...
false
false
false
false
false
0
getPropertyValue(const DOMString &propertyName) const { int propID = propertyID(propertyName); if (!propID) return DOMString(); return getPropertyValue(propID); }
false
false
false
false
false
0
per_insert_octets_except_unused(int no_bytes, unsigned char **input_ptr, unsigned char **output_ptr, int *unused, int in_unused) { unsigned char *in_ptr = *input_ptr; unsigned char *ptr = *output_ptr; int val, no_bits; int ret = 0; if (in_unused == 0) { if ((ret = per_insert_octets_unaligned(no_b...
false
false
false
false
false
0
init(unsigned int seed) { /* Initial scrambling */ for(unsigned int j = 0; j < 50; j++) seed = (69069 * seed + 1); for(unsigned int j = 0; j < 625; j++) { seed = (69069 * seed + 1); dummy[j] = seed; } fixupSeeds(true); }
false
false
false
false
false
0
pred_16x8_motion(H264Context * const h, int n, int list, int ref, int * const mx, int * const my){ if(n==0){ const int top_ref= h->ref_cache[list][ scan8[0] - 8 ]; const int16_t * const B= h->mv_cache[list][ scan8[0] - 8 ]; tprintf(h->s.avctx, "pred_16x8: (%2d %2d %2d) at %2d %2d %d li...
false
false
false
false
false
0
drawBinding(Window window_) { if (showBinding()==MSTrue&&bindingWidth()>=MSNotebookMinimumBindingWidth) { if (width()>=MSNotebookMinimumBindingWidth&&height()>=MSNotebookMinimumBindingWidth) { if (outputMode()==Print) drawSpiral(); else { int w,h,xoff,yoff; if (orientation()==Horizontal) ...
false
false
false
false
false
0
qtuiloader_workingDirectory(lua_State *L) { QUiLoader *loader = luaQ_checkqobject<QUiLoader>(L, 1); QString path = loader->workingDirectory().path(); lua_pushstring(L, QFile::encodeName(path).constData()); return 1; }
false
false
false
false
false
0
photos_utils_get_pixbuf_format (GFile *file) { GdkPixbufFormat *format; gchar *basename; gchar *path; gchar *suffix; g_return_val_if_fail (file != NULL, NULL); path = g_file_get_path (file); basename = g_path_get_basename (path); suffix = photos_utils_get_pixbuf_suffix_from_basename (basename); for...
false
false
false
false
false
0
xen_for_each_gfn(struct page **pages, unsigned nr_gfn, xen_gfn_fn_t fn, void *data) { unsigned long xen_pfn = 0; struct page *page; int i; for (i = 0; i < nr_gfn; i++) { if ((i % XEN_PFN_PER_PAGE) == 0) { page = pages[i / XEN_PFN_PER_PAGE]; xen_pfn = page_to_xen_pfn(page); } fn(pfn_to_gfn(xen_p...
false
false
false
false
false
0
evg_rgb_fill_var(s32 y, s32 count, EVG_Span *spans, EVGSurface *surf) { char *dst = surf->pixels + y * surf->pitch_y; u8 spanalpha, col_a; s32 i; s32 x; u32 len; u32 *col; for (i=0; i<count; i++) { len = spans[i].len; spanalpha = spans[i].coverage; surf->sten->fill_run(surf->sten, surf, spans[i].x, y, len...
false
false
false
false
false
0
mapvue_read_group155(const guchar *p, gsize size, gpointer grpdata, GError **error) { enum { SIZE = 2*2 + 3*4 }; MapVueGroup155 *group = (MapVueGroup155*)grpdata; guint len, tagsize = 0; if (!(len = mapvue_read_fids(&p, size - tagsize, &group->int_fids, error))) return 0; ...
false
false
false
false
false
0
isEmpty() const { uint i; for (i = 0; i < s.length(); i++) { if (!s.isSpace(i)) return false; } return true; }
false
false
false
false
false
0
findmaximalscores_withoverlaps(GtChain *chain, GtChaininfo *chaininfo, GtFragment *fragments, unsigned long num_of_fragments, unsigned long max_gap_...
false
false
false
false
false
0
gupnp_didl_lite_item_set_ref_id (GUPnPDIDLLiteItem *item, const char *ref_id) { xmlNode *xml_node; g_return_if_fail (item != NULL); g_return_if_fail (GUPNP_IS_DIDL_LITE_ITEM (item)); xml_node = gupnp_didl_lite_object_get_xml_node ...
false
false
false
false
false
0
EmitJumpTableAddrs(const MachineInstr *MI) { const MachineOperand &MO1 = MI->getOperand(1); unsigned JTI = MO1.getIndex(); // Make sure the Thumb jump table is 4-byte aligned. This will be a nop for // ARM mode tables. EmitAlignment(2); // Emit a label for the jump table. MCSymbol *JTISymbol = GetARMJTI...
false
false
false
false
false
0
afs_get_ipv4_interfaces(struct afs_interface *bufs, size_t maxbufs, bool wantloopback) { struct net_device *dev; struct in_device *idev; int n = 0; ASSERT(maxbufs > 0); rtnl_lock(); for_each_netdev(&init_net, dev) { if (dev->type == ARPHRD_LOOPBACK && !wantloopback) continue; idev = __in_dev_get_r...
false
false
false
false
false
0
parse_opt_tag_of_filtered_mode(const struct option *opt, const char *arg, int unset) { if (unset || !strcmp(arg, "abort")) tag_of_filtered_mode = ABORT; else if (!strcmp(arg, "drop")) tag_of_filtered_mode = DROP; else if (!strcmp(arg, "rewrite")) tag_of_filtered_mode = REWRITE; else return error("Unk...
false
false
false
false
false
0
detect_keyboard(void *dpy, unsigned int keyboardLayoutID, char *xkbfile, size_t xkbfilelength) { xkbfile[0] = '\0'; if (keyboardLayoutID != 0) DEBUG_KBD("keyboard layout configuration: %X", keyboardLayoutID); #if defined(sun) if(keyboardLayoutID == 0) { keyboardLayoutID = detect_keyboard_type_and_layout_sunos...
false
false
false
false
false
0
ui_container_new_stock (GtkWidget *box, const char *stock) { GtkWidget *img = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_BUTTON); gtk_misc_set_padding (GTK_MISC(img), 0, 0); if (box) gtk_container_add (GTK_CONTAINER(box), img); return box ? box : img; }
false
false
false
false
false
0
dapm_widget_power_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct snd_soc_dapm_widget *w = file->private_data; struct snd_soc_card *card = w->dapm->card; enum snd_soc_dapm_direction dir, rdir; char *buf; int in, out; ssize_t ret; struct snd_soc_dapm_path *...
false
false
false
false
false
0
is_a_console(int fd) { char arg; arg = 0; return (isatty (fd) && ioctl(fd, KDGKBTYPE, &arg) == 0 && ((arg == KB_101) || (arg == KB_84))); }
false
false
false
false
false
0
epr_read_band_raster(EPR_SBandId* band_id, int offset_x, int offset_y, EPR_SRaster* raster/*, EPR_SRaster** bitmask_raster*/) { EPR_SProductId* product_id = NULL; EPR_SDatasetId* dataset_id = NULL; char* rec_type; epr_clear_err...
false
false
false
false
false
0
childShouldCreateRenderer(Node* child) const { // http://www.w3.org/2003/01/REC-SVG11-20030114-errata#linking-text-environment // The 'a' element may contain any element that its parent may contain, except itself. if (child->hasTagName(SVGNames::aTag)) return false; if (parent() && parent()->isS...
false
false
false
false
false
0
open_hex_file(char *filename) { struct hex_file_info *hfi; hfi = calloc(1, sizeof(struct hex_file_info)); if(hfi) { hfi->segment = -1; hfi->fp = fopen(filename, "wb"); if(!hfi->fp) { close_hex_file(hfi); hfi = NULL; } } return(hfi); }
false
false
false
false
false
0
r_other_suffix(struct SN_env * z) { int among_var; { int m1 = z->l - z->c; (void)m1; /* do, line 66 */ z->ket = z->c; /* [, line 66 */ if (!(eq_s_b(z, 2, s_0))) goto lab0; z->bra = z->c; /* ], line 66 */ if (!(eq_s_b(z, 2, s_1))) goto lab0; { int ret = slice_del(z); /...
false
false
false
false
false
0
parseInterfaceBlock (tokenInfo *const token) { tokenInfo *name = NULL; Assert (isKeyword (token, KEYWORD_interface)); readToken (token); if (isType (token, TOKEN_IDENTIFIER)) { makeFortranTag (token, TAG_INTERFACE); name = newTokenFrom (token); } else if (isKeyword (token, KEYWORD_assignment) || isKeywor...
false
false
false
false
false
0
CheckSizes(Header &Against) const { if (HeaderSz == Against.HeaderSz && GroupSz == Against.GroupSz && PackageSz == Against.PackageSz && PackageFileSz == Against.PackageFileSz && VersionSz == Against.VersionSz && DescriptionSz == Against.DescriptionSz && DependencySz == Again...
false
false
false
false
false
0
LTDC_CLUTCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState) { /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(NewState)); if (NewState != DISABLE) { /* Enable CLUT by setting CLUTEN bit */ LTDC_Layerx->CR |= (uint32_t)LTDC_LxCR_CLUTEN; } else { /* Disable C...
false
false
false
false
false
0