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
excerpt_expand(Excerpt *e, const int len, TermVector *tv) { Offset *offsets = tv->offsets; int offset_cnt = tv->offset_cnt; bool did_expansion = true; int i; /* fill in skipped offsets */ for (i = 1; i < offset_cnt; i++) { if (offsets[i].start == 0) { offsets[i].start = offse...
false
false
false
false
false
0
record_value_for_reg (rtx reg, rtx insn, rtx value) { unsigned int regno = REGNO (reg); unsigned int endregno = END_REGNO (reg); unsigned int i; reg_stat_type *rsp; /* If VALUE contains REG and we have a previous value for REG, substitute the previous value. */ if (value && insn && reg_overlap_mentio...
false
false
false
false
false
0
do_async_test (SoupSession *session, SoupURI *uri, GAsyncReadyCallback callback, guint expected_status, SoupBuffer *expected_response, gboolean persistent, gboolean cancel) { SoupRequester *requester; SoupRequest *request; guint started_id; SoupSocket *socket = NULL; SoupMessage *msg; Requ...
false
false
false
false
false
0
ftt_cell_refine (FttCell * root, FttCellRefineFunc refine, gpointer refine_data, FttCellInitFunc init, gpointer init_data) { guint n; FttOct * oct; g_return_if_fail (root != NULL); g_return_if_fail (refine != NULL); if (FTT_CELL_IS_LEAF (root) && !(* refine) (root, refine_dat...
false
false
false
false
false
0
rsi_mac80211_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct rsi_hw *adapter = hw->priv; struct rsi_common *common = adapter->priv; int ret = -EOPNOTSUPP; mutex_lock(&common->mutex); switch (vif->type) { case NL80211_IFTYPE_STATION: if (!adapter->sc_nvifs) { ++adapter->s...
false
false
false
false
false
0
hash_rehash (Hash_table *table, size_t candidate) { Hash_table *new_table; struct hash_entry *bucket; struct hash_entry *cursor; struct hash_entry *next; new_table = hash_initialize (candidate, table->tuning, table->hasher, table->comparator, table->data_freer); if (new_table == NULL) return ...
false
false
false
false
false
0
image_osd_icons_reset_time(OverlayStateData *osd) { gint i; for (i = 0; i < IMAGE_OSD_COUNT; i++) { if (osd_icons[i].reset) { osd->icon_time[i] = 0; } } }
false
false
false
false
false
0
load_commit_cb(WebKitWebView* page, WebKitWebFrame* frame, gpointer data) { const gchar* uri = webkit_web_frame_get_uri(frame); if (uri) gtk_entry_set_text(GTK_ENTRY (browser->uri_entry), uri); }
false
false
false
false
false
0
createEnumeration(const char* country) { return new TZEnumeration(country); }
false
false
false
false
false
0
bitstream_put2(bitstream_state_t *s, uint8_t **c, unsigned int value, int bits) { value &= ((1 << bits) - 1); if (s->residue + bits <= 32) { s->bitstream = (s->bitstream << bits) | value; s->residue += bits; } while (s->residue >= 8) { s->residue -= 8; *(*c)++ = (...
false
false
false
false
false
0
SetTransferStatus(const CTransferStatus* pStatus) { if (!pStatus) { if (m_statusTimer.IsRunning()) m_statusTimer.Stop(); return; } wxTimeSpan elapsed = wxDateTime::Now().Subtract(pStatus->started); int elapsedSeconds = elapsed.GetSeconds().GetLo(); // Assume GetHi is always 0 wxString text; if (elapsed...
false
false
false
false
false
0
FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln) { XLogRecPtr recptr; ErrorContextCallback errcontext; /* * Acquire the buffer's io_in_progress lock. If StartBufferIO returns * false, then someone else flushed the buffer before we could, so we need * not do anything. */ if (!StartBufferIO(buf, fal...
false
false
false
false
false
0
clutter_x11_texture_pixmap_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { ClutterX11TexturePixmap *texture = CLUTTER_X11_TEXTURE_PIXMAP (o...
false
false
false
false
false
0
copy_rec(const Py_ssize_t *shape, Py_ssize_t ndim, Py_ssize_t itemsize, char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, char *sptr, const Py_ssize_t *sstrides, const Py_ssize_t *ssuboffsets, char *mem) { Py_ssize_t i; assert(ndim >= 1); if (ndim == 1) { ...
false
false
false
false
false
0
IsExecutionTerminating(Isolate* isolate) { i::Isolate* i_isolate = isolate != NULL ? reinterpret_cast<i::Isolate*>(isolate) : i::Isolate::Current(); return IsExecutionTerminatingCheck(i_isolate); }
false
false
false
false
false
0
find_env_config_value(FILE * env_file, const wchar_t * key, wchar_t * value) { int result = 0; /* meaning not found */ char buffer[MAXPATHLEN*2+1]; /* allow extra for key, '=', etc. */ fseek(env_file, 0, SEEK_SET); while (!feof(env_file)) { char * p = fgets(buffer, MAXPATHLEN*2, env_file); ...
true
true
false
false
false
1
dump_dmesg_legacy(int fd) { uint64_t log_buf, log_buf_offset; unsigned log_end, logged_chars, log_end_wrapped; int log_buf_len, to_wrap; char *buf; ssize_t ret; if (!log_buf_vaddr) { fprintf(stderr, "Missing the log_buf symbol\n"); exit(50); } if (!log_end_vaddr) { fprintf(stderr, "Missing the log_end sy...
false
false
false
false
false
0
libstrmake_string_pointer(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_) { ScmObj str_scm; ScmString* str; ScmObj index_scm; int index; ScmObj start_scm; int start; ScmObj end_scm; int end; ScmObj SCM_SUBRARGS[7]; int SCM_i; SCM_ENTER_SUBR("make-string-pointer"); if (SCM_ARGCNT >= 5 && !SCM_...
false
false
false
false
false
0
set_drawmode(Tcl_Interp * interp, int type, int id, Nv_data * data, int argc, char *argv[]) { int mode; /* Make sure this command is being used with a surface */ if (type != SURF) { Tcl_SetResult(interp, "Error: map object must be a surface in order to use set_drawmode", TCL_VOLATILE); ...
false
false
false
false
false
0
_appendRuleText(UnicodeString& result) const { switch (getType()) { case kNegativeNumberRule: result.append(gMinusX); break; case kImproperFractionRule: result.append(gXDotX); break; case kProperFractionRule: result.append(gZeroDotX); break; case kMasterRule: result.append(gXDotZero); break; def...
false
false
false
false
false
0
main(int argc, char **argv) { SELA *sela; static char mainName[] = "dwalineargen"; if (argc != 1) return ERROR_INT(" Syntax: dwalineargen", mainName, 1); /* Generate the linear sel dwa code */ sela = selaAddDwaLinear(NULL); if (fmorphautogen(sela, 3, "dwalinear")) ...
false
false
false
false
false
0
getAliases()const { if(!hostent_p) errorExit("Can't use Dns::getAliases()"); vector<string> h_aliases; for(char** s=hostent_p->h_aliases;*s!=nullptr;++s){ h_aliases.push_back(*s); } return h_aliases; }
false
false
false
true
false
1
is_equal(const ExecutionPath *e) const { const Nullpointer *c = static_cast<const Nullpointer *>(e); return (varname == c->varname && null == c->null); }
false
false
false
false
false
0
json_object_has_member (JsonObject *object, const gchar *member_name) { g_return_val_if_fail (object != NULL, FALSE); g_return_val_if_fail (member_name != NULL, FALSE); return (g_hash_table_lookup (object->members, member_name) != NULL); }
false
false
false
false
false
0
put_daio_rsc(struct daio_mgr *mgr, struct daio *daio) { unsigned long flags; mgr->daio_disable(mgr, daio); mgr->commit_write(mgr); spin_lock_irqsave(&mgr->mgr_lock, flags); daio_mgr_put_rsc(&mgr->mgr, daio->type); spin_unlock_irqrestore(&mgr->mgr_lock, flags); if (daio->type <= DAIO_OUT_MAX) { dao_rsc_unini...
false
false
false
false
false
0
mxc4005_gpio_probe(struct i2c_client *client, struct mxc4005_data *data) { struct device *dev; struct gpio_desc *gpio; int ret; if (!client) return -EINVAL; dev = &client->dev; gpio = devm_gpiod_get_index(dev, "mxc4005_int", 0, GPIOD_IN); if (IS_ERR(gpio)) { dev_err(dev, "failed to get acpi gpio ...
false
false
false
false
false
0
scg_set_top_left (SheetControl *sc, int col, int row) { SheetControlGUI *scg = (SheetControlGUI *)sc; g_return_if_fail (IS_SHEET_CONTROL_GUI (scg)); if (!scg->pane[0]) return; /* We could be faster if necessary */ scg_set_left_col (scg, col); scg_set_top_row (scg, row); }
false
false
false
false
false
0
updateIM(const Label& lbl, IntersectionMatrix& im) { im.setAtLeastIfValid(lbl.getLocation(0,Position::ON), lbl.getLocation(1,Position::ON), 1); if (lbl.isArea()) { im.setAtLeastIfValid(lbl.getLocation(0,Position::LEFT), lbl.getLocation(1,Positi...
false
false
false
false
false
0
check_verbosity(VOID *data) { UINTN *val = (UINTN *)data; if (*val > 5) { config_error(L"Verbosity level must be in [0-5] and not %d", *val); return -1; } return 0; }
false
false
false
false
false
0
mt2131_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2131_config *cfg, u16 if1) { struct mt2131_priv *priv = NULL; u8 id = 0; dprintk(1, "%s()\n", __func__); priv = kzalloc(sizeof(struct mt2131_priv), GFP_KERNEL); if (priv == NULL) return NULL; priv->cfg = cfg; priv->i2c ...
false
false
false
false
false
0
addPendingMeshElements() { int index = 0; while (true) { BodyElement* be = getBodyElement(index++); if (be==NULL) break; be->addAllPendingMeshElements(); be->createExtraVertices(); } markActiveObjects(); updateModelStatistics(); }
false
false
false
false
false
0
xmlParseEndTag1(xmlParserCtxtPtr ctxt, int line) { const xmlChar *name; GROW; if ((RAW != '<') || (NXT(1) != '/')) { xmlFatalErrMsg(ctxt, XML_ERR_LTSLASH_REQUIRED, "xmlParseEndTag: '</' not found\n"); return; } SKIP(2); name = xmlParseNameAndCompare(ctxt,...
false
false
false
false
false
0
ajTrnNew(const AjPStr trnFileName) { AjPFile trnFile = NULL; AjPTrn pthis; ajint i; ajint j; ajint k; /* open the translation table file */ /* if the file is not specified, use the standard table file */ if(!ajStrGetLen(trnFileName)) trnFileName = ajStrNewC(TGCFILE); trnFile = a...
false
false
false
false
false
0
layout_manager_real_get_animation_progress (ClutterLayoutManager *manager) { ClutterAlpha *alpha; alpha = g_object_get_qdata (G_OBJECT (manager), quark_layout_alpha); if (alpha == NULL) return 1.0; return clutter_alpha_get_alpha (alpha); }
false
false
false
false
false
0
heapgetpage(HeapScanDesc scan, BlockNumber page) { Buffer buffer; Snapshot snapshot; Page dp; int lines; int ntup; OffsetNumber lineoff; ItemId lpp; Assert(page < scan->rs_nblocks); /* release previous scan buffer, if any */ if (BufferIsValid(scan->rs_cbuf)) { ReleaseBuffer(scan->rs_cbuf); scan-...
false
false
false
false
false
0
elm_ctxpopup_direction_priority_set(Evas_Object *obj, Elm_Ctxpopup_Direction first, Elm_Ctxpopup_Direction second, Elm_Ctxpopup_Direction third, Elm_Ctxpopup_Direction fourth) ...
false
false
false
false
false
0
report_config_categ_budget_toggled ( GtkCellRendererToggle *radio_renderer, gchar *path_str, GtkTreeStore *store ) { GtkTreePath *path; GtkTreeIter iter; GtkTreeIter iter_children; gboolean toggle_value; g_return_val_if_fail (path_str != NULL, FALSE); g_return_val_if_fail ...
false
false
false
false
false
0
put_bitfield(uae_u32 dst, uae_u32 bdata[2], uae_u32 val, uae_s32 offset, int width) { offset = (offset & 7) + width; switch ((offset + 7) >> 3) { case 1: put_byte(dst, bdata[0] | (val << (8 - offset))); break; case 2: put_word(dst, bdata[0] | (val << (16 - offset))); break; case 3: put_word(dst, bdata[0]...
false
false
false
false
false
0
tpg_fill_params_extras(const struct tpg_data *tpg, unsigned p, struct tpg_draw_params *params) { unsigned left_pillar_width = 0; unsigned right_pillar_start = params->img_width; params->wss_width = tpg->crop.left < tpg->src_width / 2 ? tpg->src_width / 2 - tpg->crop.left : 0; if (params->wss_width ...
false
false
false
false
false
0
dump_chassis(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item) { if (hardware->dmi.chassis.filled == false) { CREATE_NEW_OBJECT; add_s("dmi.warning","no chassis structure found"); FLUSH_OBJECT; return; } CREATE_NEW_OBJECT; add_s("dmi.item","bios"); add_hs(dmi.chassis.manufacturer); add_...
false
false
false
false
false
0
unapply_method(id,inst_num) element_id id; int inst_num; /* index in method instance list */ { struct element *e_ptr; int i; int type = id_type(id); int meth_offset = EXTRAS(type)[web.meth_attr[type]].offset; int *methlist = (int*)((char*)elptr(id) + meth_offset); if ( valid_id(id) ) /* individual element *...
false
false
false
false
false
0
omfs_scan_list(struct inode *dir, u64 block, const char *name, int namelen, u64 *prev_block) { struct buffer_head *bh; struct omfs_inode *oi; int err = -ENOENT; *prev_block = ~0; while (block != ~0) { bh = omfs_bread(dir->i_sb, block); if (!bh) { err = -EIO; goto err; } oi = (struct omfs_in...
false
false
false
false
false
0
AaffWriteSegmentGID (t_pAaff pAaff) { unsigned char GID[AFF_GID_LENGTH]; int i; for (i=0; i<AFF_GID_LENGTH; i++) GID[i] = (unsigned char) random(); CHK (AaffWriteSegment (pAaff, AFF_SEGNAME_GID, 0, GID, AFF_GID_LENGTH)) return NO_ERROR; }
false
false
false
false
false
0
_pan_item_add(Evas_Object *obj, Evry_Item *item) { Smart_Data *sd = evas_object_smart_data_get(obj); Item *it; it = E_NEW(Item, 1); if (!it) return NULL; sd->items = eina_list_append(sd->items, it); it->obj = obj; it->item = item; it->changed = EINA_TRUE; evry_item_ref(item); sd->place...
false
false
false
false
false
0
gnac_profiles_mgr_on_remove(GtkWidget *widget, gpointer data) { GList *selected = gnac_profiles_mgr_get_selected_rows(); if (!selected) return; GtkTreeRowReference *reference = (GtkTreeRowReference *) selected->data; AudioProfileGeneric *profile; gnac_profiles_mgr_get(reference...
false
false
false
false
true
1
setvarname(v,name) vari *v; varname name; { if (strcmp(v->name,name)==0) return; deletename(name); strcpy(v->name,name); }
false
false
false
false
false
0
OGRGeoJSONReadRawPoint( json_object* poObj, OGRPoint& point ) { CPLAssert( NULL != poObj ); if( json_type_array == json_object_get_type( poObj ) ) { const int nSize = json_object_array_length( poObj ); int iType = 0; if( nSize != GeoJSONObject::eMinCoordinateDimension ...
false
false
false
false
false
0
gsf_output_gzip_write (GsfOutput *output, size_t num_bytes, guint8 const *data) { GsfOutputGZip *gzip = GSF_OUTPUT_GZIP (output); g_return_val_if_fail (data, FALSE); gzip->stream.next_in = (unsigned char *) data; gzip->stream.avail_in = num_bytes; while (gzip->stream.avail_in > 0) { int zret; if (...
false
false
false
false
false
0
_gda_postgres_type_oid_to_gda (GdaConnection *cnc, GdaPostgresReuseable *rdata, unsigned int postgres_oid) { GdaPostgresTypeOid *type; guint id; id = postgres_oid; _gda_postgres_compute_types (cnc, rdata); type = g_hash_table_lookup (rdata->types_oid_hash, &id); if (type) return type->type; else return G_TY...
false
false
false
false
false
0
pack_scanline_lt8( const gx_color_index * srcp, byte * destp, int dest_offset, int width, int depth ) { byte buff = 0; int i = 0, p_per_byte = 8 / depth; /* exit early if...
false
false
false
false
false
0
AddInputHistory(int Id, const char *String) { /*FOLD00*/ char *s = NULL; // get rid of a "might not be initialised" warning int i; // First check if it is already in list for (i = 0; i < inputHistory.Count; i++) { if (inputHistory.Id[i] == Id && strcmp(String, inputHistory.Line[i]) == 0) { ...
false
false
false
false
true
1
scif_rma_ep_init(struct scif_endpt *ep) { struct scif_endpt_rma_info *rma = &ep->rma_info; mutex_init(&rma->rma_lock); init_iova_domain(&rma->iovad, PAGE_SIZE, SCIF_IOVA_START_PFN, SCIF_DMA_64BIT_PFN); spin_lock_init(&rma->tc_lock); mutex_init(&rma->mmn_lock); INIT_LIST_HEAD(&rma->reg_list); INIT_LIST_HEAD(...
false
false
false
false
false
0
gf_odf_dump_exp_text(GF_ExpandedTextual *etd, FILE *trace, u32 indent, Bool XMTDump) { GF_ETD_ItemText *it1, *it2; u32 i, count; StartDescDump(trace, "ExpandedTextualDescriptor", indent, XMTDump); indent++; DumpInt(trace, "languageCode", etd->langCode, indent, XMTDump); DumpBool(trace, "isUTF8", etd->isUTF8, ind...
false
false
false
false
false
0
ucs2cmp(ucs2 const *s1, ucs2 const *s2) { uintptr_t retval = (s1 - s2); if (s1 && s2) while ((retval = (*s1 - *s2)) && (*s1++) && (*s2++)) ; return (int)retval; }
false
false
false
false
false
0
__devcgroup_inode_permission(struct inode *inode, int mask) { short type, access = 0; if (S_ISBLK(inode->i_mode)) type = DEV_BLOCK; if (S_ISCHR(inode->i_mode)) type = DEV_CHAR; if (mask & MAY_WRITE) access |= ACC_WRITE; if (mask & MAY_READ) access |= ACC_READ; return __devcgroup_check_permission(type, i...
false
false
false
false
true
1
cbf_get_realarray (cbf_handle handle, int *id, void *value, size_t elsize, size_t nelem, size_t *nelem_read) { int realarray; const char *byteorder; s...
false
false
false
false
false
0
GL_ScreenShot_f (void) { if (strcmp(gl_screenshot_type->string, "jpeg") == 0) GL_ScreenShot_JPEG(); else if (strcmp(gl_screenshot_type->string, "tga") == 0) GL_ScreenShot_TGA(); else { Com_Printf("Invalid screenshot type %s; resetting to jpeg.\n", gl_screenshot_type->string); Cvar_Set("gl_screenshot_...
false
false
false
false
false
0
create_expanded_array_opt( Array_table *expanded_array, Block *dosum_block, Quadruple **exp_arr_sub_qr_pp, Dosum_info *dosum_info, List *dim_info_list, Block *most_inner_loop ) { Do...
false
false
false
false
false
0
rs_classify_alt(rstype_t *beg, rstype_t *end, int64_t *ac) { rsbucket_t *k, b[8], *be = b + 8; for (k = b; k != be; ++k) k->b = beg + ac[k - b]; for (k = b; k != be - 1; ++k) k->e = k[1].b; k->e = end; for (k = b; k != be;) { if (k->b != k->e) { rsbucket_t *l; if ((l = b + ((*k->b).v&7)) != k) { rstype...
false
false
false
false
false
0
Update(uint32 diff) { BattleGround::Update(diff); if (GetStatus() != STATUS_IN_PROGRESS) { return; } // add points from mine owning, and look if the neutral team can reclaim the mine for (uint8 mine = 0; mine < BG_AV_MAX_MINES; ++mine) { if (m_Mine_Owner[mine] != BG_AV_TEAM_NEUTRAL...
false
false
false
false
false
0
at86rf230_async_state_assert(void *context) { struct at86rf230_state_change *ctx = context; struct at86rf230_local *lp = ctx->lp; const u8 *buf = ctx->buf; const u8 trx_state = buf[1] & TRX_STATE_MASK; /* Assert state change */ if (trx_state != ctx->to_state) { /* Special handling if transceiver state is in ...
false
false
false
false
false
0
mail_label_manager_dispose (GObject *object) { EMailLabelManagerPrivate *priv; priv = E_MAIL_LABEL_MANAGER_GET_PRIVATE (object); if (priv->tree_view != NULL) { g_object_unref (priv->tree_view); priv->tree_view = NULL; } if (priv->add_button != NULL) { g_object_unref (priv->add_button); priv->add_button ...
false
false
false
false
false
0
gg_image_strip_read_from_ascii_grid (gGraphStripImagePtr img, int *progress) { /* decoding an ASCII-GRID [by strip] */ struct grid_codec_data *grid_codec = (struct grid_codec_data *) (img->codec_data); FILE *in = img->file_handle; if (grid_codec->grid_type == GRID_ASCII) { int ret = read_from_asc...
false
false
false
false
false
0
da9030_battery_probe(struct platform_device *pdev) { struct da9030_charger *charger; struct power_supply_config psy_cfg = {}; struct da9030_battery_info *pdata = pdev->dev.platform_data; int ret; if (pdata == NULL) return -EINVAL; if (pdata->charge_milliamp >= 1500 || pdata->charge_millivolt < 4000 || ...
false
false
false
false
false
0
ahc_send_async(struct ahc_softc *ahc, char channel, u_int target, u_int lun, ac_code code) { switch (code) { case AC_TRANSFER_NEG: { struct scsi_target *starget; struct ahc_linux_target *targ; struct ahc_initiator_tinfo *tinfo; struct ahc_tmode_tstate *tstate; int target_offset; unsigned int targ...
false
false
false
false
false
0
esas2r_get_outbound_responses(struct esas2r_adapter *a) { struct atto_vda_ob_rsp *rsp; u32 rspput_ptr; u32 rspget_ptr; struct esas2r_request *rq; u32 handle; unsigned long flags; LIST_HEAD(comp_list); esas2r_trace_enter(); spin_lock_irqsave(&a->queue_lock, flags); /* Get the outbound limit and pointers */...
false
false
false
false
false
0
hide() { if( KWindowSystem::compositingActive() ) { m_fadeTimeLine->setDirection( QTimeLine::Backward ); m_fadeTimeLine->start(); } else { QWidget::hide(); } }
false
false
false
false
false
0
hhtrcols(M,i0,j0,hh,beta) MAT *M; u_int i0, j0; VEC *hh; double beta; { /* Real ip, scale; */ int i /*, k */; static VEC *w = VNULL; if ( M==(MAT *)NULL || hh==(VEC *)NULL ) error(E_NULL,"hhtrcols"); if ( M->m != hh->dim ) error(E_SIZES,"hhtrcols"); if ( i0 > M->m || j0 > M->n ) error(E_BOUNDS,"hhtrcols");...
false
false
false
true
false
1
function_needs_eh_personality (struct function *fn) { enum eh_personality_kind kind = eh_personality_none; eh_region i; FOR_ALL_EH_REGION_FN (i, fn) { switch (i->type) { case ERT_CLEANUP: /* Can do with any personality including the generic C one. */ kind = eh_personality_any; break; case...
false
false
false
false
false
0
mmc_blk_ioctl_multi_cmd(struct block_device *bdev, struct mmc_ioc_multi_cmd __user *user) { struct mmc_blk_ioc_data **idata = NULL; struct mmc_ioc_cmd __user *cmds = user->cmds; struct mmc_card *card; struct mmc_blk_data *md; int i, err = 0, ioc_err = 0; __u64 num_of_cmds; /* * The caller must have CAP...
false
false
false
false
false
0
RequestData( vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) { vtkInformation* info = outputVector->GetInformationObject(0); vtkMultiBlockDataSet *output = vtkMultiBlockDataSet::SafeDownCast( info->Get(vtkDataObject::DATA_OBJECT())); if (!outp...
false
false
false
false
false
0
THX_ck_entersub_multi_sum(pTHX_ OP *entersubop, GV *namegv, SV *ckobj) { OP *sumop = NULL; OP *pushop = cUNOPx(entersubop)->op_first; PERL_UNUSED_ARG(namegv); PERL_UNUSED_ARG(ckobj); if (!pushop->op_sibling) pushop = cUNOPx(pushop)->op_first; while (1) { OP *aop = pushop->op_sibling; if (!aop...
false
false
false
false
false
0
delete_std_comment(char *cp) { char *eoc; /* end of comment */ if (!(eoc = strstr(cp, "*/"))) /* can't find it ? */ error("%s: %d: unterminated std-comment in #define", filestack[filesp].n, filestack[filesp].l); else ...
false
false
false
false
false
0
start(bool clear, const agg::rgba &bk, int width, int height) { if (!mFrameCount && !mQuiet) cout << endl << "Rendering..." << endl; aggCanvas::start(clear, bk, width, height); }
false
false
false
false
false
0
get_stream_idx(int *d){ if( d[0] >= '0' && d[0] <= '9' && d[1] >= '0' && d[1] <= '9'){ return (d[0] - '0') * 10 + (d[1] - '0'); }else{ return 100; //invalid stream ID } }
false
false
false
false
false
0
plpgsql_exec_error_callback(void *arg) { PLpgSQL_execstate *estate = (PLpgSQL_execstate *) arg; /* safety check, shouldn't happen */ if (estate->err_func == NULL) return; /* if we are doing RAISE, don't report its location */ if (estate->err_text == raise_skip_msg) return; if (estate->err_text != NULL) { ...
false
false
false
false
false
0
IsLimitedToAnotherMapOrZone(uint32 cur_mapId, uint32 cur_zoneId) const { ItemPrototype const* proto = GetProto(); return proto && ((proto->Map && proto->Map != cur_mapId) || (proto->Area && proto->Area != cur_zoneId)); }
false
false
false
false
false
0
cl_hash(count_int hashsize) /* reset code table */ { count_int *htab_p = htab+hashsize; long i, m1 = -1; i = hashsize - 16; do { /* might use Sys V memset(3) here */ *(htab_p-16) = m1; *(htab_p-15) = m1; *(htab_p-14) = m1; *(htab_p-13) = m1; *(htab_p-12) ...
false
false
false
false
false
0
Dialog_Rescue_Data() { this ->set_title( _("Search disk for file systems") ); this ->add_button( Gtk::Stock::CLOSE, Gtk::RESPONSE_CLOSE ); }
false
false
false
false
false
0
setMisc(FontState newfont, FontState org) { if (newfont == FONT_TOGGLE) { if (org == FONT_ON) return FONT_OFF; else if (org == FONT_OFF) return FONT_ON; else { LYXERR0("Font::setMisc: Need state" " FONT_ON or FONT_OFF to toggle. Setting to FONT_ON"); return FONT_ON; } } else if (newfont == FO...
false
false
false
false
false
0
ks8851_rdfifo(struct ks8851_net *ks, u8 *buff, unsigned len) { struct spi_transfer *xfer = ks->spi_xfer2; struct spi_message *msg = &ks->spi_msg2; u8 txb[1]; int ret; netif_dbg(ks, rx_status, ks->netdev, "%s: %d@%p\n", __func__, len, buff); /* set the operation we're issuing */ txb[0] = KS_SPIOP_RXFIFO; ...
false
false
false
false
false
0
lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, enum octeon_pcie_mps mps) { u32 val; u64 r64; /* Read config register for MPS */ pci_read_config_dword(oct->pci_dev, CN6XXX_PCIE_DEVCTL, &val); if (mps == PCIE_MPS_DEFAULT) { mps = ((val & (0x7 << 5)) >> 5); } else { val &= ~(0x7 << 5); /* Turn...
false
false
false
false
false
0
arm_attr_length_push_multi(rtx parallel_op, rtx first_op) { int i, regno, hi_reg; int num_saves = XVECLEN (parallel_op, 0); /* ARM mode. */ if (TARGET_ARM) return 4; /* Thumb1 mode. */ if (TARGET_THUMB1) return 2; /* Thumb2 mode. */ regno = REGNO (first_op); hi_reg = (REGNO_REG_CLASS (reg...
false
false
false
false
false
0
qhex_encode(const void *bin, size_t size) { const char HEXCHARTBL[16] = { '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f' }; char *pHexStr = (char *) malloc(sizeof(char) * ((size * 2) + 1)); if (pHexStr == NULL) return NULL; unsigned char *pSrc = (unsigned char *) b...
false
true
false
false
false
1
eb_convert_double_consonants_jis(char *word) { unsigned char *wp = (unsigned char *) word; unsigned char c1, c2; LOG(("in: eb_convert_double_consonants_jis(word=%s)", eb_quoted_string(word))); while (*wp != '\0' && *(wp + 1) != '\0') { c1 = *wp; c2 = *(wp + 1); if ((c1 == 0x24 || c1 == 0x25) && c...
false
false
false
false
false
0
mq_inspect_file_xattr (xlator_t *this, loc_t *loc, dict_t *dict, struct iatt buf) { int32_t ret = -1; uint64_t contri_int = 0, size = 0; int64_t *contri_ptr = NUL...
true
true
false
false
false
1
sortSubRenderStates() { if (mSubRenderStateSortValid == false) { std::sort(mSubRenderStateList.begin(), mSubRenderStateList.end(), CmpSubRenderStates()); mSubRenderStateSortValid = true; } }
false
false
false
false
false
0
_clutter_backend_gdk_events_init (ClutterBackend *backend) { ClutterBackendGdk *backend_gdk = CLUTTER_BACKEND_GDK (backend); CLUTTER_NOTE (EVENT, "initialising the event loop"); backend->device_manager = g_object_new (CLUTTER_TYPE_DEVICE_MANAGER_GDK, "backend", backend, "...
false
false
false
false
false
0
Push(vtkExecutiveCollection *execs, vtkInformation *info) { vtkExecutiveSet eSet; execs->InitTraversal(); for (vtkExecutive *e = execs->GetNextItem(); e != 0; e = execs->GetNextItem()) { eSet.insert(e); e->GetAlgorithm()->GetInformation()->Set(EXTRA_INFORMATION(), info); } if (AutoPropagatePus...
false
false
false
false
false
0
CDB___qam_mvptr_recover(dbenv, dbtp, lsnp, redo, info) DB_ENV *dbenv; DBT *dbtp; DB_LSN *lsnp; int redo; void *info; { __qam_mvptr_args *argp; DB *file_dbp; DBC *dbc; DB_LOCK lock; DB_MPOOLFILE *mpf; QMETA *meta; db_pgno_t metapg; int cmp_p, cmp_n, modified, ret; COMPQUIET(info, NULL); REC_PRINT(CDB___q...
false
false
false
false
false
0
register_solver(planner *ego, solver *s) { slvdesc *n; int kind; if (s) { /* add s to solver list */ X(solver_use)(s); A(ego->nslvdesc < INFEASIBLE_SLVNDX); if (ego->nslvdesc >= ego->slvdescsiz) sgrow(ego); n = ego->slvdescs + ego->nslvdesc; n->slv = s; n->reg_nam = ego->cur...
false
false
false
false
false
0
gf_isom_make_interleave(GF_ISOFile *file, Double TimeInSec) { GF_Err e; if (gf_isom_get_mode(file) < GF_ISOM_OPEN_EDIT) return GF_BAD_PARAM; e = gf_isom_set_storage_mode(file, GF_ISOM_STORE_INTERLEAVED); if (e) return e; return gf_isom_set_interleave_time(file, (u32) (TimeInSec * gf_isom_get_timescale(file))); }
false
false
false
false
false
0
cb_plot_types_init (char const *id, GogPlotType *type, type_list_closure *closure) { double x1, y1; GocItem *item; int col, row; double h = MINOR_PIXMAP_HEIGHT; double w = MINOR_PIXMAP_WIDTH; col = type->col; row = type->row; get_pos (col, row, &x1, &y1); item = goc_item_new (closure->group, gog_guru...
false
false
false
false
false
0
snd_tscm_create_midi_devices(struct snd_tscm *tscm) { struct snd_rawmidi *rmidi; struct snd_rawmidi_str *stream; struct snd_rawmidi_substream *subs; int err; err = snd_rawmidi_new(tscm->card, tscm->card->driver, 0, tscm->spec->midi_playback_ports, tscm->spec->midi_capture_ports, &rmidi)...
false
false
false
false
false
0
IsSocketType(char *s) { int i; for (i = 0; i < ATTR; i++) { if (strstr(s,ECGSOCKS[i].name)) { Debug("IsSocketType(%s=%s)\n",s,ECGSOCKS[i].name); return true; } } return false; }
false
false
false
false
false
0
ui_loop() { if( !val_bool(ui_is_main()) ) neko_error(); # if defined(NEKO_WINDOWS) { MSG msg; while( GetMessage(&msg,NULL,0,0) ) { TranslateMessage(&msg); DispatchMessage(&msg); if( msg.message == WM_QUIT ) break; } } # elif defined(NEKO_MAC) RunApplicationEventLoop(); # else gtk_main(); # end...
false
false
false
false
false
0
lf_gray_dither_24_4( cct_8_8_dither_table table, unsigned char *input, unsigned char *output, int pixel_count) { int x; int xx = 0; for(x = pixel_count >> 1; x; x--, xx += 2) { unsigned int t; unsigned int b; xx &= 3; # ifdef CHIMERA_LITTLE_ENDIAN b = RedIntensity[input[0]] + GreenIn...
false
false
false
false
false
0
__db_compare_both(db, akey, adata, bkey, bdata) DB *db; const DBT *akey; const DBT *adata; const DBT *bkey; const DBT *bdata; { BTREE *t; int cmp; t = (BTREE *)db->bt_internal; cmp = t->bt_compare(db, akey, bkey, NULL); if (cmp != 0) return cmp; if (!F_ISSET(db, DB_AM_DUPSORT)) return (0); if (adata...
false
false
false
false
false
0
locate_pointer_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data) { GsdLocatePointerData *data = (GsdLocatePointerData *) user_data; if (gtk_cairo_should_draw_window (cr, data->window)) locate_pointer_paint (data, cr, gtk_widget_is_composited ...
false
false
false
false
false
0
InitResultRelInfo(ResultRelInfo *resultRelInfo, Relation resultRelationDesc, Index resultRelationIndex, CmdType operation, int instrument_options) { /* * Check valid relkind ... parser and/or planner should have noticed this * already, but let's make sure. */ switch (resultRelationDesc->...
false
false
false
false
false
0