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
inf_communication_central_method_dispose(GObject* object) { InfCommunicationCentralMethod* method; InfCommunicationCentralMethodPrivate* priv; method = INF_COMMUNICATION_CENTRAL_METHOD(object); priv = INF_COMMUNICATION_CENTRAL_METHOD_PRIVATE(method); while(priv->connections != NULL) { inf_communicatio...
false
false
false
false
false
0
group_add_one(void *closure, struct gfarm_group_info *gi) { gfarm_error_t e = group_info_add(gi); if (e != GFARM_ERR_NO_ERROR) { /* cannot use gi.groupname, since it's freed here */ gflog_warning(GFARM_MSG_1002314, "group_add_one(): %s", gfarm_error_string(e)); } }
false
false
false
false
false
0
_xmlreader_get_relaxNG(char *source, int source_len, int type, xmlRelaxNGValidityErrorFunc error_func, xmlRelaxNGValidityWarningFunc warn_func TSRMLS_DC) { char *valid_file = NULL; xmlRelaxNGParserCtxtPtr parser = NULL; xmlRelaxNGPtr sptr; char resolved_path[MAXPATHLEN + 1]; swit...
false
false
false
false
false
0
language_untitled_setup_lexer(Language_Provider *lguntitled) { g_return_if_fail(lguntitled); Language_UntitledDetails *lguntitleddet = LANGUAGE_UNTITLED_GET_PRIVATE(lguntitled); gtk_scintilla_clear_document_style (lguntitleddet->sci); /* SCLEX_NULL to select no lexing action */ gtk_scintilla_set_lexer(GTK_SC...
false
false
false
false
false
0
destroy_hash_table(struct hash_table *tbl, void (*delete_obj)(void *)) { struct list_head *head, *next, *tmp; struct hash_entry *entry; int i; for (i = 0; i < tbl->ht_size; i++) { head = &tbl->ht_lists[i]; next = head->next; while (next != head) { tmp = next->next; entry = list_entr...
false
false
false
false
false
0
cm_submit_e_save_ca_cookie(struct cm_store_entry *entry, struct cm_submit_state *state) { int status; long delay; const char *msg; char *p; talloc_free(entry->cm_ca_cookie); entry->cm_ca_cookie = NULL; status = cm_subproc_get_exitstatus(entry, state->subproc); if (WIFEXITED(status) && ((WEXITSTATUS(s...
false
false
false
false
false
0
utf32_decompose_hangul_char(uint32 uc, uint32 *buf) { /* * Take advantage of algorithmic Hangul decomposition to reduce * the size of the lookup table drastically. See also: * * http://www.unicode.org/reports/tr15/#Hangul */ #define T_COUNT 28 #define V_COUNT 21 #define N_COUNT (T_COUNT * V_COUNT) static ...
false
false
false
false
false
0
u_printf_char_handler(const u_printf_stream_handler *handler, void *context, ULocaleBundle *formatBundle, const u_printf_spec_info *info, const ufmt_args *args) { ...
false
false
false
false
false
0
cvector_add(struct cvector *vector, const char *string) { size_t next = vector->count; if (vector->count == vector->allocated) cvector_resize(vector, vector->allocated + 1); vector->strings[next] = string; vector->count++; }
false
false
false
true
false
1
argify(CHAR16 *buf, UINTN len, CHAR16 **argv) { UINTN i=0, j=0; CHAR16 *p = buf; if (buf == 0) { argv[0] = NULL; return 0; } /* len represents the number of bytes, not the number of 16 bytes chars */ len = len >> 1; /* * Here we use CHAR_NULL as the terminator rather than...
false
false
false
false
false
0
item_unlink(item *it) { if (it->it_flags & ITEM_LINKED) { it->it_flags &= ~ITEM_LINKED; stats.curr_bytes -= ITEM_ntotal(it); stats.curr_items -= 1; assoc_delete(ITEM_key(it)); item_unlink_q(it); } if (it->refcount == 0) item_free(it); }
false
false
false
false
false
0
lj_ir_emit(jit_State *J) { IRRef ref = lj_ir_nextins(J); IRIns *ir = IR(ref); IROp op = fins->o; ir->prev = J->chain[op]; J->chain[op] = (IRRef1)ref; ir->o = op; ir->op1 = fins->op1; ir->op2 = fins->op2; J->guardemit.irt |= fins->t.irt; return TREF(ref, irt_t((ir->t = fins->t))); }
false
false
false
false
false
0
cmor_have_NetCDF3(void) { char version[50]; int major; strncpy(version,nc_inq_libvers(),50); if (version[0]!='"') return 1; sscanf(version,"%*c%1d%*s",&major); if (major!=3) return 1; return 0; }
false
false
false
false
false
0
cs5530_qc_issue(struct ata_queued_cmd *qc) { struct ata_port *ap = qc->ap; struct ata_device *adev = qc->dev; struct ata_device *prev = ap->private_data; /* See if the DMA settings could be wrong */ if (ata_dma_enabled(adev) && adev != prev && prev != NULL) { /* Maybe, but do the channels match MWDMA/UDMA ? */ ...
false
false
false
false
false
0
setNumCapabilities (nat new_n_capabilities USED_IF_THREADS) { #if !defined(THREADED_RTS) if (new_n_capabilities != 1) { errorBelch("setNumCapabilities: not supported in the non-threaded RTS"); } return; #elif defined(NOSMP) if (new_n_capabilities != 1) { errorBelch("setNumCapabilities: n...
false
false
false
false
false
0
__wb_calc_thresh(struct dirty_throttle_control *dtc) { struct wb_domain *dom = dtc_dom(dtc); unsigned long thresh = dtc->thresh; u64 wb_thresh; long numerator, denominator; unsigned long wb_min_ratio, wb_max_ratio; /* * Calculate this BDI's share of the thresh ratio. */ fprop_fraction_percpu(&dom->completio...
false
false
false
false
false
0
loadSystem() { bool ok = true; QString cur_system = PsiOptions::instance()->getOption("options.iconsets.system").toString(); if (d->cur_system != cur_system) { Iconset sys = d->systemIconset(&ok); d->loadIconset(&d->system, &sys); //d->system = d->systemIconset(); d->system.addToFactory(); d->cur_system ...
false
false
false
false
false
0
enchant_pwl_refresh_from_file(EnchantPWL* pwl) { char buffer[BUFSIZ]; char* line; size_t line_number = 1; FILE *f; struct stat stats; if(!pwl->filename) return; if(g_stat(pwl->filename, &stats)!=0) return; /*presumably I won't be able to open the file either*/ if(pwl->file_changed == stats.st_mtime) ...
false
false
false
false
false
0
DIMSE_dumpMessage(OFString &str, T_DIMSE_C_MoveRQ &msg, enum DIMSE_direction dir, DcmItem *dataset, T_ASC_PresentationContextID presID) { OFOStringStream stream; const char *uid = dcmFindNameOfUID(msg.AffectedSOPClassUID); DIMSE_dumpMessage_start(str, dir); stream << "Message Type : C-...
false
false
false
false
false
0
lammps_extract_global(void *ptr, char *name) { LAMMPS *lmp = (LAMMPS *) ptr; if (strcmp(name,"dt") == 0) return (void *) &lmp->update->dt; if (strcmp(name,"boxxlo") == 0) return (void *) &lmp->domain->boxlo[0]; if (strcmp(name,"boxxhi") == 0) return (void *) &lmp->domain->boxhi[0]; if (strcmp(name,"boxylo") ...
false
false
false
false
false
0
getSingleSuccessor() { succ_iterator SI = succ_begin(this), E = succ_end(this); if (SI == E) return nullptr; // no successors BasicBlock *TheSucc = *SI; ++SI; return (SI == E) ? TheSucc : nullptr /* multiple successors */; }
false
false
false
false
false
0
inclc(int i) { while (i-- > 0) { if( pass2 && getloc(lc) ) error("Location counter overlaps"); if( pass2 ) setloc(lc); lc += 1; } if( lc > 0xffff ) error("Location counter has exceeded 16-bits"); }
false
false
false
false
false
0
save(std::ostream& out, bool doIndent, bool doNewline) { // output all processing instructions NodeList::const_iterator iter, stop; iter = mProcInstructions.begin(); stop = mProcInstructions.end(); out << "<?xml version=\"1.0\" ?>" << std::endl; for(; iter!=stop; ++iter) {...
false
false
false
false
false
0
clcache_new_busy_list () { CLC_Busy_List *bl; int welldone = 0; do { if ( NULL == (bl = ( CLC_Busy_List* ) slapi_ch_calloc (1, sizeof(CLC_Busy_List)) )) break; if ( NULL == (bl->bl_lock = PR_NewLock ()) ) break; /* if ( NULL == (bl->bl_max_csn = csn_new ()) ) break; */ welldone = 1; } whil...
false
false
false
false
false
0
ext4_dax_pmd_fault(struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, unsigned int flags) { int result; handle_t *handle = NULL; struct inode *inode = file_inode(vma->vm_file); struct super_block *sb = inode->i_sb; bool write = flags & FAULT_FLAG_WRITE; if (write) { sb_start_pagefault(sb); fil...
false
false
false
false
false
0
sshv2_decode_file_attributes (gftp_request * request, sshv2_message * message, gftp_file * fle) { guint32 attrs, num, count, i; int ret; if ((ret = sshv2_buffer_get_int32 (request, message, 0, 0, &attrs)) < 0) return (ret); if (attrs & SSH_FILEXFER_ATTR_SIZE) { if (...
false
false
false
false
false
0
createEngine(const QString& managerName, const QMap<QString, QString>& parameters) { m_engine = 0; QString builtManagerName = managerName.isEmpty() ? QContactManager::availableManagers().value(0) : managerName; if (builtManagerName == QLatin1String("memory")) { m_engine = new QContactManagerEngineV...
false
false
false
false
false
0
ecdsa_verify_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {/* (Type, Data|{digest,Digest}, Signature, Curve, Key) */ #if defined(HAVE_EC) ErlNifBinary data_bin, sign_bin; unsigned char hmacbuf[SHA512_LEN]; int i; EC_KEY* key = NULL; const ERL_NIF_TERM type = argv[0]; const ERL_NIF_TE...
false
false
false
false
false
0
_wrap_lfc_registerfiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; struct lfc_filereg *arg2 = (struct lfc_filereg *) 0 ; int *arg3 = (int *) 0 ; int **arg4 = (int **) 0 ; PyObject * obj0 = 0 ; RETURNCODE result; { int tmp_int; int *tmp_tab; arg3 ...
false
false
false
false
false
0
_request_firmware_load(struct firmware_priv *fw_priv, unsigned int opt_flags, long timeout) { int retval = 0; struct device *f_dev = &fw_priv->dev; struct firmware_buf *buf = fw_priv->buf; /* fall back on userspace loading */ buf->is_paged_buf = true; dev_set_uevent_suppress(f_dev, true); retval = devic...
false
false
false
false
false
0
print_archive_ref(const char *refname, const unsigned char *sha1, int flags, void *cb_data) { struct tag *tag; struct taginfo *info; struct object *obj; char buf[256], *url; unsigned char fileid[20]; int *header = (int *)cb_data; if (prefixcmp(refname, "refs/archives")) return 0; strncpy(buf, refnam...
true
true
false
false
false
1
obj_policy_set_delegation_index(TSS_HPOLICY hPolicy, UINT32 index) { struct tsp_object *obj; struct tr_policy_obj *policy; TPM_DELEGATE_PUBLIC public; TSS_RESULT result; if ((obj = obj_list_get_obj(&policy_list, hPolicy)) == NULL) return TSPERR(TSS_E_INVALID_HANDLE); policy = (struct tr_policy_obj *)obj->data...
false
false
false
false
false
0
init_conf_file(MarkdownConfig *conf) { GError *error = NULL; gchar *def_tmpl, *dirn; dirn = g_path_get_dirname(conf->priv->filename); if (!g_file_test(dirn, G_FILE_TEST_IS_DIR)) { g_mkdir_with_parents(dirn, 0755); } if (!g_file_test(conf->priv->filename, G_FILE_TEST_EXISTS)) { if (!g_file_set_cont...
false
false
false
false
false
0
test_token(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2, int wrap_ext) { int32_t val; int i; for (i = 0; i < 10; i++) { /* mic */ test_mic(c1, hc1, c2, hc2); test_mic(c2, hc2, c1, hc1); /* wrap */ val = test_wrap(c1, hc1, c2, hc2, 0); if (val) return val; val = test_wrap(c2, hc2, ...
false
false
false
false
false
0
_cirrus_bitblt_system_to_screen(struct cpssp *cpssp) { #ifdef CIRRUS_DEBUG_BITBLT faum_log(FAUM_LOG_DEBUG, __FUNCTION__, "", "\n"); #endif /* source pitch is a don't care, calculate it to length of one src line in bytes */ if (cpssp->bitblt.mode & BITBLT_COLOR_EXPAND) { int bpl; /* source bits needed per line...
false
false
false
false
false
0
term_to_topform(Term t, BOOL is_formula) { Topform c = get_topform(); Term t_start; if (is_term(t, attrib_sym(), 2)) { c->attributes = term_to_attributes(ARG(t,1), attrib_sym()); t_start = ARG(t,0); } else t_start = t; c->is_formula = is_formula; if (is_formula) c->formula = term_to_form...
false
false
false
false
false
0
value_pair_get_value(LList *pairs, const char *key) { LList *node; for (node = pairs; node; node = node->next) { value_pair *vp = node->data; if (!strcasecmp(key, vp->key)) { if (!vp->value) return strdup(""); else return strdup(vp->value); } } return NULL; }
false
false
false
false
false
0
cik_sdma_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib) { struct radeon_ring *ring = &rdev->ring[ib->ring]; u32 extra_bits = (ib->vm ? ib->vm->ids[ib->ring].id : 0) & 0xf; if (rdev->wb.enabled) { u32 next_rptr = ring->wptr + 5; while ((next_rptr & 7) != 4) next_rptr++; next_rptr...
false
false
false
false
false
0
mk_dbversion_fullpath(struct ldbminfo *li, const char *directory, char *filename) { if (li) { if (is_fullpath((char *)directory)) { PR_snprintf(filename, MAXPATHLEN*2, "%s/%s", directory, DBVERSION_FILENAME); } else { char *home_dir = dblayer_get_h...
false
false
false
false
false
0
shpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { int rc; struct controller *ctrl; if (!is_shpc_capable(pdev)) return -ENODEV; ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); if (!ctrl) { dev_err(&pdev->dev, "%s: Out of memory\n", __func__); goto err_out_none; } INIT_LIST_HEAD(&ctrl->slot_li...
false
false
false
false
false
0
EmitAtomOp(JSContext *cx, JSParseNode *pn, JSOp op, JSCodeGenerator *cg) { JSAtomListElement *ale; JS_ASSERT(JOF_OPTYPE(op) == JOF_ATOM); if (op == JSOP_GETPROP && pn->pn_atom == cx->runtime->atomState.lengthAtom) { return js_Emit1(cx, cg, JSOP_LENGTH) >= 0; } ale = cg->atomList.add...
false
false
false
false
false
0
menu_invoke_by_title(int x, int y, Window win, char *title, Time timestamp) { menu_t *menu; REQUIRE(title != NULL); REQUIRE(menu_list != NULL); menu = find_menu_by_title(menu_list, title); if (!menu) { D_MENU(("Menu \"%s\" not found!\n", title)); return; } menu_invoke(x, y,...
false
false
false
false
false
0
int_log2(uint32_t v) { int c = 0; if (v & 0xffff0000u) { v >>= 16; c |= 16; } if (v & 0xff00) { v >>= 8; c |= 8; } if (v & 0xf0) { v >>= 4; c |= 4; } if (v & 0xc) { v >>= 2; c |= 2; } if (v & 0x2) c |= 1; return c; }
false
false
false
false
false
0
rebase_readfile( git_buf *out, git_buf *state_path, const char *filename) { size_t state_path_len = state_path->size; int error; git_buf_clear(out); if ((error = git_buf_joinpath(state_path, state_path->ptr, filename)) < 0 || (error = git_futils_readbuffer(out, state_path->ptr)) < 0) goto done; git_buf_r...
false
false
false
false
false
0
findColorSchemeByName (GList * schemes, const gchar * name) { colorschemed *s; gint i, n; n = g_list_length (schemes); for (i = 0; i < n; i++) { s = (colorschemed *) g_list_nth_data (schemes, i); if (strcmp (name, s->name) == 0) return (s); } return (NULL); }
false
false
false
false
false
0
unchanger() { if (uamul && uamul->otyp == AMULET_OF_UNCHANGING) return uamul; return 0; }
false
false
false
false
false
0
write (::zmq_msg_t *msg_) { // Once we've got peer's identity we aren't interested in subsequent // messages. if (has_peer_identity) return false; // Retreieve the remote identity. We'll use it as a local session name. has_peer_identity = true; peer_identity.assign ((const char*) zmq...
false
false
false
false
false
0
gstspu_vobsub_get_rle_code (SpuState * state, guint16 * rle_offset) { guint16 code; code = gstspu_vobsub_get_nibble (state, rle_offset); if (code < 0x4) { /* 4 .. f */ code = (code << 4) | gstspu_vobsub_get_nibble (state, rle_offset); if (code < 0x10) { /* 1x .. 3x */ code = (c...
false
false
false
false
false
0
intersect(const Ray &ray) { Vector u, v, n; double d, t; Point i, N; u = Pa - Pb; v = Pc - Pb; n = u.cross(v).normalized(); // No intersection if the ray is perpendicular to the triangle normal d = n.dot(ray.D); if (d == 0) return Hit::NO_HIT(); t = n.dot(Pa - ray.O) / d; // No intersection if the ray o...
false
false
false
false
false
0
on_click_button_couleur_cadre(wxCommandEvent& event) { wxColourDialog dialog(this); if (dialog.ShowModal()==wxID_OK) { wxColourData retData=dialog.GetColourData(); wxColour col=retData.GetColour(); button_couleur_cadre->SetBackgroundColour(col); button_couleur_cadre->SetForegroundColour(col); } }
false
false
false
false
false
0
may_direct (struct conf_node *other) { if (match_list (allow_direct, other->nodename)) return true; if (match_list (deny_direct, other->nodename)) return false; return true; }
false
false
false
false
false
0
stlOutOfBoundsError(const Token *tok, const std::string &num, const std::string &var, bool at) { if (at) reportError(tok, Severity::error, "stlOutOfBounds", "When " + num + "==" + var + ".size(), " + var + ".at(" + num + ") is out of bounds."); else reportError(tok, Severity::error, "stlOutOfBou...
false
false
false
false
false
0
timer_unregister(dns_timer_t *timer) { if (timer->t_prev != NULL) timer->t_prev->t_next = timer->t_next; if (timer->t_next != NULL) timer->t_next->t_prev = timer->t_prev; if (TimerHead == timer) TimerHead = timer->t_next; if (TimerTail == timer) TimerTail = timer->t_prev...
false
false
false
false
false
0
DestructorCheck() { if(!Stopped() && Started()) { Stop("Destructor"); } }
false
false
false
false
false
0
cgroup_get_controller(struct cgroup *cgroup, const char *name) { int i; struct cgroup_controller *cgc; if (!cgroup) return NULL; for (i = 0; i < cgroup->index; i++) { cgc = cgroup->controller[i]; if (!strcmp(cgc->name, name)) return cgc; } return NULL; }
false
false
false
false
false
0
init_twi_main() { freertos_peripheral_options_t async_driver_options = { NULL, /* This peripheral does not need a receive buffer, so this parameter is just set to NULL. */ 0, /* There is no Rx buffer, so the rx buffer size is not u...
false
false
false
false
false
0
eina_str_tolower(char **str) { char *p; if ((!str) || (!(*str))) return; for (p = *str; (*p); p++) *p = tolower((unsigned char )(*p)); }
false
false
false
false
false
0
validate(QString & qtext, int & dummy) const { if (qtext == autotext_) return QValidator::Acceptable; return LengthValidator::validate(qtext, dummy); }
false
false
false
false
false
0
fm_folder_view_select_file_paths(FmFolderView* fv, FmPathList* paths) { GList* l; FmFolderViewInterface* iface; g_return_if_fail(FM_IS_FOLDER_VIEW(fv)); iface = FM_FOLDER_VIEW_GET_IFACE(fv); for(l = fm_path_list_peek_head_link(paths);l; l=l->next) { FmPath* path = FM_PATH(l->data); ...
false
false
false
false
false
0
AcpiNsExternalizeName ( UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName) { UINT32 NamesIndex = 0; UINT32 NumSegments = 0; UINT32 ...
false
false
false
false
false
0
mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev, unsigned long start, unsigned long end, unsigned long newflags) { struct mm_struct *mm = vma->vm_mm; unsigned long oldflags = vma->vm_flags; long nrpages = (end - start) >> PAGE_SHIFT; unsigned long charged = 0; pgoff_t pgoff; int error; ...
false
false
false
false
false
0
blogc_fix_description(const char *paragraph) { if (paragraph == NULL) return NULL; sb_string_t *rv = sb_string_new(); bool last = false; bool newline = false; char *tmp = NULL; size_t start = 0; size_t current = 0; while (true) { switch (paragraph[current]) { ...
false
false
false
false
false
0
copy(void) const { GP<DjVuANT> ant=new DjVuANT(*this); // Now process the list of hyperlinks. ant->map_areas.empty(); for(GPosition pos=map_areas;pos;++pos) ant->map_areas.append(map_areas[pos]->get_copy()); return ant; }
false
false
false
false
false
0
addUnit(lyx::Length::UNIT unit) { QString const val = lyx::toqstr(lyx::stringFromUnit(unit)); int num = QComboBox::count(); for (int i = 0; i < num; i++) { if (QComboBox::itemData(i).toString() == val) { // already there, nothing to do return; } } insertItem(int(unit), lyx::qt_(lyx::unit_name_gui[int(uni...
false
false
false
false
false
0
resize(const QSize &sz) { if (cfgSize.isEmpty()) { QDialog::resize(sz); cfgSize=sz; } }
false
false
false
false
false
0
_GIO_translateURL(unichar_t *path, enum giofuncs gf) { struct transtab *test; if ( transtab==NULL ) return( NULL ); for ( test = transtab; test->old!=NULL; ++test ) { if ( (test->gf_mask&(1<<gf)) && u_strncmp(path,test->old,test->olen)==0 ) { unichar_t *res = galloc((u_strlen(path)-test->olen+u_strl...
false
false
false
false
false
0
ffghad(fitsfile *fptr, /* I - FITS file pointer */ long *headstart, /* O - byte offset to beginning of CHDU */ long *datastart, /* O - byte offset to beginning of next HDU */ long *dataend, /* O - byte offset to beginning of next HDU */ ...
false
false
false
false
false
0
hawki_distortion_correct_detector (cpl_image * image, cpl_image * dist_x, cpl_image * dist_y) { cpl_image * corr; cpl_vector * profile ; /* Test entries */ if (image == NULL) return NULL; if (dist_x == NULL) return NULL; if (dist_y == NULL) return NULL...
false
false
false
false
false
0
php_replace_in_subject(zval *regex, zval *replace, zval **subject, int *result_len, int limit, int is_callable_replace, int *replace_count TSRMLS_DC) { zval **regex_entry, **replace_entry = NULL, *replace_value, empty_replace; char *subject_value, *result; int subject_len; /* Make sure we'r...
false
false
false
false
false
0
feed_more(mpg123_handle *fr, const unsigned char *in, long count) { int ret = 0; if(VERBOSE3) debug("feed_more"); if((ret = bc_add(&fr->rdat.buffer, in, count)) != 0) { ret = READER_ERROR; if(NOQUIET) error1("Failed to add buffer, return: %i", ret); } else /* Not talking about filelen... that stays at 0. */ ...
false
false
false
false
false
0
expand_builtin_return_addr (enum built_in_function fndecl_code, int count) { int i; #ifdef INITIAL_FRAME_ADDRESS_RTX rtx tem = INITIAL_FRAME_ADDRESS_RTX; #else rtx tem; /* For a zero count with __builtin_return_address, we don't care what frame address we return, because target-specific definitions will ...
false
false
false
false
false
0
CopyText(int length, const char *text) { SelectionText selectedText; selectedText.Copy(std::string(text, length), pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, false, false); CopyToClipboard(selectedText); }
false
false
false
false
false
0
GetFirstTag(const std::string& name) { if( object_reference.find(name) == object_reference.end() ) return AddTag(name); if( object_reference[name].begin() == object_reference[name].end() ) return AddTag(name); return **object_reference[name].begin(); }
false
false
false
false
false
0
command_list_mounts(client_t *client, int response) { DEBUG0("List mounts request"); if (response == PLAINTEXT) { snprintf (client->refbuf->data, PER_CLIENT_REFBUF_SIZE, "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n"); client->refbuf->len = strlen (client->refbuf->data...
false
false
false
false
false
0
send_info_text(struct Client *source_p) { const char **text = infotext; while(*text) { sendto_one_numeric(source_p, RPL_INFO, form_str(RPL_INFO), *text++); } sendto_one_numeric(source_p, RPL_INFO, form_str(RPL_INFO), ""); }
false
false
false
false
false
0
chooseScalarFunctionAlias(Node *funcexpr, char *funcname, Alias *alias, int nfuncs) { char *pname; /* * If the expression is a simple function call, and the function has a * single OUT parameter that is named, use the parameter's name. */ if (funcexpr && IsA(funcexpr, FuncExpr)) { pname = get_fu...
false
false
false
false
false
0
mwifiex_interrupt_status(struct mwifiex_adapter *adapter) { struct sdio_mmc_card *card = adapter->card; u8 sdio_ireg; unsigned long flags; if (mwifiex_read_data_sync(adapter, card->mp_regs, card->reg->max_mp_regs, REG_PORT | MWIFIEX_SDIO_BYTE_MODE_MASK, 0)) { mwifiex_dbg(adapter, ERROR, "read mp_re...
false
false
false
false
false
0
__pool_table_remove(struct pool *pool) { BUG_ON(!mutex_is_locked(&dm_thin_pool_table.mutex)); list_del(&pool->list); }
false
false
false
false
false
0
ra_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size, off_t offset) { ra_file_t *file = NULL; ra_local_t *local = NULL; ra_conf_t *conf = NULL; int op_errno = EINVAL; char expected_offset = 1; ...
false
false
false
true
false
1
slotReplaceText(const QString &text, int replacementIndex, int replacedLength, int matchedLength) { //kDebug() << "Replace: [" << text << "] ri:" << replacementIndex << " rl:" << replacedLength << " ml:" << matchedLength; QTextCursor tc = parent->textCursor(); tc.setPosition(replacementIndex); tc.movePo...
false
false
false
false
false
0
gee_linked_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GEqualFunc equal_func) { GeeLinkedList * self = NULL; GEqualFunc _tmp0_ = NULL; GEqualFunc _tmp2_ = NULL; self = (GeeLinkedList*) gee_abstract_list_construct (object_type, g_type, (GBoxedCopyFunc) g...
false
false
false
false
false
0
gnc_date_cell_commit (DateCell *cell) { PopBox *box = cell->cell.gui_private; char buff[DATE_BUF]; if (!cell) return; gnc_parse_date (&(box->date), cell->cell.value); qof_print_date_dmy_buff (buff, MAX_DATE_LENGTH, box->date.tm_mday, ...
false
false
false
false
false
0
parse_mode(uint32_t *mode, char *option_arg) { char *tok; char *arg = strdup(option_arg); if (!arg) return -1; for (tok = strtok(arg, ",|"); tok; tok = strtok(NULL, ",|")) { if (!strcmp(tok, "dstip")) *mode |= XT_HASHLIMIT_HASH_DIP; else if (!strcmp(tok, "srcip")) *mode |= XT_HASHLIMIT_HAS...
false
false
false
false
false
0
VBE_UseHealth(const struct director *vdi) { struct vdi_simple *vs; ASSERT_CLI(); if (strcmp(vdi->name, "simple")) return; CAST_OBJ_NOTNULL(vs, vdi->priv, VDI_SIMPLE_MAGIC); if (vs->vrt->probe == NULL) return; VBP_Use(vs->backend, vs->vrt->probe); }
false
false
true
true
false
1
network_host(PG_FUNCTION_ARGS) { inet *ip = PG_GETARG_INET_P(0); text *ret; int len; char *ptr; char tmp[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:255.255.255.255/128")]; /* force display of max bits, regardless of masklen... */ if (inet_net_ntop(ip_family(ip), ip_addr(ip), ip_maxbits(ip), tmp, s...
true
true
false
false
false
1
gnc_lot_set_account(GNCLot* lot, Account* account) { if (lot != NULL) { LotPrivate* priv; priv = GET_PRIVATE(lot); priv->account = account; } }
false
false
false
false
false
0
octstr_get_char(const Octstr *ostr, long pos) { seems_valid(ostr); if (pos >= ostr->len || pos < 0) return -1; return ostr->data[pos]; }
false
false
false
false
false
0
HDF5ListGroupObjects( HDF5GroupObjects *poRootGroup, int bSUBDATASET ) { char szTemp[8192]; char szDim[8192]; HDF5Dataset *poDS; poDS=this; if( poRootGroup->nbObjs >0 ) for( hsize_t i=0; i < poRootGroup->nbObjs; i++ ) { poDS->HDF5ListGroupObjects( poRootGroup->poHchild+i,...
false
false
false
false
false
0
OGRSQLiteGetSpatialiteVersionNumber() { int v = 0; #ifdef HAVE_SPATIALITE if( bSpatialiteLoaded ) { v = (int)(( atof( spatialite_version() ) + 0.001 ) * 10.0); } #endif return v; }
false
false
false
false
false
0
buildGeometry() { _faces_.clear(); QList<sMarching_Square> cubos; sMarching_Square cubo; cubos = ejecutar(); // printf("Cubos: %d\n",cubos.count()); foreach(cubo,cubos) { //Puede que ahora sea innecesario cambiar el tipo... // if(cubo.tipo > 127){ // cubo.tipo = 25...
false
false
false
false
false
0
nssov_escape(struct berval *src,struct berval *dst) { size_t pos=0; int i; /* go over all characters in source string */ for (i=0;i<src->bv_len;i++) { /* check if char will fit */ if (pos>=(dst->bv_len-4)) return -1; /* do escaping for some characters */ switch (src->bv_val[i]) { case '*': strc...
false
true
false
false
false
1
cson_output_bool( cson_value const * src, cson_data_dest_f f, void * state ) { if( !f ) return cson_rc.ArgError; else { char const v = cson_value_get_bool(src); return f(state, v ? "true" : "false", v ? 4 : 5); } }
false
false
false
false
false
0
get_types(list<pair<pIIR_Expression, pIIR_Root> > &acl_expr_list, const pIIR_Type type) { vector<pair<pIIR_Type, pIIR_Type> > result; pIIR_Type basic_type = type; // Loop through all acl elements. Note that for each element an // appropriate entry is generated on the result list. list<pair<pIIR_Expression,...
false
false
false
false
false
0
regop (buf_t *ibuf, buf_t *obuf, vars_t *vars) { loc_t *result; /* ibuf->ptr points at the % */ putword (" ", obuf, 2); result = declare_check (ibuf->ptr, vars); if (!result) { result = declare (ibuf->ptr, vars); putword ("IREGISTER ", obuf, strlen ("IREGISTER ")); } /* Skip the % for ...
false
false
false
false
false
0
fsnotify_remove_first_event(struct fsnotify_group *group) { struct fsnotify_event *event; BUG_ON(!mutex_is_locked(&group->notification_mutex)); pr_debug("%s: group=%p\n", __func__, group); event = list_first_entry(&group->notification_list, struct fsnotify_event, list); /* * We need to init list head for...
false
false
false
false
false
0
operator!() const { for (unsigned i=0; i<reg.size(); i++) if (reg[i]) return false; return true; }
false
false
false
false
false
0
titleLen() { ustring title = getFrame()->client()->windowTitle(); int tlen = title != null ? titleFont->textWidth(title) : 0; return tlen; }
false
false
false
true
false
1
sendSetGain (unsigned char transducerNumber, unsigned char gain) { ArRobotPacket sendPacket(HEADER1, HEADER2); sendPacket.setID (SET_GAIN); sendPacket.uByteToBuf (transducerNumber); sendPacket.uByteToBuf (gain); if (!mySender->sendPacket(&sendPacket)) { ArLog::log (ArLog...
false
false
false
false
false
0
movactor(void) #else static void movactor() #endif { ScrElem *scr; StepElem *step; ActElem *act = (ActElem *) &acts[cur.act-ACTMIN]; cur.loc = where(cur.act); if (cur.act == HERO) { parse(); fail = FALSE; /* fail only aborts one actor */ rules(); } else if (act->script != 0) { for (scr = ...
false
false
false
false
false
0
do_qc2_regstore(struct net_t *np, struct qcval_t *qcvalp, struct xstk_t *xsp) { int32 nd_itpop, nd_xpop; struct xstk_t *xsp2; /* know lhs always entire reg but rhs may need select out */ /* rhsbi field is low bit of section from lhs concatenate if needed */ if (qcvalp->qcrhsbi != -1) { push_xstk_(xsp2, np-...
false
false
false
false
false
0