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
mp_addmod (mp_int * a, mp_int * b, mp_int * c, mp_int * d) { int res; mp_int t; if ((res = mp_init (&t)) != MP_OKAY) { return res; } if ((res = mp_add (a, b, &t)) != MP_OKAY) { mp_clear (&t); return res; } res = mp_mod (&t, c, d); mp_clear (&t); return res; }
false
false
false
false
false
0
iconPath(const QString& name) const { if (!mbValid) { return QString(); } QString file = dir() + '/' + name; if (KDE::access(file, R_OK) == 0) { return KGlobal::hasLocale() ? KGlobal::locale()->localizedFilePath(file) : file; } return QString(); }
false
false
false
false
false
0
addRange(WideChar descMin, WideChar descMax, UnivChar univMin) { if (descMin <= charMax) { Char max = descMax > charMax ? charMax : descMax; charMap_.setRange(descMin, max, wrapChar(univMin, descMin)); } if (descMax > charMax) { if (descMin > charMax) rangeMap_.addRange(descM...
false
false
false
false
false
0
syn_list_header(did_header, outlen, id) int did_header; /* did header already */ int outlen; /* length of string that comes */ int id; /* highlight group id */ { int endcol = 19; int newline = TRUE; if (!did_header) { msg_putchar('\n'); if (got_int) return TRU...
false
false
false
false
false
0
get_in_brackets_full(char *tmp,char **out,char **residue) { const char *parse = tmp; char *first_bracket; char *second_bracket; if (out) { *out = ""; } if (residue) { *residue = ""; } if (ast_strlen_zero(tmp)) { return 1; } /* * Skip any quoted text until we find the part in brackets. * On any err...
false
false
false
false
false
0
ep_timeout(unsigned long arg) { struct iwch_ep *ep = (struct iwch_ep *)arg; struct iwch_qp_attributes attrs; unsigned long flags; int abort = 1; spin_lock_irqsave(&ep->com.lock, flags); PDBG("%s ep %p tid %u state %d\n", __func__, ep, ep->hwtid, ep->com.state); switch (ep->com.state) { case MPA_REQ_SENT:...
false
false
false
false
false
0
xkl_engine_ungrab_key(XklEngine * engine, gint keycode, guint modifiers) { if (0 == keycode) return FALSE; return Success == XUngrabKey(xkl_engine_get_display(engine), keycode, 0, xkl_engine_priv(engine, root_window)); }
false
false
false
false
false
0
get(int& n, VSILFILE* fp, const char* psz) { vsi_l_offset offset; size_t len; if(this->locate_data(offset, len, fp, psz)) { GInt32 value; if(1 == VSIFReadL(&value, sizeof(value), 1, fp)) { CPL_LSBPTR32(&value); n = (int)value; return true; ...
false
false
false
false
false
0
printParams ( param p ) { stringstream s; s << "caseOn = " << p.caseOn << endl; s << "noPunct = " << p.noPunct << endl; s << "debugMode = " << p.debugMode << endl; s << "hypothesisFile = " << p.hypothesisFile << endl; s << "referenceFile = " << p.referenceFile << endl; s << "normalize = " << p.normalize <...
false
false
false
false
false
0
drbd_rs_begin_io(struct drbd_device *device, sector_t sector) { unsigned int enr = BM_SECT_TO_EXT(sector); struct bm_extent *bm_ext; int i, sig; bool sa; retry: sig = wait_event_interruptible(device->al_wait, (bm_ext = _bme_get(device, enr))); if (sig) return -EINTR; if (test_bit(BME_LOCKED, &bm_ext->flag...
false
false
false
false
false
0
printStackObj( StgPtr sp ) { /*debugBelch("Stack[%d] = ", &stgStack[STACK_SIZE] - sp); */ StgClosure* c = (StgClosure*)(*sp); printPtr((StgPtr)*sp); if (c == (StgClosure*)&stg_ctoi_R1p_info) { debugBelch("\t\t\tstg_ctoi_ret_R1p_info\n" ); } else if (c == (StgClosure*)&st...
false
false
false
false
false
0
execute_cdb_test_unit_ready (struct ndm_session *sess, ndmp9_execute_cdb_request *request, ndmp9_execute_cdb_reply *reply) { unsigned char *cdb = (unsigned char *)request->cdb.cdb_val; char *response; int response_len; char *p; if (request->cdb.cdb_len != 6) return scsi_fail_with_sense_code(sess, reply, ...
false
false
false
false
false
0
_gcr_gnupg_collection_finalize (GObject *obj) { GcrGnupgCollection *self = GCR_GNUPG_COLLECTION (obj); g_assert (self->pv->items); g_assert (g_hash_table_size (self->pv->items) == 0); g_hash_table_destroy (self->pv->items); self->pv->items = NULL; g_free (self->pv->directory); self->pv->directory = NULL; G_O...
false
false
false
false
false
0
posix_acl_inherit_mode (struct posix_acl *acl, mode_t modein) { struct posix_ace *ace = NULL; int count = 0; int i = 0; mode_t newmode = 0; mode_t mode = 0; struct posix_ace *mask_ce = N...
false
false
false
true
false
1
main(int argc, char **argv) { FILE *echo_fd, *ref_fd, *e_fd; short echo_buf[NN], ref_buf[NN], e_buf[NN]; SpeexEchoState *st; SpeexPreprocessState *den; int sampleRate = 8000; if (argc != 4) { fprintf(stderr, "testecho mic_signal.sw speaker_signal.sw output.sw\n"); exit(1); } echo...
false
false
false
false
true
1
tcp_rx_data ( struct tcp_connection *tcp, uint32_t seq, struct io_buffer *iobuf ) { uint32_t already_rcvd; uint32_t len; int rc; /* Ignore duplicate or out-of-order data */ already_rcvd = ( tcp->rcv_ack - seq ); len = iob_len ( iobuf ); if ( already_rcvd >= len ) { free_iob ( iobuf ); return 0; } iob_...
false
false
false
false
false
0
dlist_copy(dlist* src, BOOLEAN deep_copy){ if(!src) return NULL; dlist* mnew = NULL, *runner = src; do{ Object* new_data = runner->data; mnew = dlist_pushback(mnew, new_data, deep_copy); runner = runner->next; } while(runner != src); return mnew; }
false
false
false
false
false
0
cgit_print_tags(int maxcount) { struct reflist list; int i; header = 0; list.refs = NULL; list.alloc = list.count = 0; for_each_tag_ref(cgit_refs_cb, &list); if (list.count == 0) return; qsort(list.refs, list.count, sizeof(*list.refs), cmp_tag_age); if (!maxcount) maxcount = list.count; else if (maxcount...
false
false
false
false
false
0
evaluate(KBlocksField * field) { int line = getFeature(FEATURE_MAX_HEIGHT, field ) - 6; if (line < 0) { line = 0; } set_ground_line(line); return BaseEvaluation::instance()->evaluate(field); }
false
false
false
false
false
0
sock_tcp_child_recv(dns_sock_buf_t *sbuf, dns_sock_t *sock) { int len; socklen_t fromlen; /* peek */ if ((len = sock_tcp_child_getmsg(sbuf->sb_buf, sizeof(sbuf->sb_buf), MSG_PEEK, sock)) < 0) return -1; /* incompeleted message */ if (len == 0) return 0; /* receive */ i...
false
false
false
false
false
0
audiobuffer_get_volume(void *callback, Fixed *vol) { GF_AudioInput *ai = (GF_AudioInput *) callback; if (ai->snd->GetChannelVolume) { return ai->snd->GetChannelVolume(ai->snd->owner, vol); } else { vol[0] = vol[1] = vol[2] = vol[3] = vol[4] = vol[5] = FIX_ONE; return 0; } }
false
false
false
false
false
0
speed( unsigned long _bytes_per_second ) { KIO_DATA << (quint32) _bytes_per_second; send( INF_SPEED, data ); }
false
false
false
false
false
0
debug_print_vm_field(struct vm_field *field) { if (field) { printf(" field : %s %s\n", field->type, field->name); if (field->class->name) { printf("class->name : %s\n", field->class->name); } printf("\n"); } else { printf("Unable to print null vm_field!\n"); } }
false
false
false
false
false
0
release_dotlock(struct PCPdir *pd, char *n) { FILE *fp; char buf[HOSTNAMELEN*2]; fp=fopen(n, "r"); if (fp && fgets(buf, sizeof(buf), fp) != NULL) { char *p=strchr(buf, '\n'); if (p) *p=0; p=strchr(buf, ' '); if (p) { *p++=0; if (atol(buf) == getpid() && strcmp(p, pd->hostname_buf) ==...
true
true
false
false
true
1
answer_from_qmem_data(int dns_fd, int userid, struct query *q) /* Quick helper function to keep handle_null_request() clean */ { char cmc[4]; int i; for (i = 0; i < 4; i++) if (q->name[i+1] >= 'A' && q->name[i+1] <= 'Z') cmc[i] = q->name[i+1] + ('a' - 'A'); else cmc[i] = q->name[i+1]; return answer_from...
false
false
false
false
false
0
init_dequant8_coeff_table(H264Context *h){ int i,q,x; const int transpose = (h->s.dsp.h264_idct8_add != ff_h264_idct8_add_c); //FIXME ugly h->dequant8_coeff[0] = h->dequant8_buffer[0]; h->dequant8_coeff[1] = h->dequant8_buffer[1]; for(i=0; i<2; i++ ){ if(i && !memcmp(h->pps.scaling_matrix8[...
false
false
false
false
false
0
gkrellm_copy_style(GkrellmStyle *style) { GkrellmStyle *s = NULL; if (style) { s = gkrellm_style_new0(); *s = *style; } return s; }
false
false
false
false
false
0
create_main_loop_thread (OOP semaphore) { if (!mutex) { /* One-time initialization. */ mutex = g_mutex_new (); cond = g_cond_new (); cond_dispatch = g_cond_new (); } g_mutex_lock (mutex); if (loop) { /* A loop exists. If it is exiting, wait for it, otherwise l...
false
false
false
false
false
0
pcan_set_can_power(struct pcan_pccard *card, int onoff) { int err; err = pcan_write_eeprom(card, 0, !!onoff); if (err) dev_err(&card->pdev->dev, "failed setting power %s to can connectors (err %d)\n", (onoff) ? "on" : "off", err); }
false
false
false
false
false
0
ticker_off (ticker_t *ticker) { if (ticker->incremented_off_time == 0) ticker->incremented_off_time = get_run_time () + 1; }
false
false
false
false
false
0
ahci_qc_issue(struct ata_queued_cmd *qc) { struct ata_port *ap = qc->ap; void __iomem *port_mmio = ahci_port_base(ap); struct ahci_port_priv *pp = ap->private_data; /* Keep track of the currently active link. It will be used * in completion path to determine whether NCQ phase is in * progress. */ pp->activ...
false
false
false
false
false
0
print_shader_info(const struct gl_shader_program *shProg) { GLuint i; printf("Mesa: glUseProgram(%u)\n", shProg->Name); for (i = 0; i < shProg->NumShaders; i++) { printf(" %s shader %u, checksum %u\n", _mesa_shader_stage_to_string(shProg->Shaders[i]->Stage), shProg->Shaders[i]->Name,...
false
false
false
false
false
0
read_port(struct device *dev, struct device_attribute *attr, char *buf, int port_num, int read_id) { int result = 0; struct usb_interface *intf = to_usb_interface(dev); struct cypress *cyp = usb_get_intfdata(intf); dev_dbg(&cyp->udev->dev, "READ_PORT%d called\n", port_num); result = vendor_command(cyp, CYPR...
false
true
false
false
false
1
stmmac_init_ptp(struct stmmac_priv *priv) { if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) return -EOPNOTSUPP; /* Fall-back to main clock in case of no PTP ref is passed */ priv->clk_ptp_ref = devm_clk_get(priv->device, "clk_ptp_ref"); if (IS_ERR(priv->clk_ptp_ref)) { priv->clk_ptp_rate = clk_ge...
false
false
false
false
false
0
print_padded_number (void) { if (format_str_prefix) fputs (format_str_prefix, stdout); fputs (padding_buffer, stdout); if (format_str_suffix) fputs (format_str_suffix, stdout); }
false
false
false
false
false
0
OnSize(wxSizeEvent& WXUNUSED(evt)) { if (m_swx) { wxSize sz = GetClientSize(); m_swx->DoSize(sz.x, sz.y); } }
false
false
false
false
false
0
initializeGLE(const char* appname, int argc, char **argv) { try { gle_glib_init(argc, argv); // Initialize code in core.cpp g_init(); // Load configuration file init_config(&g_Config); init_option_args(g_CmdLine); return do_load_config(appname, argv, g_CmdLine, g_Config); } catch (ParserError err) {...
false
false
false
false
false
0
fl_copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy) { #ifdef WIN32 if (fl_graphics_driver->class_name() == Fl_GDI_Graphics_Driver::class_id || fl_graphics_driver->class_name() == Fl_GDI_Printer_Graphics_Driver::class_id) { #else if (fl_graphics_driver->class_name() == Fl_Dis...
false
false
false
false
false
0
print_tree(bin_tree<int> *t) { bin_tree<int>::iterator it; for(it = t->begin(); it != t->end(); ++it) std::cout << *it << ' '; std::cout << std::endl; }
false
false
false
false
false
0
gui_text_entry(gchar *text, gchar **value, gint edit, gint pack, GtkWidget *box) { GtkWidget *hbox, *label, *entry; g_assert(box != NULL); hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 0); if (text) { label = gtk_label_new(text); gtk_box_pack_start...
false
false
false
false
false
0
alloc_tuple(output_func of,size_t size) { tuple* ret = free_list; if ( ! ret ){ int toalloc = (ALLOC_CHUNKS /sizeof(tuple)); ret = malloc( toalloc *sizeof(tuple) ); free_list = ret; while(--toalloc){ ret->next = ret+1; ret++; } ret->next = NULL; return alloc_tuple(of,size); } free_list = r...
false
true
false
false
false
1
edit_cats_change_cats_pdb(char *DB_name, int old_cat, int new_cat) { GList *temp_list; GList *records; buf_rec *br; int num, count; jp_logf(JP_LOG_DEBUG, "edit_cats_change_cats_pdb\n"); count=0; num = jp_read_DB_files(DB_name, &records); if (-1 == num) return 0; for (temp_list = reco...
false
false
false
false
false
0
rb_str_aset(str, indx, val) VALUE str; VALUE indx, val; { long idx, beg; switch (TYPE(indx)) { case T_FIXNUM: num_index: idx = FIX2LONG(indx); if (RSTRING(str)->len <= idx) { out_of_range: rb_raise(rb_eIndexError, "index %ld out of string", idx); } if (idx < 0) { if (-idx >...
false
false
false
false
false
0
NbOfSubTriangle(int k) { if(k>0) return k*k; else if(k<0) return 3*(k*k); ffassert(0); return 0; }
false
false
false
false
false
0
log_err(const char* pattern, ...) { va_list ap; if(strchr(pattern, '\n') != NULL) { /* * Count errors only if there is a line feed in the pattern * so that we do not exaggerate our error count. */ ++ERROR_COUNT; } va_start(ap, pattern); vlog_err(NULL, patte...
false
false
false
false
false
0
dlb_fopen(name, mode) const char *name, *mode; { FILE *fp; dlb *dp; if (!dlb_initialized) return (dlb *) 0; dp = (dlb *) alloc(sizeof(dlb)); if (do_dlb_fopen(dp, name, mode)) dp->fp = (FILE *) 0; else if ((fp = fopen_datafile(name, mode, DATAPREFIX)) != 0) dp->fp = fp; else { /*...
false
false
false
false
false
0
wl1271_op_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wow) { struct wl1271 *wl = hw->priv; struct wl12xx_vif *wlvif; int ret; wl1271_debug(DEBUG_MAC80211, "mac80211 suspend wow=%d", !!wow); WARN_ON(!wow); /* we want to perform the recovery before suspending */ if (test_bit(WL1271_FLAG_RECOV...
false
false
false
false
false
0
webx_jpeg_target_save_image (WebxTarget *widget, WebxTargetInput *input, const gchar *file_name) { WebxJpegTarget *jpeg; GimpParam *return_vals; gint n_return_vals; gint32 image; gint32 layer; gint32 ...
false
false
false
false
false
0
gw_catalog_compare_disk_guint64 ( GtkCList *clist, const gpointer ptr1, const gpointer ptr2) { GWDBDisk *disk1 = NULL, *disk2 = NULL; guint64 nb1 = -1, nb2 = -1; #ifdef GW_DEBUG_GUI_CALLBACK_COMPONENT g_print ( "*** GW - %s (%d) :: %s()\n", __FILE__, __LINE__, __PRETTY_FUNCTION__); #endif if ( (ptr1!=NULL) && (p...
false
false
false
false
false
0
makeSvg(const QString & holeDiameter, const QString & ringThickness, ViewLayer::ViewLayerID viewLayerID, bool includeHole) { double offsetDPI = OffsetPixels / GraphicsUtils::SVGDPI; double hd = TextUtils::convertToInches(holeDiameter); double rt = TextUtils::convertToInches(ringThickness); double wInches = hd + r...
false
false
false
false
false
0
text_tag_start_sequence(const struct text_tag *ptag, char *buf, size_t len) { switch (ptag->type) { case TTT_BOLD: case TTT_ITALIC: case TTT_STRIKE: case TTT_UNDERLINE: return fc_snprintf(buf, len, "%c%s%c", SEQ_START, text_tag_type_short_name(p...
false
false
false
false
false
0
PListOutputPrivateThing(FILE *plist, char *key, struct psdict *private, char *type) { char *value; if ( private==NULL ) return; value = PSDictHasEntry(private,key); if ( value==NULL ) return; while ( *value==' ' || *value=='[' ) ++value; fprintf( plist, "\t<key>postscript%s</key>\n", key ); ...
false
false
false
false
false
0
chunk_record(extent_tree_t *chunks_szad, extent_tree_t *chunks_ad, void *chunk, size_t size) { bool unzeroed; extent_node_t *xnode, *node, *prev, *xprev, key; unzeroed = pages_purge(chunk, size); VALGRIND_MAKE_MEM_NOACCESS(chunk, size); /* * Allocate a node before acquiring chunks_mtx even though it might ...
false
false
false
false
false
0
init(FT_IO_NS fm_io & io) { int err = 0; if (this_io->is_open()) this_io = & io; else err = ENOTCONN; // I/O is not open ! return err; }
false
false
false
false
false
0
computeTemporaryTerms(map<expr_t, int> &reference_count, temporary_terms_t &temporary_terms, bool is_matlab) const { expr_t this2 = const_cast<TrinaryOpNode *>(this); map<expr_t, int>::iterator it = reference_count.find(this2); if (it == re...
false
false
false
false
false
0
dispatch(pnSocket* sock) { uint16_t msgId; sock->recv(&msgId, sizeof(uint16_t)); const pnNetMsg* msgDesc = GET_Game2Cli(msgId); if (msgDesc == NULL) { plDebug::Error("Got invalid message ID (%u)", msgId); return false; } msgparm_t* msgbuf = sock->recvMsg(msgDesc); switch (m...
false
false
false
false
false
0
lg (Scsi_Command &cmd,int action,int book) { int err; unsigned char vector[4]; switch (action) { case OPT_INQ|OPT_MEDIA: break; case OPT_INQ|OPT_UNITRW: case OPT_UNITRW: case OPT_MEDIA: fprintf (stderr,":-( DVD+RW booktyping is not supported\n"); return 1; break; case OPT_INQ: case OPT_INQ|OPT_U...
false
false
false
false
false
0
atmel_isi_parse_dt(struct atmel_isi *isi, struct platform_device *pdev) { struct device_node *np= pdev->dev.of_node; struct v4l2_of_endpoint ep; int err; /* Default settings for ISI */ isi->pdata.full_mode = 1; isi->pdata.frate = ISI_CFG1_FRATE_CAPTURE_ALL; np = of_graph_get_next_endpoint(np, NULL); if (!n...
false
false
false
false
false
0
createInstance(const Locale& loc, int32_t kind, UErrorCode& status) { if (U_FAILURE(status)) { return NULL; } #if !UCONFIG_NO_SERVICE if (hasService()) { Locale actualLoc(""); BreakIterator *result = (BreakIterator*)gService->get(loc, kind, &actualLoc, status); // TODO: The ...
false
false
false
false
false
0
ggc_alloc (size) size_t size; { unsigned order, word, bit, object_offset; struct page_entry *entry; void *result; if (size <= 256) order = size_lookup[size]; else { order = 9; while (size > OBJECT_SIZE (order)) order++; } /* If there are non-full pages for this size allocatio...
false
false
false
false
true
1
sub_var_optional(sub_context_ty *scp, const char *name) { table_ty *the_end; table_ty *svp; the_end = scp->sub_var_list + scp->sub_var_pos; for (svp = scp->sub_var_list; svp < the_end; ++svp) if (!strcmp(svp->name, name)) break; assert(svp < the_end); if (svp <...
false
false
false
false
false
0
scm_i_remove_weaks (SCM w) { SCM *ptr = SCM_I_WVECT_GC_WVELTS (w); size_t n = SCM_I_WVECT_LENGTH (w); size_t i; if (!SCM_IS_WHVEC_ANY (w)) { for (i = 0; i < n; ++i) if (UNMARKED_CELL_P (ptr[i])) ptr[i] = SCM_BOOL_F; } else { size_t delta = 0; for (i = 0; i < n; ++i) { S...
false
false
false
false
false
0
config_new_stored (GnomeRRScreen *screen, const char *filename, GError **error) { GnomeRRConfig *current; GnomeRRConfig **configs; GnomeRRConfig *result; g_return_val_if_fail (screen != NULL, NULL); g_return_val_if_fail (error == NULL || *error == NULL, NULL); current = gnome_rr_config_new...
false
false
false
false
false
0
GenericMessageBox(const wxString& messageIn, const wxString& captionIn, long style, wxWindow *parent, int x, int y ) // ---------------------------------------------------------------------------- { long decorated_style = style | wxCENTER; if ( ( style & ( wxICON_EXCLAMATION | wxICON_HAND | wx...
false
false
false
false
false
0
modify_params(int narg, char **arg) { if (narg == 0) error->all(FLERR,"Illegal compute_modify command"); int iarg = 0; while (iarg < narg) { if (strcmp(arg[iarg],"extra") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal compute_modify command"); extra_dof = force->inumeric(FLERR,arg[iarg+1]);...
false
false
false
false
false
0
__ecereNameSpace__ecere__gfx__drivers__STRETCH_BT(struct __ecereNameSpace__ecere__com__Instance * src, struct __ecereNameSpace__ecere__com__Instance * dst, int dx, int dy, int sx, int sy, int w, int h, int sw, int sh) { int x, y; unsigned int xerr, yerr; unsigned int adddest = ((struct __ecereNameSpace__ecere__gfx__Bit...
false
false
false
false
false
0
boxFloat(PyTypeObject *type, PyObject *arg, java::lang::Object *obj) { int result = boxJObject(type, arg, obj); if (result <= 0) return result; if (PyInt_Check(arg)) { if (obj != NULL) *obj = Float((jfloat) PyInt_AS_LONG(arg)); } else if (PyLong_Check(arg)) { ...
false
false
false
false
false
0
spdifin_caps(unsigned long pin_caps, unsigned long wid_caps) { return (pin_caps & AC_PINCAP_IN) && (wid_caps & AC_WCAP_DIGITAL); }
false
false
false
false
false
0
gsi_remove (gimple_stmt_iterator *i, bool remove_permanently) { gimple_seq_node cur, next, prev; gimple stmt = gsi_stmt (*i); bool require_eh_edge_purge = false; if (gimple_code (stmt) != GIMPLE_PHI) insert_debug_temps_for_defs (i); /* Free all the data flow information for STMT. */ gimple_set_bb (st...
false
false
false
false
false
0
getTargetNodeName(unsigned Opcode) const { switch ((AMDGPUISD::NodeType)Opcode) { case AMDGPUISD::FIRST_NUMBER: break; // AMDIL DAG nodes NODE_NAME_CASE(CALL); NODE_NAME_CASE(UMUL); NODE_NAME_CASE(RET_FLAG); NODE_NAME_CASE(BRANCH_COND); // AMDGPU DAG nodes NODE_NAME_CASE(DWORDADDR) NODE_NAME_CASE(F...
false
false
false
false
false
0
igb_clean_rx_ring(struct igb_ring *rx_ring) { unsigned long size; u16 i; if (rx_ring->skb) dev_kfree_skb(rx_ring->skb); rx_ring->skb = NULL; if (!rx_ring->rx_buffer_info) return; /* Free all the Rx ring sk_buffs */ for (i = 0; i < rx_ring->count; i++) { struct igb_rx_buffer *buffer_info = &rx_ring->rx_b...
false
false
false
false
false
0
smp_sync_sign(const struct smp_signctx *ctx) { int i; /* XXX: round to pages */ i = msync((void*)ctx->ss, ctx->ss->length + SHA256_LEN, MS_SYNC); if (i && 0) fprintf(stderr, "SyncSign(%p %s) = %d %s\n", ctx->ss, ctx->id, i, strerror(errno)); }
false
false
false
false
false
0
print_stats() { gettimeofday(&en,0); float dtime = en.tv_sec - st.tv_sec + ((float)en.tv_usec - st.tv_usec)/1e6; outf("\n" " Fuzz cycles executed : %u (%u partial)\n" " Processes launched : %llu\n" " Fault conditions : %u\n" " Call path count : %u (+%u ignored)\n" ...
false
false
false
false
false
0
KeyToTOCVector(const BrickKey &k) const { if (m_bToCBlock) { const TOCTimestep* ts = static_cast<TOCTimestep*>(m_timesteps[std::get<0>(k)]); const uint64_t iLOD = std::get<1>(k); const uint64_t iLinearIndex = std::get<2>(k); const UINT64VECTOR3 iBricks = ts->GetDB()->GetBrickCount(iLOD); const u...
false
false
false
false
false
0
SetPacketData(Packet* packet, uint8_t* data, int streamid, uint64_t dts, uint64_t pts, uint32_t duration) { if (packet == NULL) return; DemuxPacket* d = static_cast<DemuxPacket*>(packet); d->iStreamId = streamid; d->duration = duration; d->dts = (double)dts * DVD_TIME_BASE / 1000000; d->pts ...
false
false
false
false
false
0
HtmlStyleHandleCounters(pTree, pComputed) HtmlTree *pTree; HtmlComputedValues *pComputed; { StyleApply *p = (StyleApply *)pTree->pStyleApply; HtmlCounterList *pReset = pComputed->clCounterReset; HtmlCounterList *pIncr = pComputed->clCounterIncrement; /* Section 12.4.3 of CSS 2.1: Elements wit...
false
false
false
false
false
0
test_oauth1_authorizer_request_authorization_sync_bad_credentials (OAuth1AuthorizerInteractiveData *data, gconstpointer user_data) { gboolean success; GError *error = NULL; gdata_test_mock_server_start_trace (mock_server, "oauth1-authorizer-request-authorization-sync-bad-credentials"); /* Check we're not authoris...
false
false
false
false
false
0
sst_validate_strid( struct intel_sst_drv *sst_drv_ctx, int str_id) { if (str_id <= 0 || str_id > sst_drv_ctx->info.max_streams) { dev_err(sst_drv_ctx->dev, "SST ERR: invalid stream id : %d, max %d\n", str_id, sst_drv_ctx->info.max_streams); return -EINVAL; } return 0; }
false
false
false
false
false
0
GeneralEvaluationR(float arOutput[NUM_ROLLOUT_OUTPUTS], float arStdDev[NUM_ROLLOUT_OUTPUTS], rolloutstat arsStatistics[2], const TanBoard anBoard, const cubeinfo * pci, const rolloutcontext * prc, rolloutprogressfunc * pf, void *p) { ConstT...
false
true
false
false
false
1
Process() { //Iterate over each track this->CopyInputTracks(); // Set up mOutputTracks. bool bGoodResult = true; SelectedTrackListOfKindIterator iter(Track::Wave, mOutputTracks); WaveTrack* pOutWaveTrack = (WaveTrack*)(iter.First()); mCurTrackNum = 0; while (pOutWaveTrack != NULL) { //Get...
false
false
false
false
false
0
fifo_stop () { ENTER("fifo_stop"); int a_command_is_running = 0; int a_status = pthread_mutex_lock(&my_mutex); SHOW_TIME("fifo_stop > locked\n"); if (a_status != 0) { return EE_INTERNAL_ERROR; } if (my_command_is_running) { a_command_is_running = 1; my_stop_is_required = 1; ...
false
false
false
false
false
0
nvme_trans_mode_select(struct nvme_ns *ns, struct sg_io_hdr *hdr, u8 *cmd) { u8 cdb10 = 0; u16 parm_list_len; u8 page_format; u8 save_pages; page_format = cmd[1] & MODE_SELECT_CDB_PAGE_FORMAT_MASK; save_pages = cmd[1] & MODE_SELECT_CDB_SAVE_PAGES_MASK; if (cmd[0] == MODE_SELECT) { parm_list_len = cmd[...
false
false
false
false
false
0
perf_distribute_host(worker_t *worker, perf_host_t *host, apr_thread_t **thread) { apr_status_t status; global_t *global = worker->global; apr_pool_t *ptmp; *thread = NULL; apr_pool_create_unmanaged_ex(&ptmp, NULL, NULL); if...
false
false
false
false
false
0
getlock(void) { int i = 0, fd, c; const char *fq_lock; #ifdef TTY_GRAPHICS /* idea from rpick%ucqais@uccba.uc.edu * prevent automated rerolling of characters * test input (fd0) so that tee'ing output to get a screen dump still * works * also incidentally prevents development of any hack-o-matic progra...
false
false
false
false
false
0
slot_abone_selection_images() { #ifdef _DEBUG std::cout << "ArticleViewBase::slot_abone_selection_images\n"; #endif if( m_drawarea->get_selection_imgurls().size() ){ std::vector< URLINFO >::const_iterator it = m_drawarea->get_selection_imgurls().begin(); for( ; it != m_drawarea->get_selection_...
false
false
false
false
false
0
epr_read_band_raster(EPR_SBandId* band_id, int offset_x, int offset_y, EPR_SRaster* raster/*, EPR_SRaster** bitmask_raster*/) { EPR_SProductId* product_id = NULL; EPR_SDatasetId* dataset_id = NULL; char* rec_type; epr_clear_err...
false
false
false
false
false
0
mem_mono_strip_copy_rop(gx_device * dev, const byte * sdata, int sourcex,uint sraster, gx_bitmap_id id, const gx_color_index * scolors, const gx_strip_bitmap * textures, const gx_color_index * tcolors, ...
false
false
false
false
false
0
splitLine(LayoutContext *cx, SequenceState *text, Snip *last) { Snip *t = last; Snip *s; int x, y; x = t->x; y = t->y; // // Eat up all extra spaces to the end of the line // for ( ; ; ) { if (t->space) { t->xWidth = 0; t->x = x; t->y = y; } if (t->endseq) ...
false
false
false
false
false
0
GMT_check_lattice_cpy (struct GMT_GRD_INFO *info, double *x_inc, double *y_inc, GMT_LONG *pixel, GMT_LONG *active) { /* Uses provided settings to initialize the lattice settings from * the -R<grdfile> if it was given; else it does nothing. */ if (!info->active) return; /* -R<grdfile> was not used; use existing set...
false
false
false
false
false
0
v5_prop(krb5_context context, HDB *db, hdb_entry_ex *entry, void *appdata) { krb5_error_code ret; struct prop_data *pd = appdata; krb5_data data; if(encrypt_flag) { ret = hdb_seal_keys_mkey(context, &entry->entry, mkey5); if (ret) { krb5_warn(context, ret, "hdb_seal_keys_mkey"); return ret;...
false
false
false
false
false
0
__isns_bitvector_find_word(const isns_bitvector_t *bv, unsigned int bit) { uint32_t *wp, *end; if (bv->ib_words == NULL) return NULL; wp = bv->ib_words; end = wp + bv->ib_count; while (wp < end) { unsigned int base, rlen; base = wp[0]; rlen = wp[1]; isns_assert(!(base % 32)); if (base <= bit && bit...
false
false
false
false
false
0
init() { if (strstr(update->integrate_style,"respa")) nlevels_respa = ((Respa *) update->integrate)->nlevels; }
false
false
false
false
false
0
devices_kset_move_last(struct device *dev) { if (!devices_kset) return; pr_debug("devices_kset: Moving %s to end of list\n", dev_name(dev)); spin_lock(&devices_kset->list_lock); list_move_tail(&dev->kobj.entry, &devices_kset->list); spin_unlock(&devices_kset->list_lock); }
false
false
false
false
false
0
native(SmallVectorImpl<char> &Path) { #ifdef LLVM_ON_WIN32 std::replace(Path.begin(), Path.end(), '/', '\\'); #else for (auto PI = Path.begin(), PE = Path.end(); PI < PE; ++PI) { if (*PI == '\\') { auto PN = PI + 1; if (PN < PE && *PN == '\\') ++PI; // increment once, the for loop will move ...
false
false
false
false
false
0
change_field_item_name(const Glib::ustring& table_name, const Glib::ustring& field_name, const Glib::ustring& field_name_new) { LayoutItem_Portal::change_field_item_name(table_name, field_name, field_name_new); sharedptr<const Relationship> relationship = get_relationship(); if(relationship && (relati...
false
false
false
false
false
0
kg_cred_set_initial_refresh(krb5_context context, krb5_gss_cred_id_rec *cred, krb5_ticket_times *times) { krb5_timestamp refresh; /* For now, we only mark keytab-acquired credentials for refresh. */ if (cred->password != NULL) return; /* Make a note to refresh these...
false
false
false
false
false
0
TransformImage(char *cDefInpProf, char *cOutProf) { cmsHPROFILE hIn, hOut, hProof; cmsHTRANSFORM xform; cmsUInt32Number wInput, wOutput; int OutputColorSpace; cmsUInt32Number dwFlags = 0; cmsUInt32Number EmbedLen; cmsUInt8Number* EmbedBuffer; cmsSetAdaptationSta...
false
false
false
false
false
0
RenderOverlay(vtkViewport *viewport) { int i, renderedSomething=0; // Everything is built, just have to render if (!this->AxisHasZeroLength) { if( this->Use2DMode == 1 ) { renderedSomething += this->TitleActor2D->RenderOverlay(viewport); } if (this->LabelVisibility) { ...
false
false
false
false
false
0
initFromAPInt(const fltSemantics* Sem, const APInt& api) { if (Sem == &IEEEhalf) return initFromHalfAPInt(api); if (Sem == &IEEEsingle) return initFromFloatAPInt(api); if (Sem == &IEEEdouble) return initFromDoubleAPInt(api); if (Sem == &x87DoubleExtended) return initFromF80LongDoubleAPInt(api); ...
false
false
false
false
false
0
tt_s2_4600_read_status(struct dvb_frontend *fe, enum fe_status *status) { struct dvb_usb_adapter *d = (struct dvb_usb_adapter *)(fe->dvb->priv); struct dw2102_state *st = (struct dw2102_state *)d->dev->priv; int ret; ret = st->fe_read_status(fe, status); /* resync slave fifo when signal change from unloc...
false
false
false
false
false
0