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
camel_sexp_evaluate_occur_times (CamelSExp *sexp, time_t *start, time_t *end) { CamelSExpResult *result; gboolean generator; g_return_val_if_fail (CAMEL_IS_SEXP (sexp), FALSE); g_return_val_if_fail (sexp->tree != NULL, FALSE); g_return_val_if_fail (...
false
false
false
false
false
0
metaOffset(const QMetaObject *metaObject, MetaOffset offsetType) { int classInfoIndex = metaObject->indexOfClassInfo("ToSuperClass"); if (classInfoIndex == -1) return 0; QByteArray ToSuperClass = metaObject->classInfo(classInfoIndex).value(); int offset = offsetType == MetaProperty ? metaObject-...
false
false
false
false
false
0
timestamp() { char run_date[128]; std::time_t tod; std::time( &tod ); std::strftime( run_date, sizeof(run_date), "%Y-%m-%d %X UTC", std::gmtime( &tod ) ); return string( run_date ); }
false
false
false
false
false
0
waterfall_is_page_empty (Waterfall *waterfall, gint page) { FcCharSet *charset; FcChar32 count; guint i; if (page == -1) return FALSE; charset = FcCharSetCreate (); for (i = 0; i < WATERFALL_PAGE_SIZE; i++) FcCharSetAddChar (charset, page * WATERFALL_PAGE_SIZE + i); ...
false
false
false
false
false
0
get_json_string_compact(String& result, const char *indent) { // [ // "v11", // ["v21", "v22", "v23" ...], // ... // ] Table& ltable=table(); for(Array_iterator<ArrayString*> r(ltable); r.has_next(); ) { ArrayString& line=*r.next(); if (line.count()==1){ indent ? result << "\n\t" << indent << "\"" : r...
false
false
false
false
false
0
create_display (GdmLocalDisplayFactory *factory, const char *seat_id, gboolean initial) { GdmDisplayStore *store; GdmDisplay *display; guint32 num; /* Ensure we don't create the same display more than once */ ...
false
false
false
false
false
0
WordHood_Alphabet_create(gint advance, gchar *input_alphabet, gchar *output_alphabet, gboolean case_sensitive_input){ register WordHood_Alphabet *wha = g_new(WordHood_Alphabet, 1); g_assert(in...
false
false
false
false
false
0
e2_fileview_get_row_name (ViewInfo *view, gint row) { GtkTreeIter iter; // GtkTreeModel *model = GTK_TREE_MODEL (view->store); maybe filter GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (view->treeview)); if (! gtk_tree_model_iter_nth_child (model, &iter, NULL, row)) return NULL; gchar *name; gtk...
false
false
false
false
false
0
setCurrentDateTime(const OFBool seconds, const OFBool fraction, const OFBool timeZone) { OFString dicomDateTime; OFCondition l_error = getCurrentDateTime(dicomDateTime, seconds, fraction, timeZone); if (l_error.good()) ...
false
false
false
false
false
0
MatchLocalModules() { const char* stampDir = this->TargetDirectory.c_str(); std::set<cmStdString> const& provides = this->Internal->TargetProvides; for(std::set<cmStdString>::const_iterator i = provides.begin(); i != provides.end(); ++i) { this->ConsiderModule(i->c_str(), stampDir); } }
false
false
false
false
false
0
eeprom_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct solo_dev *solo_dev = container_of(dev, struct solo_dev, dev); u16 *p = (u16 *)buf; int i; if (count & 0x1) dev_warn(dev, "EEPROM Write not aligned (truncating)\n"); if (!full_eeprom && count > 64) {...
false
false
false
false
false
0
simplifyVarMap(std::map<std::string, std::string> &variables) { for (std::map<std::string, std::string>::iterator i = variables.begin(); i != variables.end(); ++i) { std::string& varValue = i->second; // TODO: 1. tokenize the value, replace each token like this. // TODO: 2. handle function-...
false
false
false
false
false
0
wpa_set_param(struct net_device *dev, u8 name, u32 value) { struct _adapter *padapter = netdev_priv(dev); switch (name) { case IEEE_PARAM_WPA_ENABLED: padapter->securitypriv.AuthAlgrthm = 2; /* 802.1x */ switch ((value) & 0xff) { case 1: /* WPA */ padapter->securitypriv.ndisauthtype = Ndis802_11AuthMod...
false
false
false
false
false
0
load(const string &name) { if (name.empty()) return false; StringMapIt lookup_entry; FontCacheIt cache_entry; // check if one of <font1>|<font2>|<font3> is already there if ((lookup_entry = s_lookup_map.find(name)) != s_lookup_map.end() && (cache_entry = s_font_cache.find(look...
false
false
false
false
false
0
cx24120_read_status(struct dvb_frontend *fe, enum fe_status *status) { struct cx24120_state *state = fe->demodulator_priv; int lock; lock = cx24120_readreg(state, CX24120_REG_STATUS); dev_dbg(&state->i2c->dev, "status = 0x%02x\n", lock); *status = 0; if (lock & CX24120_HAS_SIGNAL) *status = FE_HAS_SIGNAL; ...
false
false
false
false
false
0
fini_ssa_operands (void) { struct ssa_operand_memory_d *ptr; if (!--n_initialized) { VEC_free (tree, heap, build_defs); VEC_free (tree, heap, build_uses); build_vdef = NULL_TREE; build_vuse = NULL_TREE; } gimple_ssa_operands (cfun)->free_defs = NULL; gimple_ssa_operands (cfun)-...
false
false
false
false
false
0
gpk_modal_dialog_show_widget (GpkModalDialog *dialog, const gchar *name, gboolean enabled) { GtkWidget *widget; widget = GTK_WIDGET (gtk_builder_get_object (dialog->priv->builder, name)); if (enabled) gtk_widget_show (widget); else gtk_widget_hide (widget); }
false
false
false
false
false
0
test_network_remote_remotes__cannot_save_an_inmemory_remote(void) { git_remote *remote; cl_git_pass(git_remote_create_inmemory(&remote, _repo, NULL, "git://github.com/libgit2/libgit2")); cl_assert_equal_p(NULL, git_remote_name(remote)); cl_git_fail(git_remote_save(remote)); git_remote_free(remote); }
false
false
false
false
false
0
test_engine_load_plugin_with_dep (PeasEngine *engine) { PeasPluginInfo *info; info = peas_engine_get_plugin_info (engine, "has-dep"); g_assert (peas_engine_load_plugin (engine, info)); g_assert (peas_plugin_info_is_loaded (info)); info = peas_engine_get_plugin_info (engine, "loadable"); g_assert (peas_p...
false
false
false
false
false
0
Scm_ParameterRef(ScmVM *vm, const ScmParameterLoc *loc) { ScmVMParameterTable *p = &(vm->parameters); ScmObj v; if (loc->index >= p->size) return loc->initialValue; v = p->vector[loc->index]; if (SCM_UNBOUNDP(v)) { v = p->vector[loc->index] = loc->initialValue; } return v; }
false
false
false
false
false
0
open(const QString& filename, QWidget* parent, const QString& label, QString& text_to_log) { qDeleteAll(m_database); m_database.clear(); QFile file(filename); if(!file.open(QFile::ReadOnly)) return false; QTextStream ts(&file); QString str1, str2; QProgressDialog progress(parent); progress.setModal(true);...
false
false
false
false
false
0
parse_port_range(const char *protocol, const char *portstring, uint16_t *ports) { char *buffer; char *cp; buffer = strdup(portstring); if ((cp = strchr(buffer, ':')) == NULL) ports[0] = ports[1] = parse_port(protocol, buffer); else { *cp = '\0'; cp++; ports[0] = buffer[0] ? parse_port(protocol, buffer) :...
false
false
false
false
false
0
luaV_tostring (lua_State *L, TObject *obj) { /* LUA_NUMBER */ if (ttype(obj) != LUA_TNUMBER) return 1; else { char s[32]; /* 16 digits, sign, point and \0 (+ some extra...) */ lua_number2str(s, nvalue(obj)); /* convert `s' to number */ tsvalue(obj) = luaS_new(L, s); ttype(obj) = LUA_TSTRING;...
false
false
false
false
false
0
numpos(a,b,c) /* Returns the number of its arguments that are positive. */ ulong a,b,c; { uword result=0; if (a>0) result++; if (b>0) result++; if (c>0) result++; return result; }
false
false
false
false
false
0
put () const { std::vector<unsigned long> v; v.push_back (engineIDulong<RandEngine>()); v.push_back(static_cast<unsigned long>(theSeed)); v.push_back(static_cast<unsigned long>(seq)); return v; }
false
false
false
false
false
0
free_cmdQ_buffers(struct sge *sge, struct cmdQ *q, unsigned int n) { struct cmdQ_ce *ce; struct pci_dev *pdev = sge->adapter->pdev; unsigned int cidx = q->cidx; q->in_use -= n; ce = &q->centries[cidx]; while (n--) { if (likely(dma_unmap_len(ce, dma_len))) { pci_unmap_single(pdev, dma_unmap_addr(ce, dma_addr...
false
false
false
false
false
0
init_offset_limit (void) { if (host_integerp (TYPE_MAX_VALUE (sizetype), 1)) offset_limit = tree_low_cst (TYPE_MAX_VALUE (sizetype), 1); else offset_limit = -1; offset_limit /= 2; }
false
false
false
false
false
0
correct_tsc(ulong el_org) { float coef_now, coef_max; int msr_lo, msr_hi, is_xe; rdmsr(0x198, msr_lo, msr_hi); is_xe = (msr_lo >> 31) & 0x1; if(is_xe){ rdmsr(0x198, msr_lo, msr_hi); coef_max = ((msr_hi >> 8) & 0x1F); if ((msr_hi >> 14) & 0x1) { coef_max = coef_max + 0.5f; } } else { rdmsr(0x17, m...
false
false
false
false
false
0
consume_stringpart(StringAccum& sa, const uint8_t* first, const uint8_t* last) { while ((state_ & st_partlenmask) && first != last) { int part = state_ & st_partlenmask; uint8_t tag = sa[sa.length() - part]; ...
false
false
false
false
false
0
newDirEntryList(void) { /* create new dir entry list */ struct sDirEntryList *tmp; if ((tmp=malloc(sizeof(struct sDirEntryList)))==NULL) { stderror(); return NULL; } memset(tmp, 0, sizeof(struct sDirEntryList)); return tmp; }
false
false
false
false
false
0
MkExternalFunction(struct FunctionDefinition * function) { struct External * external = (external = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_External), external->type = 0, external->function = function, external->symbol = function->declarator->symbol, external); if(function->specifiers) { struct Specif...
false
false
false
false
false
0
__uwb_dev_offair(struct uwb_dev *uwb_dev, struct uwb_rc *rc) { struct device *dev = &uwb_dev->dev; char macbuf[UWB_ADDR_STRSIZE], devbuf[UWB_ADDR_STRSIZE]; uwb_mac_addr_print(macbuf, sizeof(macbuf), &uwb_dev->mac_addr); uwb_dev_addr_print(devbuf, sizeof(devbuf), &uwb_dev->dev_addr); dev_info(dev, "uwb device (mac...
false
false
false
false
false
0
finalizeVisualText (const QString &final, Kuit::FmtVar fmt, bool hadQtTag, bool hadAnyHtmlTag) const { KuitSemanticsStaticData *s = semanticsStaticData; QString ...
false
false
false
false
false
0
gfs_l_gfork_mem_limit_calc() { globus_off_t mem_given; if(gfs_l_memlimit_available <= 0) { return -1; } if(g_connection_count <= gfs_l_gfork_nice_share_count) { mem_given = GFSGforkTopNiceShare(gfs_l_memlimit); mem_given = mem_given / gfs_l_gfork_...
false
false
false
false
false
0
epCapIsPreferred(OOH323CallData *call, ooH323EpCapability *epCap) { ooH323EpCapability *curCap = call->ourCaps; while (curCap) { if (curCap->capType == epCap->capType) { if (curCap->cap == epCap->cap) return 1; else return 0; } curCap = curCap->next; } return 0; }
false
false
false
false
false
0
ExpandVariable(const char* var) { if(!var) { return 0; } if(this->FileName && strcmp(var, "CMAKE_CURRENT_LIST_FILE") == 0) { return this->AddString(this->FileName); } else if(this->FileLine >= 0 && strcmp(var, "CMAKE_CURRENT_LIST_LINE") == 0) { cmOStringStream ostr; ostr << thi...
false
false
false
false
false
0
expWaitOnAny() { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); int result; ExpState *esPtr; for (esPtr = tsdPtr->firstExpPtr;esPtr;esPtr = esPtr->nextPtr) { if (esPtr->pid == exp_getpid) continue; /* skip ourself */ if (esPtr->user_waited) continue; /* one wait only! */ if (esPtr->sys_waited)...
false
false
false
false
false
0
gettail_dir(fname) char_u *fname; { char_u *dir_end = fname; char_u *next_dir_end = fname; int look_for_sep = TRUE; char_u *p; for (p = fname; *p != NUL; ) { if (vim_ispathsep(*p)) { if (look_for_sep) { next_dir_end = p; look_for_sep = FALSE; } } else { if (!lo...
false
false
false
false
false
0
_idn2_contextj_rule (const uint32_t * label, size_t llen, size_t pos) { uint32_t cp; if (llen == 0) return IDN2_OK; cp = label[pos]; if (!_idn2_contextj_p (cp)) return IDN2_OK; switch (cp) { case 0x200C: /* ZERO WIDTH NON-JOINER */ if (pos > 0) { /* If Canonical_Combining_Class(...
false
false
false
false
false
0
think_assign_better_overseer2(int targetTownRecno, int raceId) { int reduceResistance; Nation* ownNation = nation_array[nation_recno]; int bestUnitRecno = ownNation->find_best_capturer(targetTownRecno, raceId, reduceResistance); if( !bestUnitRecno || bestUnitRecno==overseer_recno ) // if we already got the best...
false
false
false
false
false
0
cost_subplan(PlannerInfo *root, SubPlan *subplan, Plan *plan) { QualCost sp_cost; /* Figure any cost for evaluating the testexpr */ cost_qual_eval(&sp_cost, make_ands_implicit((Expr *) subplan->testexpr), root); if (subplan->useHashTable) { /* * If we are using a hash table for the subquery ou...
false
false
false
false
false
0
on_sel_changed_real(FmStandardView* fv) { /* clear cached selected files */ if(fv->cached_selected_files) { fm_file_info_list_unref(fv->cached_selected_files); fv->cached_selected_files = NULL; } if(fv->cached_selected_file_paths) { fm_path_list_unref(fv->cached_selected_...
false
false
false
false
false
0
hdhomerun_sock_recv(hdhomerun_sock_t sock, void *data, size_t *length, uint64_t timeout) { uint64_t stop_time = getcurrenttime() + timeout; while (1) { int ret = recv(sock, data, *length, 0); if (ret < 0) { if ((errno != EAGAIN) && (errno != EWOULDBLOCK) && (errno != EINPROGRESS)) { return FALSE; } ...
false
false
false
false
false
0
interpol_expand_dataset (const DATASET *dset, int newpd, int *err) { gretl_matrix *Y0, *Y1 = NULL; int *list; list = gretl_consecutive_list_new(1, dset->v - 1); if (list == NULL) { *err = E_ALLOC; return NULL; } Y0 = gretl_matrix_data_subset(list, dset, dset->t1, dset->t2, ...
false
false
false
false
false
0
payload_info(const Packet *p, const click_ip *iph, int tailpad, int32_t &off, uint32_t &len) { if (iph) { len = ntohs(iph->ip_len); off = p->transport_header_offset(); uint32_t nlen = len + p->network_header_offset(); if (IP_FIRSTFRAG(iph)) switch (iph->ip_p) { case IP_PROTO_TCP: if (p->transpor...
false
false
false
false
false
0
ds1685_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) { struct ds1685_priv *rtc = dev_get_drvdata(dev); unsigned long flags = 0; /* Enable/disable the Alarm IRQ-Enable flag. */ spin_lock_irqsave(&rtc->lock, flags); /* Flip the requisite interrupt-enable bit. */ if (enabled) rtc->write(rtc, RTC...
false
false
false
false
false
0
redrat3_val_to_mod_freq(struct redrat3_irdata *irdata) { u32 mod_freq = 0; u16 mod_freq_count = be16_to_cpu(irdata->mod_freq_count); if (mod_freq_count != 0) mod_freq = (RR3_CLK * be16_to_cpu(irdata->num_periods)) / (mod_freq_count * RR3_CLK_PER_COUNT); return mod_freq; }
false
false
false
false
false
0
tkSetFogRamp(int density, int startIndex) { XColor c[4096]; int rShift, gShift, bShift, intensity, fogValues, colorValues; int i, j, k; switch (w.vInfoMain->class) { case DirectColor: fogValues = 1 << density; colorValues = 1 << startIndex; for (i = 0; i < colorValues; i++) { for (j = 0; ...
false
false
false
false
false
0
get_double_val( gpointer pObject ) { slot_info_t* pInfo = (slot_info_t*)pObject; static double d_val; g_return_val_if_fail( pObject != NULL, NULL ); if ( kvp_value_get_type( pInfo->pKvpValue ) == KVP_TYPE_DOUBLE ) { d_val = kvp_value_get_double( pInfo->pKvpValue ); return (gpointer...
false
false
false
false
false
0
do_pipe(struct tcb *tcp, int flags_arg) { if (exiting(tcp)) { if (syserror(tcp)) { tprintf("%#lx", tcp->u_arg[0]); } else { #if defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(SH) && !defined(IA64) int fds[2]; if (umoven(tcp, tcp->u_arg[0], sizeof fds, (char *) fds) < 0) tprintf("[...
false
false
false
false
false
0
getCustomFunctionType(FunctionType *T) { llvm::SmallVector<Type *, 4> ArgTypes; for (FunctionType::param_iterator i = T->param_begin(), e = T->param_end(); i != e; ++i) { FunctionType *FT; if (isa<PointerType>(*i) && (FT = dyn_cast<FunctionType>(cast<PointerType>( ...
false
false
false
false
false
0
unary_operator () { char *op; intmax_t r; op = argv[pos]; if (test_unop (op) == 0) return (FALSE); /* the only tricky case is `-t', which may or may not take an argument. */ if (op[1] == 't') { advance (0); if (pos < argc) { if (legal_number (argv[pos], &r)) { advance (...
false
false
false
false
false
0
p_restore_edit_settings (GapStbTabWidgets *tabw, GapStoryBoard *stb) { if(stb == NULL) { return; } if (stb->edit_settings) { GapStorySection *section; gint32 l_rowpage; gint32 l_page; section = gap_story_find_section_by_name(stb, stb->edit_settings->section_name); if (section ==...
false
false
false
false
false
0
exit_units_dlg_callback(struct widget *pWidget) { if (Main.event.button.button == SDL_BUTTON_LEFT) { if (pUnitsDlg) { if (pUnits_Upg_Dlg) { del_group_of_widgets_from_gui_list(pUnits_Upg_Dlg->pBeginWidgetList, pUnits_Upg_Dlg->pEndWidgetList); FC_FREE(pUnits_U...
false
false
false
false
false
0
printFunction(const std::string& fname, const std::string& funcName) { const Function* F = TheModule->getFunction(funcName); if (!F) { error(std::string("Function '") + funcName + "' not found in input module"); return; } Out << "\nFunction* " << fname << "(Module *mod) {\n...
false
false
false
false
false
0
IsFun() const { return (dynamic_cast<DFun*>(pro) != NULL); }
false
false
false
false
false
0
ParseDirectiveFile(StringRef, SMLoc DirectiveLoc) { // FIXME: I'm not sure what this is. int64_t FileNumber = -1; SMLoc FileNumberLoc = getLexer().getLoc(); if (getLexer().is(AsmToken::Integer)) { FileNumber = getTok().getIntVal(); Lex(); if (FileNumber < 1) return TokError("file number less ...
false
false
false
false
false
0
DispositionNode(void *pNode) { if (m_containers.empty()) { m_pRootNode = pNode; return; } void *pContainer = m_containers.top().pContainer; if (m_containers.top().isMap()) { if (m_pKeyNode) { m_builder.AssignInMap(pContainer, m_pKeyNode, pNode); m_pKeyNode = NULL...
false
false
false
false
false
0
snippet_is_equal (AnjutaSnippet *snippet, AnjutaSnippet *snippet2) { const gchar *trigger = NULL, *trigger2 = NULL, *cur_lang = NULL; GList *iter = NULL, *languages = NULL; /* Assertions */ g_return_val_if_fail (ANJUTA_IS_SNIPPET (snippet), FALSE); g_return_val_if_fail (ANJUTA_IS_SNIPPET (snippe...
false
false
false
false
false
0
ensToplevelassemblymapperNewIni( EnsPAssemblymapperadaptor ama, EnsPCoordsystem asmcs, EnsPCoordsystem cmpcs) { EnsPCoordsystemadaptor csa = NULL; EnsPToplevelassemblymapper tlam = NULL; if (!ama) return NULL; if (!asmcs) return NULL; if (!cmpcs) return NULL; ...
false
false
false
false
false
0
SPI_execute_snapshot(SPIPlanPtr plan, Datum *Values, const char *Nulls, Snapshot snapshot, Snapshot crosscheck_snapshot, bool read_only, bool fire_triggers, long tcount) { int res; if (plan == NULL || plan->magic != _SPI_PLAN_MAGIC || tcount < 0) return SPI_ERROR_ARGUMENT; if (plan->nargs > 0...
false
false
false
false
false
0
test_index(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { Evas_Object *win, *bxx, *gl, *id, *bt; Elm_Object_Item *glit; int i, j; api_data *api = calloc(1, sizeof(api_data)); win = elm_win_util_standard_add("index", "Index"); elm_win_autodel_set(win, EINA_TRUE); ...
false
false
false
false
false
0
LowestLeft (Coord* x, Coord* y, int count) { register int i; int lowestLeft = 0; Coord lx = *x; Coord ly = *y; for (i = 1; i < count; ++i) { if (y[i] < ly || (y[i] == ly && x[i] < lx)) { lowestLeft = i; lx = x[i]; ly = y[i]; } } return lowestLeft; }
false
false
false
false
false
0
sound_close_dma(int chn) { if (dma_alloc_map[chn] != DMA_MAP_BUSY) { printk(KERN_ERR "sound_close_dma: Bad access to DMA channel %d\n", chn); return; } dma_alloc_map[chn] = DMA_MAP_FREE; }
false
false
false
false
false
0
xcharint(void) { LVAL arg; arg = xlgachar(); xllastarg(); return (cvfixnum((FIXTYPE)getchcode(arg))); }
false
false
false
false
false
0
G_DoPlayDemo(void) { skill_t skill; int i, episode, map; gameaction = ga_nothing; demobuffer = demo_p = W_CacheLumpName(defdemoname, PU_STATIC); skill = *demo_p++; episode = *demo_p++; map = *demo_p++; for (i = 0; i < MAXPLAYERS; i++) playeringame[i] = *demo_p++; precache ...
false
false
false
false
false
0
do_realpath (const char *path) { char *ret; CHROOT_IN; ret = realpath (path, NULL); CHROOT_OUT; if (ret == NULL) { reply_with_perror ("%s", path); return NULL; } return ret; /* caller frees */ }
false
true
false
false
false
1
emit_mode_nunits (void) { int c; struct mode_data *m; print_decl ("unsigned char", "mode_nunits", "NUM_MACHINE_MODES"); for_all_modes (c, m) tagged_printf ("%u", m->ncomponents, m->name); print_closer (); }
false
false
false
false
false
0
bnx2x_peer_apptable(struct net_device *netdev, struct dcb_app *table) { int i, j; struct bnx2x *bp = netdev_priv(netdev); DP(BNX2X_MSG_DCB, "APP-TABLE\n"); for (i = 0, j = 0; i < DCBX_MAX_APP_PROTOCOL; i++) { struct dcbx_app_priority_entry *ent = &bp->dcbx_remote_feat.app.app_pri_tbl[i]; if (ent...
false
false
false
false
false
0
CMAC_CTX_new(void) { CMAC_CTX *ctx; ctx = OPENSSL_malloc(sizeof(CMAC_CTX)); if (!ctx) return NULL; EVP_CIPHER_CTX_init(&ctx->cctx); ctx->nlast_block = -1; return ctx; }
false
false
false
false
false
0
setTimeList(QList<QTime> timeList, const QString &minWarnMsg, const QString &maxWarnMsg) { if (timeList != d->m_timeList) { d->m_timeList.clear(); foreach (const QTime &time, timeList) { if (time.isValid() && !d->m_timeList.contains(time)) { ...
false
false
false
false
false
0
waitSaveComplete() { Q_D(ReadWritePart); if (!d->m_uploadJob) return d->m_saveOk; d->m_waitForSave = true; d->m_eventLoop.exec(QEventLoop::ExcludeUserInputEvents); d->m_waitForSave = false; return d->m_saveOk; }
false
false
false
false
false
0
bitmap_knob_update ( GtkWidget *widget ) { BitmapKnob *self = BITMAP_KNOB (widget); gdouble value = gtk_adjustment_get_value (self->adjustment); gdouble lower = gtk_adjustment_get_lower (self->adjustment); gdouble upper = gtk_adjustment_get_upper (self->adjustment); guint frame = self->frame_count * ((value - lo...
false
false
false
false
false
0
comm_fdopenex(int new_socket, int sock_type, struct in_addr addr, u_short port, int flags, unsigned char tos, const char *note) { fde *F = NULL; fd_open(new_socket, FD_SOCKET, note); F = &fd_table[new_socket]; F->local_addr = addr; F->tos = tos; if (!(flags & COMM_NOCLOE...
false
false
false
false
false
0
_pager_cb_event_border_resize(void *data __UNUSED__, int type __UNUSED__, void *event) { E_Event_Border_Resize *ev = event; Eina_List *l, *l2; Pager *p; EINA_LIST_FOREACH(pagers, l, p) { Pager_Desk *pd; if (p->zone != ev->border->zone) continue; EINA_LIST_FOREACH(p->desks, l2,...
false
false
false
false
false
0
IoMessage_setCachedArg_to_(IoMessage *self, int n, IoObject *v) { IoMessage *arg; while (!(arg = List_at_(DATA(self)->args, n))) { IoMessage_addArg_(self, IoMessage_new(IOSTATE)); } IoMessage_cachedResult_(arg, v); }
false
false
false
false
false
0
add_entry(TiffEncoderContext * s, enum TiffTags tag, enum TiffTypes type, int count, const void *ptr_val) { uint8_t *entries_ptr = s->entries + 12 * s->num_entries; assert(s->num_entries < TIFF_MAX_ENTRY); bytestream_put_le16(&entries_ptr, tag); bytestream_p...
false
false
false
false
false
0
escp2_set_paper_dimensions(stp_vars_t *v) { escp2_privdata_t *pd = get_privdata(v); if (pd->advanced_command_set) { const stp_vars_t *pv = pd->media_settings; int w = pd->page_true_width * pd->page_management_units / 72; int h = (pd->page_true_height + pd->paper_extra_bottom) * pd->page_manag...
false
false
false
false
false
0
jclass_descriptor_get_parameters_array(const char* descriptor) { char** params; const char *p; int i; int token_length; int params_count; int parsing_class; int parsing_array; if(descriptor[0] != '(') { params = (char**) malloc(1 * sizeof(char*)); params[0] = NULL; return params; } params_count = 0; ...
false
true
false
false
false
1
clear() { NLS_SWAP_IN; try { destroy(); archive_option_clean_mask(x_selection); archive_option_clean_mask(x_subtree); archive_option_clean_mask(x_ea_mask); archive_option_clean_mask(x_compr_mask); archive_option_clean_mask(x_backup_hook_file_mask, false); x_ref_arch = NULL; ...
false
false
false
false
false
0
l3ni1_setup_rsp(struct l3_process *pc, u_char pr, void *arg) { if (!pc->para.bchannel) { if (pc->debug & L3_DEB_WARN) l3_debug(pc->st, "D-chan connect for waiting call"); l3ni1_disconnect_req(pc, pr, arg); return; } newl3state(pc, 8); if (pc->debug & L3_DEB_WARN) l3_debug(pc->st, "D-chan connect for wai...
false
false
false
false
false
0
tx_done_irq(struct atmel_private *priv) { int i; for (i = 0; atmel_rmem8(priv, atmel_tx(priv, TX_DESC_FLAGS_OFFSET, priv->tx_desc_head)) == TX_DONE && i < priv->host_info.tx_desc_count; i++) { u8 status = atmel_rmem8(priv, atmel_tx(priv, TX_DESC_STATUS_OFFSET, priv->tx_desc_head)); u16 msdu_si...
false
false
false
false
false
0
pixFindDifferentialSquareSum(PIX *pixs, l_float32 *psum) { l_int32 i, n; l_int32 w, h, skiph, skip, nskip; l_float32 val1, val2, diff, sum; NUMA *na; PROCNAME("pixFindDifferentialSquareSum"); if (!pixs) return ERROR_INT("pixs not defined", procName, 1);...
false
false
false
false
false
0
evaluate_print(policy_state_t *state, const policy_item_t *item) { const policy_print_t *this; if (!fr_log_fp) return 1; this = (const policy_print_t *) item; if (this->rhs_type == POLICY_LEX_BARE_WORD) { fprintf(fr_log_fp, "%s\n", this->rhs); } else { char buffer[1024]; radius_xlat(buffer, sizeof(buffer...
false
false
false
false
false
0
reset_tracks(void) { int i, j; int *trackmap; /* * Since we access track numbers indirectly (to handle sections * with at least a little elegance), the track mapping needs to be * set up before we read anything. Initially it must assume that * no sections will appear in this datafile. ...
false
true
false
false
false
1
go_component_get_data (GOComponent *component, gpointer *data, int *length, GDestroyNotify *clearfunc, gpointer *user_data) { GOComponentClass *klass; gboolean res = FALSE; g_return_val_if_fail (GO_IS_COMPONENT (component), FALSE); if (component->destroy_notify != NULL) { component->destroy_notify (co...
false
false
false
true
false
1
resize(int new_size, bool* copy_flags) { resize_component_impl1((int*&)elementCodes, nofElements, new_size, (int)0, copy_flags); resize_component_impl3(edgeIds, nofElements, new_size, 0, (int)0, copy_flags); resize_component_impl3(neighborIds, nofElements, new_size, 0, (int)0, copy_flags); resize_component_imp...
false
false
false
false
false
0
show_game_page() { struct widget *pWidget; SDL_Surface *pIcon_theme = NULL; if (SDL_Client_Flags & CF_MAP_UNIT_W_CREATED) { return; } popup_minimap_window(); popup_unitinfo_window(); SDL_Client_Flags |= CF_MAP_UNIT_W_CREATED; #ifndef SMALL_SCREEN init_options_button(); #endif /* cooling ...
false
false
false
false
false
0
Perl_call_list(pTHX_ I32 oldscope, AV *paramList) { dVAR; SV *atsv; volatile const line_t oldline = PL_curcop ? CopLINE(PL_curcop) : 0; CV *cv; STRLEN len; int ret; dJMPENV; PERL_ARGS_ASSERT_CALL_LIST; while (av_len(paramList) >= 0) { cv = MUTABLE_CV(av_shift(paramList)); if (PL_...
false
false
false
false
false
0
summary_unwatch_thread_func(GtkCMCTree *ctree, GtkCMCTreeNode *row, gpointer data) { SummaryView *summaryview = (SummaryView *) data; MsgInfo *msginfo; msginfo = gtk_cmctree_node_get_row_data(ctree, row); cm_return_if_fail(msginfo); summary_msginfo_unset_flags(msginfo, MSG_WATCH_THREAD, 0); summary_set_row_mar...
false
false
false
false
false
0
opOUT16_B_BB (int opcode) { CINEBYTE temp_byte = opcode & 0x07; if (temp_byte - 0x06) return opOUTsnd_B (opcode); if ((register_B & 0xFF) != 1) { vgColour = FromX & 0x0F; if (!vgColour) vgColour = 1; } return state_BB; }
false
false
false
false
false
0
fix_device_geometry(struct gfs2_sbd *sdp) { struct device *device = &sdp->device; device->length = sdp->dinfo.size / sdp->bsize; if (sdp->debug) { printf("\nDevice Geometry: (in FS blocks)\n"); printf(" length = %"PRIu64"\n", device->length); printf("\nDevice Size: %"PRIu64"\n", sdp->dinfo.size); } }
false
false
false
false
false
0
findTeXTags(void) { const char *line; while ((line = (const char*)fileReadLine()) != NULL) { const char *cp = line; /*int escaped = 0;*/ for (; *cp != '\0'; cp++) { if (*cp == '%') break; if (*cp == '\\') { cp++; /* \newcommand{\command} */ if (getWord("newcommand", ...
false
false
false
false
false
0
gnome_rr_screen_initable_init (GInitable *initable, GCancellable *canc, GError **error) { GnomeRRScreen *self = GNOME_RR_SCREEN (initable); GnomeRRScreenPrivate *priv = self->priv; Display *dpy = GDK_SCREEN_XDISPLAY (self->priv->gdk_screen); int event_base; int ignore; priv->connector_type_atom...
false
false
false
false
false
0
skip_fields(char *str, int count) { do { while (*str++ != ' ') continue; /* we found a space char, str points after it */ } while (--count); return str; }
false
false
false
false
false
0
ping_cave(int str, int *lib1, int *lib2, int *lib3, int *lib4) { int pos; int k; int libs[MAXLIBS]; int mrc[BOARDMAX]; int mse[BOARDMAX]; int color = board[str]; int other = OTHER_COLOR(color); memset(mse, 0, sizeof(mse)); /* Find and mark the first order liberties. */ *lib1 = findlib(str, MAXLIBS...
false
false
false
false
false
0
givelosigalias( ptfig, head_sigalias, n ) lofig_list *ptfig; chain_list *head_sigalias; int n; { chain_list *scan_head_sigalias; chain_list *scan_sigalias; losig_list *ptsig; losig_list *grpsig; for( scan_head_sigalias = head_sigalias; scan_head_sigalias; scan_head_sigalias = scan_head_sigalias->NEXT ) { fo...
false
false
false
false
false
0
findfqdn(struct hostent *host) { int i; if (strchr(host->h_name, '.')) return strdup(host->h_name); for (i=0; host->h_aliases[i] != NULL; i++) { if (!strchr(host->h_aliases[i], '.')) continue; else if (!strncasecmp(host->h_aliases[i], host->h_name, strlen(host->h_name))) return strdup(host->h_aliases[...
false
false
false
false
false
0
gistandard_create(cpl_plugin* plugin) { cpl_recipe* recipe = (cpl_recipe*)plugin; cpl_parameter* p = NULL; giraffe_error_init(); /* * We have to provide the option we accept to the application. We * need to setup our parameter list and hook it into the recipe * interface. */ ...
false
false
false
false
false
0
get_argument(struct archive_string *as, const char *p) { const char *s = p; archive_string_empty(as); /* Skip beginning space characters. */ while (*s != '\0' && *s == ' ') s++; /* Copy non-space characters. */ while (*s != '\0' && *s != ' ') { if (*s == '\\') { if (s[1] != '\0') { archive_strappend_...
false
false
false
false
false
0