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
AddFromFile(const File &file) { Tag sopclass(0x8,0x16); DataSet const & ds = file.GetDataSet(); if( ds.FindDataElement( sopclass ) ) { // by design gdcmscu will not send/retrieve a dataset that cannot be read // this should not be too restricitive const TransferSyntax &fmits = file.GetHeader().Get...
false
false
false
false
false
0
iom_issuesemerr(const char *message,IOM_OID bid,IOM_OID oid) { ErrorUtility::init(); IomObject obj(dbgnew iom_object()); XMLString::binToText( ErrorUtility::errc++,ErrorUtility::itoabuf,sizeof(ErrorUtility::itoabuf)-1,10); obj->setOid(ErrorUtility::itoabuf); obj->setTag(ParserHandler::getTagId(X("iomerr04.errors.S...
false
false
false
false
false
0
mgsl_isr_misc( struct mgsl_struct *info ) { u16 status = usc_InReg( info, MISR ); if ( debug_level >= DEBUG_LEVEL_ISR ) printk("%s(%d):mgsl_isr_misc status=%04X\n", __FILE__,__LINE__,status); if ((status & MISCSTATUS_RCC_UNDERRUN) && (info->params.mode == MGSL_MODE_HDLC)) { /* turn off receiver an...
false
false
false
false
false
0
opt_search(CMD_DESCRIPTION_TYPE *p_table, char *p_opt) { CMD_DESCRIPTION_TYPE *it = p_table; while( it->p_option != NULL) { if (strcmp(p_opt, it->p_option) == 0) { return it; } ++it; } return NULL; }
false
false
false
false
false
0
update_address_mem (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return #line 745 "../../src/gcc/config/rs6000/predicates.md" ((MEM_P (op) && (GET_CODE (XEXP (op, 0)) == PRE_INC || GET_CODE (XEXP (op, 0)) == PRE_DEC || GET_CODE (XEXP (op, 0)) == PRE_MODIFY))); }
false
false
false
false
false
0
attempt_change (struct mem_inc_info *mii, rtx new_addr) { rtx mem = *mii->mem_loc; rtx new_mem; /* Jump thru a lot of hoops to keep the attributes up to date. We do not want to call one of the change address variants that take an offset even though we know the offset in many cases. These assume ...
false
false
false
false
false
0
add_all_devices (GsdCursorManager *manager, GdkDevice *exception, GError **error) { GdkDeviceManager *device_manager; GList *devices, *l; gboolean ret = TRUE; device_manager = gdk_display_get_device_manager (gdk_display_get_default ()); ...
false
false
false
false
false
0
in_rootns(dns_rdataset_t *rootns, dns_name_t *name) { isc_result_t result; dns_rdata_t rdata = DNS_RDATA_INIT; dns_rdata_ns_t ns; if (!dns_rdataset_isassociated(rootns)) return (ISC_R_NOTFOUND); result = dns_rdataset_first(rootns); while (result == ISC_R_SUCCESS) { dns_rdataset_current(rootns, &rdata); re...
false
false
false
false
false
0
insert (char *buff, int tag, stringtable *tb) { TaggedString *ts; unsigned long h = hash(buff, tag); int i; int j = -1; if ((Long)tb->nuse*3 >= (Long)tb->size*2) { if (!initialized) initialize(); grow(tb); } i = h%tb->size; while ((ts = tb->hash[i]) != NULL) { if (ts == &EMPTY) ...
false
false
false
false
false
0
ExpandIntRes_AssertSext(SDNode *N, SDValue &Lo, SDValue &Hi) { DebugLoc dl = N->getDebugLoc(); GetExpandedInteger(N->getOperand(0), Lo, Hi); EVT NVT = Lo.getValueType(); EVT EVT = cast<VTSDNode>(N->getOperand(1))->getVT(); unsigned NVTBits = NVT.getSizeInBits(); ...
false
false
false
false
false
0
gwy_app_data_browser_add_watch(GList **watchers, GwyAppDataWatchFunc function, gpointer user_data) { GwyAppWatcherData *wdata; g_return_val_if_fail(function, 0); wdata = g_new(GwyAppWatcherData, 1); wdata->function = function; wdata->use...
false
false
false
false
false
0
FindLinks(lemp) struct lemon *lemp; { int i; struct config *cfp, *other; struct state *stp; struct plink *plp; /* Housekeeping detail: ** Add to every propagate link a pointer back to the state to ** which the link is attached. */ for(i=0; i<lemp->nstate; i++){ stp = lemp->sorted[i]; for(cfp=st...
false
false
false
false
true
1
make_another_bb(const int snumber, const IntSet decomp_subgraph, Statement** s_array) { int i; Statement *tail = NULL; Statement *stm; Block *bb = alloc_block(); Pe_statement *pes = alloc_pe_statement(); bb->kind = BB; bb->usage = USE_BLOCK; bb->pre_...
false
false
false
false
false
0
isZero(const Integer& a) { return ! mpz_cmp_ui((mpz_srcptr)&(a.gmp_rep), 0UL); // return (mpz_sgn((mpz_srcptr)&(a.gmp_rep)) == 0) ; // BB which one is faster ? }
false
false
false
false
false
0
write_state_string_option (options_p current) { fprintf (state_file, "string "); if (current->info.string != NULL) write_state_a_string (current->info.string); else fprintf (state_file, " nil "); }
false
false
false
false
false
0
efi_low_alloc(efi_system_table_t *sys_table_arg, unsigned long size, unsigned long align, unsigned long *addr) { unsigned long map_size, desc_size; efi_memory_desc_t *map; efi_status_t status; unsigned long nr_pages; int i; status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size, ...
false
false
false
false
false
0
LOG_FileWrite(LOG_FileID id, const char *format, ...) { va_list other_args; int banner; if (id < 0 || id >= n_filelogs || !logfiles[id].name) return; if (!logfiles[id].file) { char filename[512]; if (snprintf(filename, sizeof(filename), "%s/%s.log", CNF_GetLogDir(), logfiles[id].name) >...
false
false
false
false
true
1
gwy_serializable_get_size(GObject *serializable) { gsize (*get_size_method)(GObject*); const gchar *type_name; gsize size; g_return_val_if_fail(serializable, 0); g_return_val_if_fail(GWY_IS_SERIALIZABLE(serializable), 0); get_size_method = GWY_SERIALIZABLE_GET_IFACE(serializable)->get_size; ...
false
false
false
false
false
0
nfsd4_decode_commit(struct nfsd4_compoundargs *argp, struct nfsd4_commit *commit) { DECODE_HEAD; READ_BUF(12); p = xdr_decode_hyper(p, &commit->co_offset); commit->co_count = be32_to_cpup(p++); DECODE_TAIL; }
false
false
false
false
false
0
tiff_compression_string(unsigned long compvalue) { char *compression; compression = NULLSTRING; switch(compvalue) { /* will be 0 only if compression tag does not appear */ case 0: compression = "unknown format"; break; case 1: compression = "uncompressed"; br...
false
false
false
false
false
0
sort_group(array_f *pdata, gint *group, int left, int right) { int i, last; if(left >= right) return; swap_group(pdata, group, left, (left+right)/2); last = left; for(i=left+1; i<=right; i++) if(group[i] < group[left]) swap_group(pdata, group, ++last,i); swap_gr...
false
false
false
false
false
0
skipAttributes(Token *t, Token **pt) { while (1) { switch (t->value) { case TOKconst: case TOKinvariant: case TOKimmutable: case TOKshared: case TOKwild: case TOKfinal: case TOKauto: case TOKscope: ...
false
false
false
false
false
0
out_watch(GIOChannel *source, GIOCondition condition, gpointer data) { GtkTextBuffer *buffer; GtkTextIter iter, iter2; GString *str; static gchar *carriage = NULL; gchar *file; gdouble fraction, done, total; if (condition & G_IO_IN) { buffer = gtk_text_view_get_buffer((GtkTextView*)data); if (carriage != N...
false
false
false
false
false
0
load_all_job_state(void) { int data_allocated, data_read = 0, error_code = SLURM_SUCCESS; uint32_t data_size = 0; int state_fd, job_cnt = 0; char *data = NULL, *state_file; Buf buffer; time_t buf_time; uint32_t saved_job_id; char *ver_str = NULL; uint32_t ver_str_len; uint16_t protocol_version = (uint16_t)NO_...
false
true
true
false
true
1
xml_print_net_etcp_stats(struct activity *a, int curr, int tab, unsigned long long itv) { struct stats_net_etcp *snetc = (struct stats_net_etcp *) a->buf[curr], *snetp = (struct stats_net_etcp *) a->buf[!curr]; if (!IS_SELECTED(a->options) || (a->nr <= 0)) goto close_xml_markup; xml_markup_network(tab...
false
false
false
false
false
0
sha1_update(struct shash_desc *desc, const u8 *data, unsigned int len, sha1_transform_fn *sha1_xform) { struct sha1_state *sctx = shash_desc_ctx(desc); if (!irq_fpu_usable() || (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) return crypto_sha1_update(desc, data, len); /* make sure casting t...
false
false
false
false
false
0
user_welcome(struct Client *source_p) { #if defined(__TIME__) && defined(__DATE__) static const char built_date[] = __DATE__ " at " __TIME__; #else static const char built_date[] = "unknown"; #endif #ifdef HAVE_LIBCRYPTO if (source_p->localClient->fd.ssl != NULL) sendto_one(source_p, ":%s NOTICE %s :*** Conn...
false
false
false
false
false
0
ibus_array_engine_process_key_event (IBusEngine *engine, guint keyval, guint keycode, guint modifiers) { IBusText *text; IBusArrayEngine *arrayeng = (IBusArrayEngine *)engine; ...
false
false
false
false
false
0
sftk_MACConstantTime_EndHash(void *pctx, void *out, unsigned int *outLength, unsigned int maxLength) { const sftk_MACConstantTimeCtx *ctx = (sftk_MACConstantTimeCtx *) pctx; unsigned int toCopy = ctx->hash->length; if (toCopy > maxLength) { toCopy = maxLength; } memcpy(out, ctx->mac, toCopy...
false
false
false
false
false
0
dbmap_sdbm_strip_superblock(DBM *sdbm) { datum key; g_assert(!sdbm_rdonly(sdbm)); key.dptr = deconstify_pointer(dbmap_superkey); key.dsize = CONST_STRLEN(dbmap_superkey); if (0 == sdbm_delete(sdbm, key)) return TRUE; g_warning("SDBM \"%s\": cannot strip superblock: %m", sdbm_name(sdbm)); return FALSE; }
false
false
false
false
false
0
getbuf() { int p = 0; int o = 0; do { if (inc == 0) inbits = fread(in, 1, BUFSIZE, fin) * 8; for (; inc < inbits; inc++) { int b = (in[inc / 8] & (1 << (7 - (inc % 8)))) ? 1 : 0; int oldp = p; p = dec[p].v[b]; if (p == 0) { if (...
false
false
false
false
false
0
vsc_read(adapter_t *adapter, u32 addr, u32 *val) { u32 status, vlo, vhi; int i; spin_lock_bh(&adapter->mac_lock); t1_tpi_read(adapter, (addr << 2) + 4, &vlo); i = 0; do { t1_tpi_read(adapter, (REG_LOCAL_STATUS << 2) + 4, &vlo); t1_tpi_read(adapter, REG_LOCAL_STATUS << 2, &vhi); status = (vhi << 16) | vlo; ...
false
false
false
false
false
0
recoder_readRE(AjPList *relist, const AjPStr enzymes) { EmbPPatRestrict rptr = NULL; /* store RE info */ AjPFile fin = NULL; /* file pointer to RE file data */ AjPStr refilename = NULL; /* .. & string for the filename */ register ajint RStotal = 0; /* counts no of RE */ PRinfo rinfo = NULL; ...
false
false
false
false
false
0
SetTable(vtkUnsignedCharArray *table) { if (table != this->Table && table != NULL) { // Check for incorrect arrays. if (table->GetNumberOfComponents() != this->Table->GetNumberOfComponents()) { vtkErrorMacro(<<"Number of components in given table (" << table->GetNumberOfCo...
false
false
false
false
false
0
scoreLetters(int seq1, int seq2) { if(!alignToScore) { return 0; } const unsigned numColsSeq1 = alignToScore->getSeqLength(seq1); const unsigned numColsSeq2 = alignToScore->getSeqLength(seq2); if(numColsSeq1 != numColsSeq2) { return 0; // The sequences should be the same...
false
false
false
false
false
0
got_chunk (SoupMessage *msg, SoupBuffer *chunk, gpointer data) { gboolean should_accumulate = GPOINTER_TO_INT (data); debug_printf (2, " got-chunk\n"); g_object_set_data (G_OBJECT (msg), "got-chunk", GINT_TO_POINTER (TRUE)); if (!should_accumulate) { if (!chunk_data) chunk_data = soup_message_body_new (); ...
false
false
false
false
false
0
body(FILE *ifp, FILE *ofp) { char line[10000]; char *space = " "; char *p; while(fgets(line, sizeof(line), ifp) != NULL){ if(!strncmp(line, "====", 4)){ p = strtok(line, space); if(p){ p = strtok(NULL, space); if(p){ if(isalpha(*p)) fprintf(ofp, "extern char *%s[];\n", p);...
false
false
false
false
false
0
_transport_sas_node_find_by_sas_address(struct MPT3SAS_ADAPTER *ioc, u64 sas_address) { if (ioc->sas_hba.sas_address == sas_address) return &ioc->sas_hba; else return mpt3sas_scsih_expander_find_by_sas_address(ioc, sas_address); }
false
false
false
false
false
0
size_allocate_cb (glView *view, GtkAllocation *allocation) { GtkAdjustment *hadjustment; GtkAdjustment *vadjustment; gl_debug (DEBUG_VIEW, "START"); hadjustment = gtk_layout_get_hadjustment(GTK_LAYOUT (view->canvas)); vadjustment = gtk_layout_get_vadjustment...
false
false
false
false
false
0
sig_telephone_send_ctrl( const struct sig_telephone *b, void *s, enum sig_telephone_protocol proto ) { unsigned int nr; for (nr = 0; ; nr++) { if (nr == b->nmembers) { return; } if (b->member[nr].s == s) { continue; } b->member[nr].f->recv_ctrl(b->member[nr].s, proto); } }
false
false
false
false
false
0
nautilus_window_slot_emit_location_change (NautilusWindowSlot *slot, GFile *from, GFile *to) { char *from_uri = NULL; char *to_uri = NULL; if (from != NULL) from_uri = g_file_get_uri (from); if (to != NULL) to_uri = g_file_get_uri (to); g_signal_emit_by_name (slot, "location-changed", from_uri...
false
false
false
false
false
0
get_pointer(t_get *x, t_gpointer *gp) { int nitems = x->x_nout, i; t_symbol *templatesym = x->x_templatesym; t_template *template = template_findbyname(templatesym); t_gstub *gs = gp->gp_stub; t_word *vec; t_getvariable *vp; if (!template) { pd_error(x, "get: couldn't find templ...
false
false
false
false
false
0
HTMLFillData(li, env, p) HTMLInfo li; HTMLEnv env; MLElement p; { char *s, *cp, *lastcp; bool found_space; char *text; size_t len; MLGetText(p, &text, &len); if (text == NULL) return; if (li->formatted) HTMLPreformatted(li, env, text, len); else { for (lastcp = text + len, cp = text; cp < lastcp...
false
false
false
false
false
0
addToOutput2(OutputState** state, const char* fileName, void* buffer, const size_t bufferSize, char* tmpFileName) { char* fileNamePath; char* fileNameNoPath; fileNamePath = (char*) malloc(sizeof(char) * (strlen(fileName) + 1)); strcpy(fileNamePath, fileName); fileNameNoPath = fileNamePath + strlen(fileNamePath); ...
false
false
false
false
false
0
remote_window_new(int id, const char *target) { window_t *w; if ((w = window_exist(id))) { debug_error("remote_window_new(%d) already registered!\n", id); /* XXX */ return NULL; } return window_new_c(target, NULL, id); /* session == NULL, XXX */ }
false
false
false
false
false
0
convert_vec_index_to_swizzle(ir_rvalue *ir) { ir_dereference_array *deref = ir->as_dereference_array(); ir_constant *ir_constant; if (!deref) return ir; if (deref->array->type->is_matrix() || deref->array->type->is_array()) return ir; assert(deref->array_index->type->base_type == GLSL_TYPE...
false
false
false
false
false
0
opt_find_test_conds( /*================*/ sel_node_t* sel_node, /*!< in: select node */ ulint i, /*!< in: ith table in the join */ func_node_t* cond) /*!< in: conjunction of search conditions or NULL */ { func_node_t* new_cond; ulint class; plan_t* plan; if (cond == NULL) { return; } if (cond->f...
false
false
false
false
false
0
is_potential_div_constraint(isl_int *c, int offset, int d, int total) { if (isl_int_is_zero(c[offset + d])) return 0; if (isl_int_is_one(c[offset + d])) return 0; if (isl_int_is_negone(c[offset + d])) return 0; if (isl_seq_first_non_zero(c + offset, d) != -1) return 0; if (isl_seq_first_non_zero(c + offset...
false
false
false
false
false
0
parse_move_1(const std::string & str) const { Move mov = do_parse_move_1(str); if (mov && is_valid_move(mov) && is_legal_move(mov)) { return mov; } else { return NO_MOVE; } }
false
false
false
false
false
0
vcc_AddRef(struct vcc *tl, const struct token *t, enum symkind kind) { struct symbol *sym; sym = VCC_GetSymbolTok(tl, t, kind); AN(sym); sym->nref++; }
false
false
false
true
false
1
conf_find_time(char *name) { int i; for (i = 0; ircd_times[i].name; i++) { if (strcasecmp(ircd_times[i].name, name) == 0 || (ircd_times[i].plural && strcasecmp(ircd_times[i].plural, name) == 0)) return ircd_times[i].val; } return 0; }
false
false
false
false
false
0
tb_eeprom_active(struct tb_switch *sw, bool enable) { struct tb_eeprom_ctl ctl; int res = tb_eeprom_ctl_read(sw, &ctl); if (res) return res; if (enable) { ctl.access_high = 1; res = tb_eeprom_ctl_write(sw, &ctl); if (res) return res; ctl.access_low = 0; return tb_eeprom_ctl_write(sw, &ctl); } else {...
false
false
false
false
false
0
kmalloc_int (uint32_t sz, int align, uint32_t *phys) { if (kheap != 0) { void *addr = alloc (sz, (uint8_t) align, kheap); if (phys != 0) { struct page_t *page = get_page ((uint32_t) addr, 0, kernel_directory); *phys = page->frame * 0x1000 + ((uint32_t)addr & 0xFFF...
false
false
false
false
false
0
names_of_file(const char *zUuid){ Stmt q; Blob out; const char *zSep = ""; db_prepare(&q, "SELECT DISTINCT filename.name FROM mlink, filename" " WHERE mlink.fid=(SELECT rid FROM blob WHERE uuid='%s')" " AND filename.fnid=mlink.fnid", zUuid ); blob_zero(&out); while( db_step(&q)==SQLITE_R...
false
false
false
false
false
0
cavan_inotify_register_watch(struct cavan_inotify_descriptor *desc, const char *pathname, uint32_t mask, void *data) { int wd; struct cavan_inotify_watch *p; if (desc->watch_count >= NELEM(desc->watchs)) { error_msg("Too match watch"); return -EFAULT; } if (pathname == NULL || *pathname == 0) { error_msg...
false
false
false
false
false
0
msgno_flush_raw(MSGNO_S *msgs, long int rawno) { long i, old_sorted = 0L; int shift = 0; if(!msgs) return; /* blast rawno from sort array */ for(i = 1L; i <= msgs->max_msgno; i++){ if(msgs->sort[i] == rawno){ old_sorted = i; shift++; } if(shift && i < msgs->max_msgno) msgs-...
true
true
false
false
false
1
Emit(MCStreamer &Streamer, bool UsingCFI, bool IsEH) { MCContext &Context = Streamer.getContext(); MCObjectFileInfo *MOFI = const_cast<MCObjectFileInfo*>(Context.getObjectFileInfo()); FrameEmitterImpl Emitter(UsingCFI, IsEH); ArrayRef<MCDwarfFram...
false
false
false
false
false
0
markCapabilities (evac_fn evac, void *user) { nat n; for (n = 0; n < n_capabilities; n++) { markCapability(evac, user, &capabilities[n], rtsFalse); } }
false
false
false
false
false
0
read_stdin(char **string) { char *c = malloc(100); if (!c) { fprintf(stderr, _("Allocation failure for string from stdin\n")); exit(1); } if (!fgets(c, 100, stdin)) { perror(_("fgets (stdin)")); exit(1); } *string = c; c = strchr(*string, '\n'); if (c) *c = 0; }
false
false
false
false
false
0
originalBound(int iSequence, double theta, const double * lowerChange, const double * upperChange) { if (getFakeBound(iSequence) != noFake) { numberFake_--; setFakeBound(iSequence, noFake); if (iSequence >= numberColumns_) { // rows i...
false
false
false
false
false
0
_on_cmd_adapter_register_agent(__UNUSED__ char *cmd, char *args) { char *next_args, *path, *cap; E_Bluez_Element *element = _element_from_args(args, &next_args); if (!element) return ECORE_CALLBACK_RENEW; if (!next_args) { fputs("ERROR: missing parameters name, type and value.\n", stderr); ret...
false
false
false
false
false
0
main( int argc, char * argv[] ) { uint8_t pktbuf[N2N_PKT_BUF_SIZE]; n2n_trans_op_t transop_null; n2n_common_t cmn; n2n_PACKET_t pkt; n2n_community_t c; struct timeval t1; struct timeval t2; size_t i; size_t n; size_t idx; size_t rem; ssize_t nw; ssize_t tdiff; ...
false
true
false
false
false
1
lola_pcm_close(struct snd_pcm_substream *substream) { struct lola *chip = snd_pcm_substream_chip(substream); struct lola_stream *str = lola_get_stream(substream); mutex_lock(&chip->open_mutex); if (str->substream == substream) { str->substream = NULL; str->opened = 0; } if (--chip->ref_count_rate == 0) { /...
false
false
false
false
false
0
set(ParmString mode, SpellerImpl * sp) { edit_distance_weights.del1 = 95; edit_distance_weights.del2 = 95; edit_distance_weights.swap = 90; edit_distance_weights.sub = 100; edit_distance_weights.similar = 10; edit_distance_weights.max = 100; edit_distance_weights.min = 90; normal_...
false
false
false
false
false
0
ldbm_back_ok_to_dump(const char *dn, char **include, char **exclude) { int i = 0; if (!(include || exclude)) return(1); if (exclude) { i = 0; while (exclude[i]) { if (slapi_dn_issuffix(dn,exclude[i])) return(0); i++; } } i...
false
false
false
false
false
0
cisco_stop(struct net_device *dev) { hdlc_device *hdlc = dev_to_hdlc(dev); struct cisco_state *st = state(hdlc); unsigned long flags; del_timer_sync(&st->timer); spin_lock_irqsave(&st->lock, flags); netif_dormant_on(dev); st->up = st->txseq = 0; spin_unlock_irqrestore(&st->lock, flags); }
false
false
false
false
false
0
paste_link (GnmPasteTarget const *pt, int top, int left, GnmCellRegion const *cr) { GnmCellPos pos; GnmCellRef source_cell_ref; int x, y; /* Not possible to link to arbitrary (non gnumeric) sources yet. */ /* TODO : eventually support interprocess gnumeric links */ if (cr->origin_sheet == NULL) return; ...
false
false
false
false
false
0
caml_channel_descriptor(value vchannel) { int fd = Channel(vchannel)->fd; if (fd == -1) { errno = EBADF; caml_sys_error(NO_ARG); } return Val_int(fd); }
false
false
false
false
false
0
enum_netdev_default_gids(struct ib_device *ib_dev, u8 port, struct net_device *event_ndev, struct net_device *rdma_ndev) { rcu_read_lock(); if (!rdma_ndev || ((rdma_ndev != event_ndev && !is_upper_dev_rcu(rdma_ndev, event_ndev)) || is_eth_active_slave_of_bonding_rcu(rdma_ndev, ...
false
false
false
false
false
0
test_repo_iterator__workdir(void) { git_iterator *i; g_repo = cl_git_sandbox_init("icase"); /* auto expand with no tree entries */ cl_git_pass(git_iterator_for_workdir(&i, g_repo, 0, NULL, NULL)); expect_iterator_items(i, 20, NULL, 20, NULL); git_iterator_free(i); /* auto expand with tree entries */ cl_git_p...
false
false
false
false
false
0
terminal_search_dialog_new (GtkWindow *parent) { GtkWidget *dialog; TerminalSearchDialogPrivate *priv; GtkListStore *store; GtkEntryCompletion *completion; priv = g_new0 (TerminalSearchDialogPrivate, 1); if (!terminal_util_load_builder_file ("find-dialog.ui", "find-dialog", &dialog, "search-la...
false
false
false
false
false
0
lbranch(backamount) int backamount; { mcount += defsize + 0x1; segadj(); if (pass2) { reldata(); if (!(lastexp.data & (RELBIT | UNDBIT))) { lastexp.offset = lastexp.offset - lc - lcjump; if ( last_pass<2 && backamount != 0x0 && !(lastexp.data & IMPBIT) && lastexp.offset + backam...
false
false
false
false
false
0
ACL_ListGetNext(ACLListHandle_t *acl_list, ACLListEnum_t *acl_enum) { ACLWrapper_t *wrapper = (ACLWrapper_t *)(*acl_enum); ACLHandle_t *acl = 0; if (wrapper) { wrapper = wrapper->wrap_next; *acl_enum = (ACLListEnum_t)wrapper; if (wrapper) acl = wrapper->acl; } return acl;...
false
false
false
false
false
0
fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) { if ((pattrib->encrypt > 0) && !pattrib->bswenc) { switch (pattrib->encrypt) { /* SEC_TYPE */ case WLAN_CIPHER_SUITE_WEP40: case WLAN_CIPHER_SUITE_WEP104: ptxdesc->txdw1 |= cpu_to_le32((0x01<<22)&0x00c00000); break; case WLAN_CIP...
false
false
false
false
false
0
gfs_source_diffusion_explicit_write (GtsObject * o, FILE * fp) { (* GTS_OBJECT_CLASS (gfs_source_diffusion_explicit_class ())->parent_class->write) (o, fp); GfsSourceDiffusionExplicit * s = GFS_SOURCE_DIFFUSION_EXPLICIT (o); if (s->phi != GFS_SOURCE_SCALAR (s)->v) fprintf (fp, " %s", s->phi->name); }
false
false
false
false
false
0
rtsp_parse_range_npt(const char *p, int64_t *start, int64_t *end) { char buf[256]; skip_spaces(&p); if (!av_stristart(p, "npt=", &p)) return; *start = AV_NOPTS_VALUE; *end = AV_NOPTS_VALUE; get_word_sep(buf, sizeof(buf), "-", &p); *start = parse_date(buf, 1); if (*p == '-') { ...
false
false
false
false
false
0
snd_seq_midisynth_remove(struct device *_dev) { struct snd_seq_device *dev = to_seq_dev(_dev); struct seq_midisynth_client *client; struct seq_midisynth *msynth; struct snd_card *card = dev->card; int device = dev->device, p, ports; mutex_lock(&register_mutex); client = synths[card->number]; if (client == NUL...
false
false
false
false
false
0
fl_set_folder( FL_OBJECT * ob, FL_FORM * form ) { FLI_TABFOLDER_SPEC *sp; int i, done; if ( ! IsFolderClass( ob ) ) { M_err( "fl_set_folder", "%s is not tabfolder", ob ? ob->label : "null" ); return; } sp = ob->spec; for ( done = i = ...
false
false
false
false
false
0
error( int err, const char* text ) { m_hadError = true; m_err = err; m_errText = text; m_loading = false; for (QHashIterator<CachedObjectClient*,CachedObjectClient*> it( m_clients ); it.hasNext();) it.next().value()->error( m_err, m_errText ); }
false
false
false
false
false
0
on_char_added (struct SCNotification* nt, ScintillaObject* scintilla, presage_t presage) { g_print ("on_char_added()\n"); g_print ("char: %c\n", nt->ch); /* if added char is an autopunctuation char */ if (strchr (glob_autopunctuation_chars, nt->ch)) { g_print ("autopunctuatio...
false
false
false
false
false
0
removeThorns(char *buffer, int count) { int writep = 0; int readp = 0; int removed = 0; while (readp != count) { char ch = buffer[readp++]; if (ch == (char)0xFE) removed++; else buffer[writep++] = ch; } return removed; }
false
false
false
false
false
0
sci_remote_device_event_handler(struct isci_remote_device *idev, u32 event_code) { enum sci_status status; struct sci_base_state_machine *sm = &idev->sm; enum sci_remote_device_states state = sm->current_state_id; switch (scu_get_event_type(event_code)) { case SCU_EVENT_TYPE_RNC_OPS_MISC: case SCU_EVE...
false
false
false
false
false
0
sfvt_define(vartable_t *table, char *name, char *value) { char *buf; int len; sfip_var_t *ipret = NULL; SFIP_RET ret; if(!name || !value) return SFIP_ARG_ERR; len = strlen(name) + strlen(value) + 2; if((buf = (char*)malloc(len)) == NULL) { return SFIP_FAILURE; } Snort...
false
false
false
false
false
0
down(unsigned char code) { eingabe(&d_v, code-156); if (d_v > v_grenze_zeile) a_outimage(); }
false
false
false
false
false
0
btreeGetBlockN(AjPBtcache cache, unsigned char *buf, ajulong numkey) { ajulong blockno = 0UL; ajuint m; unsigned char *pptr = NULL; unsigned char *kptr = NULL; ajuint i; ajulong kval = 0UL; GBT_NKEYS(buf,&m); if(!m) ajFatal("btreeGetBlockN: No keys ...
false
false
false
false
false
0
c_cpp_builtins (cpp_reader *pfile) { /* -undef turns off target-specific built-ins. */ if (flag_undef) return; define__GNUC__ (); /* For stddef.h. They require macros defined in c-common.c. */ c_stddef_cpp_builtins (); if (c_dialect_cxx ()) { if (SUPPORTS_ONE_ONLY) cpp_define (pfile, "_...
false
false
false
false
false
0
lookup_spec_function (name) const char *name; { static const struct spec_function * const spec_function_tables[] = { static_spec_functions, lang_specific_spec_functions, }; const struct spec_function *sf; unsigned int i; for (i = 0; i < ARRAY_SIZE (spec_function_tables); i++) { for (...
false
false
false
false
false
0
reset() { if (Assembler) Assembler->reset(); CurInsertionPoint = MCSection::iterator(); EmitEHFrame = true; EmitDebugFrame = false; PendingLabels.clear(); MCStreamer::reset(); }
false
false
false
false
false
0
anetTcpAccept(char *err, int s, char *ip, size_t ip_len, int *port) { int fd; struct sockaddr_storage sa; socklen_t salen = sizeof(sa); if ((fd = anetGenericAccept(err,s,(struct sockaddr*)&sa,&salen)) == -1) return ANET_ERR; if (sa.ss_family == AF_INET) { struct sockaddr_in *s = (st...
false
false
false
false
false
0
SortProc(const void *A, const void *B) { int *AA = (int *)A; int *BB = (int *)B; ELine *LA = SortBuffer->RLine(*AA); ELine *LB = SortBuffer->RLine(*BB); int rc; if (SortMinCol == -1) { int lA = LA->Count; int lB = LB->Count; if (BFI(SortBuffer, BFI_MatchCase) == 1) ...
false
false
false
false
false
0
test_gcontact_calendar_error_handling (void) { GDataGContactCalendar *calendar; GError *error = NULL; #define TEST_XML_ERROR_HANDLING(x) calendar = GDATA_GCONTACT_CALENDAR (gdata_parsable_new_from_xml (GDATA_TYPE_GCONTACT_CALENDAR,\ "<gContact:calendarLink xmlns:gContact='http://schemas.google.com/contact/2008' "\...
false
false
false
false
false
0
git_iterator_for_tree_range( git_iterator **iter, git_repository *repo, git_tree *tree, const char *start, const char *end) { int error; tree_iterator *ti; if (tree == NULL) return git_iterator_for_nothing(iter); ITERATOR_BASE_INIT(ti, tree, TREE); ti->repo = repo; ti->stack = ti->tail = tree_iterator_...
false
false
false
false
false
0
addDelta(DIE *Die, unsigned Attribute, unsigned Form, const MCSymbol *Hi, const MCSymbol *Lo) { DIEValue *Value = new (DIEValueAllocator) DIEDelta(Hi, Lo); Die->addValue(Attribute, Form, Value); }
false
false
false
false
false
0
rel2abspath_ext( char *relpath, char *cwd ) { char abspath[ MAXPATHLEN + 1 ]; char *retpath = NULL; #if defined( _WIN32 ) CHAR szDrive[_MAX_DRIVE]; CHAR szDir[_MAX_DIR]; CHAR szFname[_MAX_FNAME]; CHAR szExt[_MAX_EXT]; #endif if ( relpath == NULL ) { return NULL; } #if defined( _WI...
true
true
true
false
false
1
cmd_fetch(int argc, const char **argv, const char *prefix) { int i; struct string_list list = STRING_LIST_INIT_NODUP; struct remote *remote; int result = 0; packet_trace_identity("fetch"); /* Record the command line for the reflog */ strbuf_addstr(&default_rla, "fetch"); for (i = 1; i < argc; i++) strbuf_ad...
false
false
false
false
false
0
df_add_refs_to_table (unsigned int offset, struct df_ref_info *ref_info, df_ref *ref_vec) { while (*ref_vec) { df_ref ref = *ref_vec; if ((!(df->changeable_flags & DF_NO_HARD_REGS)) || (DF_REF_REGNO (ref) >= FIRST_PSEUDO_REGISTER)) { ref_info->refs[offset] = ref; DF_REF_ID (*...
false
false
false
false
false
0
fbdev_ioctl_call_handler( int caller, int call_arg, void *call_ptr, void *ctx, unsigned int serial, int *ret_val ) { int ret; c...
false
false
false
false
false
0
__wa_xfer_is_done(struct wa_xfer *xfer) { struct device *dev = &xfer->wa->usb_iface->dev; unsigned result, cnt; struct wa_seg *seg; struct urb *urb = xfer->urb; unsigned found_short = 0; result = xfer->segs_done == xfer->segs_submitted; if (result == 0) goto out; urb->actual_length = 0; for (cnt = 0; cnt < ...
false
false
false
false
false
0
insert_equation(CloogDomain *domain, CloogConstraint *upper, CloogConstraint *lower, int level, struct clast_stmt ***next, CloogInfos *infos) { struct clast_expr *e; struct clast_assignment *ass; if (!infos->options->otl) return insert_equation_as_loop(do...
false
false
false
false
false
0
shutdown() { SE_LOG_DEBUG(NULL, "D-Bus transport: shut down (old state: %s, %s)", SessionCommon::ConnectionStateToString(m_state).c_str(), m_error.c_str()); if (m_state == SessionCommon::PROCESSING) { m_state = SessionCommon::FINAL; m_helper.emitShutdown(); ...
false
false
false
false
false
0