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
Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp) { PERL_ARGS_ASSERT_SV_PVN; if (SvPOK(sv)) { *lp = SvCUR(sv); return SvPVX(sv); } return sv_2pv(sv, lp); }
false
false
false
false
false
0
add_note(const String &s) { if (s.length()) { int extra = 1 + (s.back() == '\n' ? 0 : 1); if (_binary) { uint32_t marker = htonl((s.length() + extra) | 0x80000000U); ignore_result(fwrite(&marker, 4, 1, _f)); } fputc('#', _f); ignore_result(fwrite(s.data(), 1, s.length(), _f)); if (extra > 1) fp...
false
false
false
false
false
0
doRunChildTests( TestResult *controller ) { int childCount = getChildTestCount(); for ( int index =0; index < childCount; ++index ) { if ( controller->shouldStop() ) break; getChildTestAt( index )->run( controller ); } }
false
false
false
false
false
0
eprom_init(struct hfi1_devdata *dd) { int ret = 0; /* only the discrete chip has an EPROM, nothing to do */ if (dd->pcidev->device != PCI_DEVICE_ID_INTEL0) return 0; /* lock against other callers */ mutex_lock(&eprom_mutex); if (eprom_available) /* already initialized */ goto done_asic; /* * Lock agains...
false
false
false
false
false
0
real_map_pixbuf (NemoIconCanvasItem *icon_item) { EelCanvas *canvas; GdkPixbuf *temp_pixbuf, *old_pixbuf; GtkStyleContext *style; GdkRGBA color; temp_pixbuf = icon_item->details->pixbuf; canvas = EEL_CANVAS_ITEM(icon_item)->canvas; g_object_ref (temp_pixbuf); if (icon_item->details->is_prelit || icon_i...
false
false
false
false
false
0
read ( tnstream& stream ) { stream.readInt(); int size = stream.readInt(); states.resize( size ); for ( int i = 0; i < size; ++i ) states[i] = DiplomaticStates( stream.readInt() ); queuedStateChanges.clear(); size = stream.readInt(); for ( int i = 0; i< size; ++i ) { int p...
false
false
false
false
false
0
float8_accum(PG_FUNCTION_ARGS) { ArrayType *transarray = PG_GETARG_ARRAYTYPE_P(0); float8 newval = PG_GETARG_FLOAT8(1); float8 *transvalues; float8 N, sumX, sumX2; transvalues = check_float8_array(transarray, "float8_accum", 3); N = transvalues[0]; sumX = transvalues[1]; sumX2 = transvalues[2]; ...
false
false
false
false
false
0
gfm_client_connect_with_reconnection() { gfarm_error_t e; unsigned int sleep_interval = 10; /* 10 sec */ unsigned int sleep_max_interval = 640; /* about 10 min */ e = gfm_client_connect(gfarm_metadb_server_name, gfarm_metadb_server_port, &gfm_server, listen_addrname); while (e != GFARM_ERR_NO_ERROR) { /* s...
false
false
false
false
false
0
us_test_getopt_main( int argc, const char **argv ) { int r = 1; if ( us_testutil_start( 4096, 4096, argc, argv ) ) { #if US_ENABLE_LOGGING us_logger_printer_start( us_testutil_printer_stdout, us_testutil_printer_stderr ); #endif us_log_set_level( US_LOG_LEVEL_DEBUG ); us_log_info( "H...
false
false
false
false
false
0
exchange_validate(struct message *msg) { struct exchange *exchange = msg->exchange; int16_t *pc = exchange->exch_pc; while (*pc != EXCHANGE_SCRIPT_END && *pc != EXCHANGE_SCRIPT_SWITCH) { LOG_DBG((LOG_EXCHANGE, 90, "exchange_validate: checking for required %s", *pc >= ISAKMP_PAYLOAD_NONE ? const...
false
false
false
false
false
0
qof_query_printOutput (GList * output) { GList *lst; for (lst = output; lst; lst = lst->next) { GString *line = (GString *) lst->data; DEBUG (" %s", line->str); g_string_free (line, TRUE); line = NULL; } }
false
false
false
false
false
0
gfx_v7_0_rlc_resume(struct amdgpu_device *adev) { const struct rlc_firmware_header_v1_0 *hdr; const __le32 *fw_data; unsigned i, fw_size; u32 tmp; if (!adev->gfx.rlc_fw) return -EINVAL; hdr = (const struct rlc_firmware_header_v1_0 *)adev->gfx.rlc_fw->data; amdgpu_ucode_print_rlc_hdr(&hdr->header); adev->gfx...
false
false
false
false
false
0
wilc_netdev_init(struct wilc **wilc) { int i; perInterface_wlan_t *nic; struct net_device *ndev; sema_init(&close_exit_sync, 0); /*create the common structure*/ g_linux_wlan = kzalloc(sizeof(*g_linux_wlan), GFP_KERNEL); if (!g_linux_wlan) return -ENOMEM; *wilc = g_linux_wlan; register_inetaddr_notifier(&...
false
true
false
false
false
1
breaks_set_condition(const char* file, int line, const char* condition) { breakpoint* bp = NULL; enum dbs state = debug_get_state(); /* do not process async break manipulation on modules that do not support async interuppt */ if (DBS_RUNNING == state && !debug_supports_async_breaks()) return; /* lookup for b...
false
false
false
false
false
0
fluid_track_send_events(fluid_track_t *track, fluid_synth_t *synth, fluid_player_t *player, unsigned int ticks) { int status = FLUID_OK; fluid_midi_event_t *event; while (1) { event = track->cur; if (event == NULL) { return status; } ...
false
false
false
false
false
0
xmitframe_direct(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe) { int res; res = rtw_xmitframe_coalesce23a(padapter, pxmitframe->pkt, pxmitframe); if (res == _SUCCESS) rtw_dump_xframe(padapter, pxmitframe); return res; }
false
false
false
false
false
0
generateNames( void ) { register int i; register idList_t *object; register formula_t *predicate; for( predicate = predicates, i = 0; predicate != NULL; predicate = predicate->next, ++i ); _low_numberPredicates = i; _low_schemaName = (char**) calloc( numberSchema, sizeof( char* ) ); _low_objectName = (c...
false
false
false
false
false
0
Boundary_Row_print_gnuplot(Boundary_Row *boundary_row, gint colour){ register gint i; register Boundary_Interval *interval; for(i = 0; i < boundary_row->interval_list->len; i++){ interval = boundary_row->interval_list->pdata[i]; g_print("set arrow from ...
false
false
false
false
false
0
luf_adjustsize (void) /* This routine sets the proper working size in the basis. It also checks that the allocated capacity of the basis is sufficient for the current size of the constraint system and increases it if necessary. Parameters: none Returns: undefined */ { double upd_tol,piv_tol,zero_tol,max_gr...
false
false
false
false
false
0
dmap_getSO(CTX ctx, kmapptr_t* m, ksfp_t *ksfp, ksfp_t *rsfp) { knh_dmap_t *dmap = knh_map_dmap(m); kbytes_t key = S_tobytes(ksfp[0].s); kindex_t loc = dmap_index(dmap, 0, dmap->sorted, key); if(loc == -1) { loc = dmap_index(dmap, dmap->sorted, dmap->size, key); if(loc == -1) return 0; } KNH_SETv(ctx, rsfp[0]...
false
false
false
false
false
0
Create( wxWindow *parent, wxWindowID win_id, const wxPoint &pos, const wxSize &size, wxPlotAxis_Type WXUNUSED(flag), const wxString &name ) { m_redraw_type = wxPLOT_REDRAW_BLOCKER; // no paints until finished if (!wxWindow::Create...
false
false
false
false
false
0
print(STD_NAMESPACE ostream &out, const size_t flags, const int level, const char *pixelFileName, size_t *pixelCounter) { /* print pixel sequence start line */ if (flags & DCMTypes::PF_showTreeStr...
false
false
false
false
false
0
SpectrumSamplesSorted(const float *lambda, const float *vals, int n) { for (int i = 0; i < n-1; ++i) if (lambda[i] > lambda[i+1]) return false; return true; }
false
false
false
false
false
0
GPpolygon (Gwidget_t *widget, int gpn, Gpoint_t *gpp, Ggattr_t *ap) { PIXpoint_t pp; int i; if (gpn == 0) return 0; pp = pdrawtopix (widget, gpp[0]); setgattr (widget, ap); fprintf (FP, "DO %d %d moveto\n", (int) pp.x, (int) pp.y); for (i = 1; i < gpn; i++) { pp = pdrawtopi...
false
false
false
false
false
0
flx_decode_delta_flc (GstFlxDec * flxdec, guchar * data, guchar * dest) { gulong count, lines, start_l, opcode; guchar *start_p; g_return_val_if_fail (flxdec != NULL, FALSE); g_return_val_if_fail (flxdec->delta != NULL, FALSE); /* use last frame for delta */ memcpy (dest, GST_BUFFER_DATA (flxdec->delta), ...
false
false
false
false
false
0
is_compression_bomb(size_t size_in, size_t size_out) { if (size_in == 0 || size_out < CHECK_FOR_COMPRESSION_BOMB_AFTER) return 0; return (size_out / size_in > MAX_UNCOMPRESSION_FACTOR); }
false
false
false
false
false
0
unity_protocol_scope_service_proxy_open_channel_finish (UnityProtocolScopeService* self, GAsyncResult* _res_, GHashTable** out_hints, GError** error) { GDBusMessage *_reply_message; GVariant *_reply; GVariantIter _reply_iter; GHashTable* _vala_out_hints; GVariant* _tmp37_; GHashTable* _tmp38_; GVariantIter _tmp3...
false
false
false
false
false
0
flush(Buffer *b) { if(b->cdirty || b->cnc==0){ if(b->cnc == 0) delblock(b, b->cbi); else diskwrite(disk, &b->bl[b->cbi], b->c, b->cnc); b->cdirty = FALSE; } }
false
false
false
false
false
0
gv_file_load(ViewerFileOps *ops, int fd) { g_return_val_if_fail (ops!=NULL, "invalid ops parameter"); ops->file = fd; if (ops->s.st_size == 0) { // Must be one of those nice files that grow (/proc) gv_file_close (ops); return gv_file_init_growing_view (ops, ops->filename); ...
false
false
false
false
false
0
quad_01(const EL_INFO *el_info, const FILL_INFO *info) { const REAL *Lb0; REAL *psi, (*grd_phi)[N_LAMBDA]; int iq, i, j; const QUAD_FAST *psi_fast, *phi_fast; const QUAD *quad; int n_lambda = el_info->mesh->dim + 1; REAL **mat = info->element_...
false
false
false
false
false
0
CompilationReport(char *fname) { if (THIS_AGENT_TYPE != cf_common) { return; } #if defined(HAVE_NOVA) Nova_OpenCompilationReportFiles(fname); #else OpenCompilationReportFiles(fname); #endif if ((FKNOW = fopen(NULLFILE,"w")) == NULL) { FatalError("Null-file failed"); } ShowPromises(BUNDLES,BODIES);...
false
false
false
false
true
1
i830_check_vertex_size(struct intel_context *intel, GLuint expected) { struct i830_context *i830 = i830_context(&intel->ctx); int vft0 = i830->state.Ctx[I830_CTXREG_VF]; int vft1 = i830->state.Ctx[I830_CTXREG_VF2]; int nrtex = (vft0 & VFT0_TEX_COUNT_MASK) >> VFT0_TEX_COUNT_SHIFT; int i, sz = 0; switc...
false
false
false
false
false
0
sort_actor_prop_func (gconstpointer a, gconstpointer b) { const ClutterAnimatorKey *pa = a; const ClutterAnimatorKey *pb = b; if (pa->object == pb->object) return pa->property_name - pb->property_name; return pa->object - pb->object; }
false
false
false
false
false
0
gistfindgroup(Relation r, GISTSTATE *giststate, GISTENTRY *valvec, GistSplitVector *spl, int attno) { int i; GISTENTRY entry; int len = 0; /* * attno key is always not null (see gistSplitByKey), so we may not check * for nulls */ gistentryinit(entry, spl->splitVector.spl_rdatum, r, NULL, (OffsetNumber) ...
false
false
false
false
false
0
outputRemaining(const giopStream* g) { CORBA::ULong total = g->outputFragmentSize(); if (!total) { CORBA::ULong avail = (CORBA::Long)orbParameters::giopMaxMsgSize - (CORBA::Long)currentOutputPtr(g); // Adjust avail to exactly the same value as calculated in outputFlush(). ...
false
false
false
false
false
0
stat(const ft_string & path, ft_stat & stat) { const char * str = path.c_str(); int err = 0; if (lstat(str, & stat) != 0) err = ff_log(FC_ERROR, errno, "failed to lstat() `%s'", str); return err; }
false
false
false
false
false
0
L59() {register object *base=vs_base; register object *sup=base+VM59; VC59 vs_check; {object V218; object V219; object V220; V218=(base[0]); V219=(base[1]); V220=(base[2]); vs_top=sup; goto TTL; TTL:; V221= make_cons((V220),(V219)); base[3]= sputprop((V218),((object)VV[141]),/* INLINE-ARGS */V221); vs_top=...
false
false
false
false
false
0
AnalyseWorkbook(VSILFILE* fpWorkbook) { oParser = OGRCreateExpatXMLParser(); XML_SetElementHandler(oParser, ::startElementWBCbk, NULL); XML_SetUserData(oParser, this); VSIFSeekL( fpWorkbook, 0, SEEK_SET ); bStopParsing = FALSE; nWithoutEventCounter = 0; nDataHandlerCounter = 0; char a...
false
false
false
false
false
0
_IO_str_underflow (fp) _IO_FILE *fp; { if (fp->_IO_write_ptr > fp->_IO_read_end) fp->_IO_read_end = fp->_IO_write_ptr; if ((fp->_flags & _IO_TIED_PUT_GET) && (fp->_flags & _IO_CURRENTLY_PUTTING)) { fp->_flags &= ~_IO_CURRENTLY_PUTTING; fp->_IO_read_ptr = fp->_IO_write_ptr; fp->_IO_wri...
false
false
false
false
false
0
hwrng_attr_current_show(struct device *dev, struct device_attribute *attr, char *buf) { ssize_t ret; struct hwrng *rng; rng = get_current_rng(); if (IS_ERR(rng)) return PTR_ERR(rng); ret = snprintf(buf, PAGE_SIZE, "%s\n", rng ? rng->name : "none"); put_rng(rng); return ret; }
false
false
false
false
false
0
freq_r3A_value(u16 frequency) { u16 value; if (frequency < 5091) value = 0x0040; else if (frequency < 5321) value = 0x0000; else if (frequency < 5806) value = 0x0080; else value = 0x0040; return value; }
false
false
false
false
false
0
swapn4b(void *dst, const void *src, size_t nn) { char *op = dst; const char *ip = src; /* unroll the following to reduce loop overhead * while(nn-- != 0) * { * op[0] = ip[3]; * op[1] = ip[2]; * op[2] = ip[1]; * op[3] = ip[0]; * op += 4; * ip += 4; * } */ while(nn > 3) { op[0] = ip[3]; op[1] = i...
false
false
false
false
false
0
printsys (const char *msg) { int c, pri, flags; char *lp, *q, line[MAXLINE + 1]; const char *p; strcpy (line, "vmunix: "); lp = line + strlen (line); for (p = msg; *p != '\0';) { flags = SYNC_FILE | ADDDATE; /* Fsync after write. */ pri = DEFSPRI; if (*p == '<') { pri = 0; whi...
true
true
false
false
false
1
setUpProteinMatRadioButtons() { proteinWeightMat = new QButtonGroup; identity = new QRadioButton("Identity"); gonnetPAM80 = new QRadioButton("Gonnet PAM 80"); gonnetPAM120 = new QRadioButton("Gonnet PAM 120"); gonnetPAM250 = new QRadioButton("Gonnet PAM 250"); gonnetPAM350 = new QRadioButton("Go...
false
false
false
false
false
0
collapse() { int excludingFlags; QAction *action = qobject_cast<QAction *>( sender() ); if( action ) excludingFlags = action->data().toInt(); else excludingFlags = 0; for( int i = 0; i < m_matchedProxyModel->rowCount(); i++ ) { QModelIndex idx = m_matchedProxyModel->inde...
false
false
false
false
false
0
isoButtonReleasedCbk(GtkWidget* isoView, GdkEventButton* event, gpointer user_data) { if(!GBLisoPaneActive) /* no iso open */ return FALSE; if(event->type == GDK_BUTTON_RELEASE && event->button == 3) { showIsoContextMenu(isoView, event); } return FALSE; }
false
false
false
false
false
0
vector_max(double *v, unsigned n) { double return_value = v[0]; for (unsigned i = 1; i < n; i++) if (return_value < v[i]) return_value = v[i]; return return_value; }
false
false
false
false
false
0
start_element(void* context, const xmlChar* name, const xmlChar** p) { _xmlParserCtxt* the_context = static_cast<_xmlParserCtxt*>(context); SaxParser* parser = static_cast<SaxParser*>(the_context->_private); SaxParser::AttributeList ...
false
false
false
false
false
0
remove_stream(bgav_stream_t * stream_array, int index, int num) { /* Streams are sometimes also removed for other reasons */ bgav_stream_free(&stream_array[index]); if(index < num - 1) { memmove(&stream_array[index], &stream_array[index+1], sizeof(*stream_array) * (num - 1 - inde...
false
false
false
false
false
0
setzeroabc(long int f, long int bw, resonator_ptr rp) { double r; double arg; f = -f; //NOTE, changes made 30.09.2011 for Reece Dunn <msclrhd@googlemail.com> // fix a sound spike when f=0 /* First compute ordinary resonator coefficients */ /* Let r = exp(-pi bw t) */ arg = kt_globals.minus_pi_t * bw; r = e...
false
false
false
false
false
0
jcr_timeout_check(watchdog_t *self) { JCR *jcr; BSOCK *bs; time_t timer_start; Dmsg0(dbglvl, "Start JCR timeout checks\n"); /* Walk through all JCRs checking if any one is * blocked for more than specified max time. */ foreach_jcr(jcr) { Dmsg2(dbglvl, "jcr_timeout_check JobId=%u jcr=0x...
false
false
false
false
false
0
enable_time_prefix(bool enabled) { out(debug) << prefix(debug) << "dbg::enable_time_prefix(" << (enabled ? TRUE_STRING : FALSE_STRING) << ")\n"; time_prefix = enabled; }
false
false
false
false
false
0
rohm_bu21023_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct device *dev = &client->dev; struct rohm_ts_data *ts; struct input_dev *input; int error; if (!client->irq) { dev_err(dev, "IRQ is not assigned\n"); return -EINVAL; } if (!client->adapter->algo->master_xfer) { ...
false
false
false
false
false
0
delete_partition(struct gendisk *disk, int partno) { struct disk_part_tbl *ptbl = disk->part_tbl; struct hd_struct *part; if (partno >= ptbl->len) return; part = ptbl->part[partno]; if (!part) return; rcu_assign_pointer(ptbl->part[partno], NULL); rcu_assign_pointer(ptbl->last_lookup, NULL); kobject_put(p...
false
false
false
false
false
0
early_console_register(struct console *con, int keep_early) { if (con->index != -1) { printk(KERN_CRIT "ERROR: earlyprintk= %s already used\n", con->name); return; } early_console = con; if (keep_early) early_console->flags &= ~CON_BOOT; else early_console->flags |= CON_BOOT; register_console(ear...
false
false
false
false
false
0
handle_buffer(BufferData *buffer, const gchar *forced_enc) { GeanyEncodingIndex tmp_enc_idx; /* temporarily retrieve the encoding idx based on the BOM to suppress the following warning * if we have a BOM */ tmp_enc_idx = encodings_scan_unicode_bom(buffer->data, buffer->size, NULL); /* check whether the size of ...
false
false
false
false
false
0
ffado_ringbuffer_peek (ffado_ringbuffer_t * rb, char *dest, size_t cnt) { size_t free_cnt; size_t cnt2; size_t to_read; size_t n1, n2; size_t tmp_read_ptr; tmp_read_ptr = rb->read_ptr; if ((free_cnt = ffado_ringbuffer_read_space (rb)) == 0) { return 0; } to_read = cnt > free_cnt ? free_cnt : cn...
false
false
false
false
false
0
typelist(Word *p){ Word *w, *r; r = w = word_alloc(""); while (p && p->next) { /* handle int *x --> int */ if (p->string[0] && !ISCSYM(p->string[0])) break; /* handle int x[] --> int */ if (p->next->string[0] == '[') break; w->next = word_allo...
false
false
false
false
false
0
annMinMax( // compute min and max coordinates along dim ANNpointArray pa, // point array ANNidxArray pidx, // point indices int n, // number of points int d, // dimension to check ANNcoord &min, // minimum value (returned) ANNcoord &max) // maximum value (returned) { min = PA(0,...
false
false
false
false
false
0
make_texture (void) { guint32 *data = g_malloc (100 * 100 * 4); int x; int y; for (y = 0; y < 100; y ++) for (x = 0; x < 100; x++) { if (x < 50 && y < 50) data[y * 100 + x] = 0xff00ff00; else data[y * 100 + x] = 0xff00ffff; } return cogl_texture_new_from_da...
false
false
false
false
false
0
read_a_bit () { chop_input (); size_t count = inbuflen - inofs; if (count < 128) { inbuflen = (inbuflen + 128 + 127) & ~(size_t)127; inbuf = (char *) realloc (inbuf, inbuflen); count = inbuflen - inofs; } char *buf = inbuf + inofs; bool error = false; while (count) { if (...
false
false
false
false
false
0
OnExit(wxCommandEvent& event) { wxLogTrace(wxT("Function Start/End"), wxT("CTaskBarIcon::OnExit - Function Begin")); #ifndef __WXMAC__ if (wxGetApp().ConfirmExit()) #endif { wxCloseEvent eventClose; OnClose(eventClose); if (eventClose.GetSkipped()) event.Skip(); } wxLogTra...
false
false
false
false
false
0
cmd_whois(const char *data, SERVER_REC *server, WI_ITEM_REC *item) { CHAT_DCC_REC *dcc; g_return_if_fail(data != NULL); /* /WHOIS without target in DCC CHAT query? */ if (*data == '\0') { dcc = item_get_dcc(item); if (dcc != NULL) { signal_emit("command whois", 3, dcc->nick, server, ...
false
false
false
false
false
0
RecordPosixPost (char *name, int need_pre) { int need_immediate_local = RecordImmediatePosixLocalPost (name); int need_delayed_local_or_global = RecordDelayedPosixLocalorGlobalPost (name); /* no postop processing if no immediate or asynchronous processing... */ if (!(need_immediate_local || need_delaye...
false
false
false
false
false
0
digestISOFullBoxExtension ( LFA_FileRef file, std::string isoPath, XMP_Int64& remainingSize, XMP_Uns8& version, XMP_Uns32& flags ) { version = LFA_ReadUns8( file ); flags = 0; LFA_Read( file, &flags, 3, true ); // read only 3 byte! flags = flags >> 8; // (move to bit 0-23) remainingSize -= 4; tree->setKeyValu...
false
false
false
false
false
0
apply( QTextCharFormat *format ) const { if ( !mFontName.isEmpty() ) { if ( mStyleInformation ) { const FontFormatProperty property = mStyleInformation->fontProperty( mFontName ); property.apply( format ); } } if ( mFontWeight != -1 ) { QFont font = format->font(); font.setWeight( mFo...
false
false
false
false
false
0
add_submodule_odb(const char *path) { struct strbuf objects_directory = STRBUF_INIT; struct alternate_object_database *alt_odb; int ret = 0; strbuf_addf(&objects_directory, "%s/.git/objects/", path); if (!is_directory(objects_directory.buf)) { ret = -1; goto done; } /* avoid adding it twice */ for (alt_odb...
false
false
false
false
false
0
dissect_t125(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data _U_) { proto_item *item = NULL; proto_tree *tree = NULL; gint8 ber_class; gboolean pc; gint32 tag; top_tree = parent_tree; col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.125"); col_clear(pinfo->cinfo, COL_INFO); item = ...
false
false
false
false
false
0
handle_vc_property_changed(DBusConnection *conn, DBusMessage *msg, void *data) { struct voice_call *vc = data; const char *obj_path = dbus_message_get_path(msg); DBusMessageIter iter, sub; const char *property, *state; DBG("path %s", obj_path); dbus_message_iter_init(msg, &iter); if (dbus_message_iter_ge...
false
false
false
false
false
0
from_coo(unsigned row, unsigned col, const std::vector<unsigned>& i, const std::vector<unsigned>& j, const vec_basic& x) { unsigned nnz = x.size(); std::vector<unsigned> p_ = std::vector<unsigned>(row + 1, 0); std::vector<unsigned> j_ = std::vector<unsigned>(nnz); vec_basic x_ = vec_basic(nnz); ...
false
false
false
false
false
0
refresh(int verbose, const char **pathspec) { char *seen; int i, specs; for (specs = 0; pathspec[specs]; specs++) /* nothing */; seen = xcalloc(specs, 1); refresh_index(&the_index, verbose ? REFRESH_SAY_CHANGED : REFRESH_QUIET, pathspec, seen); for (i = 0; i < specs; i++) { if (!seen[i]) die("pat...
false
false
false
false
false
0
main(int argc, char *argv[]) { int fds[2]; /* the pair of socket descriptors */ int size; char *buf; int64_t count, i, delta; struct timeval start, stop; if (argc != 3) { printf ("usage: unix_thr <message-size> <message-count>\n"); exit(1); } size = atoi(argv[1]); count = atol(argv[2]); ...
false
false
false
false
false
0
CERT_FindSMimeProfile(CERTCertificate *cert) { PK11SlotInfo *slot = NULL; NSSCertificate *c; NSSCryptoContext *cc; SECItem *rvItem = NULL; if (!cert || !cert->emailAddr || !cert->emailAddr[0]) { PORT_SetError(SEC_ERROR_INVALID_ARGS); return NULL; } c = STAN_GetNSSCertificate(cert); if...
false
false
false
false
false
0
iwl_dbgfs_protection_mode_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct iwl_priv *priv = (struct iwl_priv *)file->private_data; int pos = 0; char buf[40]; const size_t bufsz = sizeof(buf); if (priv->cfg->ht_params) pos += scnprintf(buf + pos, bufsz - pos, "us...
true
true
false
false
false
1
cgraph_edge_brings_all_scalars_for_node (struct cgraph_edge *cs, struct cgraph_node *node) { struct ipa_node_params *dest_info = IPA_NODE_REF (node); int count = ipa_get_param_count (dest_info); struct ipa_node_params *caller_info; struct ipa_edge_args *args; int i; caller_info = IPA_NODE_REF (cs->ca...
false
false
false
false
false
0
dbi_caller_string(SV *buf, COP *cop, char *prefix, int show_line, int show_path) { dTHX; STRLEN len; long line = CopLINE(cop); char *file = SvPV(GvSV(CopFILEGV(cop)), len); if (!show_path) { char *sep; if ( (sep=strrchr(file,'/')) || (sep=strrchr(file,'\\'))) file = sep+...
false
false
false
true
false
1
getBoundingRect(const Window& wnd, const Rect& rect) const { Rect compRect; Rect bounds(0, 0, 0, 0); // measure all frame components for(FrameList::const_iterator frame = d_frames.begin(); frame != d_frames.end(); ++frame) { compRect = (*frame).getComponentArea()...
false
false
false
false
false
0
ensMetainformationNewIni(EnsPMetainformationadaptor mia, ajuint identifier, ajuint species, AjPStr key, AjPStr value) { EnsPMetainformat...
false
false
false
false
false
0
gt_strgraph_dot_bi_show(const GtStrgraph *strgraph, GtFile *outfp, bool show_progressbar) { unsigned long sn1, sn2; GtStrgraphVnum i; GtStrgraphVEdgenum j; bool is_e1, is_e2; unsigned long long progress = 0; gt_assert(strgraph != NULL); if (show_progressbar) gt_progressbar_start(&progress, ...
false
false
false
false
false
0
dumpNode(const SUnit *SU) const { if (!SU->getNode()) { dbgs() << "PHYS REG COPY\n"; return; } SU->getNode()->dump(DAG); dbgs() << "\n"; SmallVector<SDNode *, 4> FlaggedNodes; for (SDNode *N = SU->getNode()->getFlaggedNode(); N; N = N->getFlaggedNode()) FlaggedNodes.push_back(N); while (!Flag...
false
false
false
false
false
0
clutter_gst_video_texture_set_idle_material (ClutterGstVideoTexture *texture, CoglHandle material) { ClutterGstVideoTexturePrivate *priv; g_return_if_fail (CLUTTER_GST_IS_VIDEO_TEXTURE (texture)); priv = texture->priv; /* priv->idle_material always has...
false
false
false
false
false
0
setCylindrical ( double rho1, double phi1, double z1) { if ( rho1 < 0 ) { ZMthrowC (ZMxpvNegativeR( "Cylindrical coordinates supplied with negative Rho")); // No special return needed if warning is ignored. } dz = z1; dy = rho1 * std::sin (phi1); dx = rho1 * st...
false
false
false
false
false
0
hash(char *name) { register char *s; register int c, k; assert(name && *name); s = name; k = *s; while ((c = *++s)) k = (31*k + c) & (TABLE_SIZE - 1); return (k); }
false
false
false
false
false
0
cmd_execk (struct session *sess, char *tbuf, char *word[], char *word_eol[]) { int r; exec_check_process (sess); if (sess->running_exec == NULL) { EMIT_SIGNAL (XP_TE_NOCHILD, sess, NULL, NULL, NULL, NULL, 0); return FALSE; } if (strcmp (word[2], "-9") == 0) r = kill (sess->running_exec->childpid, SIGKILL);...
false
false
false
false
false
0
assign_syslog_ident(const char *ident, bool doit, GucSource source) { if (doit) set_syslog_parameters(ident, syslog_facility); return ident; }
false
false
false
false
false
0
pilFitsHdrWriteCard(PilFitsFile *fitsFile, const char *keyName, const char *card) { int status = 0; if (!fitsFile) return EXIT_FAILURE; if (ffucrd(fitsFile->fptr, (char *)keyName, (char *)card, &status)) return EXIT_FAILURE; return EXIT_SUCCESS; }
false
false
false
false
false
0
Xdup2(old, new) int old, new; { int fd, odev, ndev; if (old == new) return(new); odev = chkopenfd(old); ndev = chkopenfd(old); # ifdef DEP_DOSDRIVE if (odev == DEV_DOS || ndev == DEV_DOS) fd = seterrno(EBADF); else # endif fd = safe_dup2(old, new); if (fd >= 0) { # ifdef DEP_URLPATH if (odev == DEV_URL || ...
false
false
false
false
false
0
ast_for_with_item(struct compiling *c, const node *n, asdl_seq *content) { expr_ty context_expr, optional_vars = NULL; REQ(n, with_item); context_expr = ast_for_expr(c, CHILD(n, 0)); if (!context_expr) return NULL; if (NCH(n) == 3) { optional_vars = ast_for_expr(c, CHILD(n, 2)); ...
false
false
false
false
false
0
cmv_decode_end(AVCodecContext *avctx){ CmvContext *s = avctx->priv_data; if (s->frame.data[0]) s->avctx->release_buffer(avctx, &s->frame); if (s->last_frame.data[0]) s->avctx->release_buffer(avctx, &s->last_frame); if (s->last2_frame.data[0]) s->avctx->release_buffer(avctx, &s->l...
false
false
false
false
false
0
bdisp_device_run(void *priv) { struct bdisp_ctx *ctx = priv; struct bdisp_dev *bdisp; unsigned long flags; int err = 0; if (WARN(!ctx, "Null hardware context\n")) return; bdisp = ctx->bdisp_dev; dev_dbg(bdisp->dev, "%s\n", __func__); spin_lock_irqsave(&bdisp->slock, flags); if (bdisp->m2m.ctx != ctx) { ...
false
false
false
false
false
0
event_key_get_raw(d_event *event) { int keycode = ((d_event_keycommand *)event)->keycode; Assert(event->type == EVENT_KEY_COMMAND || event->type == EVENT_KEY_RELEASE); if ( keycode & KEY_SHIFTED ) keycode &= ~KEY_SHIFTED; if ( keycode & KEY_ALTED ) keycode &= ~KEY_ALTED; if ( keycode & KEY_CTRLED ) keycode &= ~KEY...
false
false
false
false
false
0
processCollision (btCollisionObject* body0,btCollisionObject* body1,const btDispatcherInfo& dispatchInfo,btManifoldResult* resultOut) { clearCache(); m_resultOut = resultOut; m_dispatchInfo = &dispatchInfo; btGImpactShapeInterface * gimpactshape0; btGImpactShapeInterface * gimpactshape1; if (body0->...
false
false
false
false
false
0
__lambda46_ (FolksIndividual* self) { FolksSmallSet* _tmp0_ = NULL; FolksSmallSet* _tmp1_ = NULL; GeeSet* _tmp2_ = NULL; GeeSet* _tmp3_ = NULL; _tmp0_ = folks_small_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL); _g_object_unref0 (self->priv->_local_ids); self->pri...
false
false
false
false
false
0
copyarcf(re, archre) CONST reg_ex_t *re; CONST char *archre; { CONST char *cp; int i, j, n, len, parent; parent = (*archivedir) ? 0 : -1; /* omit arcflist[0] as pseudo ".." */ for (i = 1; i < maxarcf; i++) { if (!(cp = skiparchdir(arcflist[i].name))) continue; if (!*cp) { parent = i; continue; } le...
false
false
false
false
false
0
getReg() { return getReplaced() ? getReplaced()->getReg() : this; }
false
false
false
false
false
0
printOptionInfo(const Option &O, size_t GlobalWidth) const { if (O.hasArgStr()) { outs() << " -" << O.ArgStr; printHelpStr(O.HelpStr, GlobalWidth, std::strlen(O.ArgStr) + 6); for (unsigned i = 0, e = getNumOptions(); i != e; ++i) { size_t NumSpaces = Globa...
false
false
false
false
false
0
vmap_batch(struct drm_i915_gem_object *obj, unsigned start, unsigned len) { int i; void *addr = NULL; struct sg_page_iter sg_iter; int first_page = start >> PAGE_SHIFT; int last_page = (len + start + 4095) >> PAGE_SHIFT; int npages = last_page - first_page; struct page **pages; pages = drm_malloc_ab(n...
false
false
false
false
false
0
lad_sm_search_temp_table(Statement *stm, Operand *ope) { Quadruple *qr; if (ope->kind != KIND_TEMP) { abort(); } for (qr = stm->qr_head; qr != NULL; qr = qr->next) { if (ope->tbl.t->entry == qr->op[0]->tbl.t->entry) { return qr; } } return NULL; }
false
false
false
false
false
0
reflection_extension_factory(zval *object, const char *name_str TSRMLS_DC) { reflection_object *intern; zval *name; int name_len = strlen(name_str); char *lcname; struct _zend_module_entry *module; ALLOCA_FLAG(use_heap) lcname = do_alloca(name_len + 1, use_heap); zend_str_tolower_copy(lcname, name_str, name_le...
false
false
false
false
false
0
sci_rx_interrupt(int irq, void *ptr) { #ifdef CONFIG_SERIAL_SH_SCI_DMA struct uart_port *port = ptr; struct sci_port *s = to_sci_port(port); if (s->chan_rx) { u16 scr = serial_port_in(port, SCSCR); u16 ssr = serial_port_in(port, SCxSR); /* Disable future Rx interrupts */ if (port->type == PORT_SCIFA || por...
false
false
false
false
false
0