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
cib_process_erase(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, xmlNode * existing_cib, xmlNode ** result_cib, xmlNode ** answer) { int result = pcmk_ok; crm_trace("Processing \"%s\" event", op); *answer = NULL; free_xml(*result_cib); *result_ci...
false
false
false
false
false
0
f15h_mc0_mce(u16 ec, u8 xec) { bool ret = true; if (MEM_ERROR(ec)) { switch (xec) { case 0x0: pr_cont("Data Array access error.\n"); break; case 0x1: pr_cont("UC error during a linefill from L2/NB.\n"); break; case 0x2: case 0x11: pr_cont("STQ access error.\n"); break; case 0x3: ...
false
false
false
false
false
0
iegDefTime(int *pdb, int date, int time, int taxisID) { int year, month, day, hour, minute, second; int timetype = -1; if ( taxisID != -1 ) timetype = taxisInqType(taxisID); if ( timetype == TAXIS_ABSOLUTE || timetype == TAXIS_RELATIVE ) { cdiDecodeDate(date, &year, &month, &day); cdiDecodeTim...
false
false
false
false
false
0
mem_init(struct mem_t *mem) /* memory space to initialize */ { int i; /* initialize the first level page table to all empty */ for (i=0; i < MEM_PTAB_SIZE; i++) mem->ptab[i] = NULL; mem->page_count = 0; mem->ptab_misses = 0; mem->ptab_accesses = 0; }
false
false
false
false
false
0
e_smart_monitor_layout_set(Evas_Object *obj, Evas_Object *layout) { E_Smart_Data *sd; /* try to get the objects smart data */ if (!(sd = evas_object_smart_data_get(obj))) return; /* set this monitor's layout reference */ sd->layout.obj = layout; /* get out if this is not a valid layout */ if (!l...
false
false
false
false
false
0
__ram_getno(dbc, key, rep, can_create) DBC *dbc; const DBT *key; db_recno_t *rep; int can_create; { DB *dbp; db_recno_t recno; dbp = dbc->dbp; /* If passed an empty DBT from Java, key->data may be NULL */ if (key->size != sizeof(db_recno_t)) { __db_errx(dbp->env, DB_STR("1001", "illegal record number...
false
false
false
false
false
0
move_left (Client * c) { if (c && c->isnotile) { if (c->screen->bigmr[c->screen->desktop]) c->x -= (DisplayWidth (dpy, c->screen->num) / 20); else c->x--; if (c->x < 0) c->x = 0; XMoveWindow (dpy, c->parent, c->x, c->y); sendconfig (c); } }
false
false
false
false
false
0
rgb_foreground(struct vc_data *vc, struct rgb c) { u8 hue, max = c.r; if (c.g > max) max = c.g; if (c.b > max) max = c.b; hue = (c.r > max/2 ? 4 : 0) | (c.g > max/2 ? 2 : 0) | (c.b > max/2 ? 1 : 0); if (hue == 7 && max <= 0x55) hue = 0, vc->vc_intensity = 2; else vc->vc_intensity = (max > 0xaa) ...
false
false
false
false
false
0
vf610_adc_read_data(struct vf610_adc *info) { int result; result = readl(info->regs + VF610_REG_ADC_R0); switch (info->adc_feature.res_mode) { case 8: result &= 0xFF; break; case 10: result &= 0x3FF; break; case 12: result &= 0xFFF; break; default: break; } return result; }
false
false
false
false
false
0
testgetAbsoluteFilename(io::IFileSystem* fs) { bool result=true; io::path apath = fs->getAbsolutePath("media"); io::path cwd = fs->getWorkingDirectory(); if (apath!=(cwd+"/media")) { logTestString("getAbsolutePath failed on existing dir %s\n", apath.c_str()); result = false; } apath = fs->getAbso...
false
false
false
false
false
0
parse_byte_size(const std::string& str, uint64_t& bytes, bool extended) { // E.g. "500,107,862,016" bytes or "80'060'424'192 bytes" or "80 026 361 856 bytes". // French locale inserts 0xA0 as a separator (non-breaking space, _not_ a valid utf8 char). // Added '.'-separated too, just in case. // Smartctl uses system...
false
false
false
false
false
0
flmBackgroundIndexGet( FFILE * pFile, FLMUINT uiIndexNum, FLMBOOL bMutexLocked, FLMUINT * puiThreadId) { RCODE rc = FERR_OK; IF_Thread * pThread; FLMUINT uiThreadId; F_BKGND_IX * pBackgroundIx = NULL; if( !bMutexLocked) { f_mutexLock( gv_FlmSysData.hShareMutex); } uiThreadId = 0; for( ;;) ...
false
false
false
false
false
0
dump_runq(void) { int i; ulong next, runqueue_head; long offs; int qlen, cnt; ulong *tlist; struct task_context *tc; if (VALID_MEMBER(rq_cfs)) { dump_CFS_runqueues(); return; } if (VALID_MEMBER(runqueue_arrays)) { dump_runqueues(); return; } offs = runqueue_head = 0; qlen = 1000; start_again: ...
false
false
false
false
true
1
adp5520_led_probe(struct platform_device *pdev) { struct adp5520_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); struct adp5520_led *led, *led_dat; struct led_info *cur_led; int ret, i; if (pdata == NULL) { dev_err(&pdev->dev, "missing platform data\n"); return -ENODEV; } if (pdata->num_leds > AD...
false
false
false
false
false
0
PerformPortalFetch(FetchStmt *stmt, DestReceiver *dest, char *completionTag) { Portal portal; long nprocessed; /* * Disallow empty-string cursor name (conflicts with protocol-level * unnamed portal). */ if (!stmt->portalname || stmt->portalname[0] == '\0') ereport(ERROR, (errcode(ERRCOD...
false
false
false
false
false
0
parseBitfield(SmallVectorImpl<MCParsedAsmOperand*> &Operands) { SMLoc S = Parser.getTok().getLoc(); // The bitfield descriptor is really two operands, the LSB and the width. if (Parser.getTok().isNot(AsmToken::Hash)) { Error(Parser.getTok().getLoc(), "'#' expected"); return MatchOperand_ParseFail; } P...
false
false
false
false
false
0
brasero_track_data_get_size (BraseroTrack *track, goffset *blocks, goffset *block_size) { BraseroTrackDataPrivate *priv; priv = BRASERO_TRACK_DATA_PRIVATE (track); if (*block_size) *block_size = 2048; if (*blocks) *blocks = priv->data_blocks; return BRASERO_BURN_OK; }
false
false
false
false
false
0
clickdl_load_requirement(String name, const Vector<ArchiveElement> *archive, ErrorHandler *errh) { ClickProvision *p = find_provision(name, 1); if (!p || p->loaded) return; ContextErrorHandler cerrh(errh, "While loading package %<%s%>:", name.c_str()); bool tmpdir_populated = false; #ifdef CLICK_TOOL...
false
false
false
false
false
0
crush_destroy(struct crush_map *map) { /* buckets */ if (map->buckets) { __s32 b; for (b = 0; b < map->max_buckets; b++) { if (map->buckets[b] == NULL) continue; crush_destroy_bucket(map->buckets[b]); } kfree(map->buckets); } /* rules */ if (map->rules) { __u32 b; for (b = 0; b < map->max_ru...
false
false
false
false
false
0
check_is_multi(const char *mapent) { const char *p = mapent; int multi = 0; int not_first_chunk = 0; if (!p) { logerr(MODPREFIX "unexpected NULL map entry pointer"); return 0; } if (*p == '"') p++; /* If first character is "/" it's a multi-mount */ if (*p == '/') return 1; while (*p) { p = skipsp...
false
false
false
false
false
0
rev_commit_locate_date (rev_ref *branch, time_t date) { rev_commit *commit; for (commit = branch->commit; commit; commit = commit->parent) { if (time_compare (commit->date, date) <= 0) return commit; } return NULL; }
false
false
false
false
false
0
au_update_figen(struct file *file) { atomic_set(&au_fi(file)->fi_generation, au_digen(file->f_path.dentry)); /* smp_mb(); */ /* atomic_set */ }
false
false
false
false
false
0
opclass_is_btree(Oid opclass) { HeapTuple tp; Form_pg_opclass cla_tup; bool result; tp = SearchSysCache(CLAOID, ObjectIdGetDatum(opclass), 0, 0, 0); if (!HeapTupleIsValid(tp)) elog(ERROR, "cache lookup failed for opclass %u", opclass); cla_tup = (Form_pg_opclass) GETSTRUCT(tp); result = (cla_tup...
false
false
false
true
false
1
qlcnic_83xx_poll_for_mbx_completion(struct qlcnic_adapter *adapter, struct qlcnic_cmd_args *cmd) { struct qlcnic_hardware_context *ahw = adapter->ahw; int opcode = LSW(cmd->req.arg[0]); unsigned long max_loops; max_loops = cmd->total_cmds * QLC_83XX_MBX_CMD_LOOP; for (; max_loops; max_loops--) { if (atom...
false
false
false
false
false
0
avatar_cache_tests_test_store_avatar_overwrite (AvatarCacheTests* self) { GLoadableIcon* _tmp0_ = NULL; GLoadableIcon* _tmp1_ = NULL; GLoadableIcon* avatar = NULL; GLoadableIcon* _tmp2_ = NULL; GLoadableIcon* _tmp3_ = NULL; #line 204 "/home/treitter/collabora/folks/tests/folks/avatar-cache.vala" g_return_if_fail ...
false
false
false
false
false
0
diff_print_oid_range(diff_print_info *pi, const git_diff_delta *delta) { git_buf *out = pi->buf; char start_oid[GIT_OID_HEXSZ+1], end_oid[GIT_OID_HEXSZ+1]; git_oid_tostr(start_oid, pi->oid_strlen, &delta->old_file.oid); git_oid_tostr(end_oid, pi->oid_strlen, &delta->new_file.oid); /* TODO: Match git diff more cl...
false
false
false
false
false
0
Conf_AcceptCommand(const char *line, bool & breakflag) { char cmd[MAX_LINE_LENGTH]; const char *args; const char *space = strchr(line, ' '); if (!space) { args = ""; } else { args = space + 1; } strlcpy(cmd, line, space-line+1); Configuration::strings_t::iterator s; Configuration::num...
false
false
false
false
false
0
recalculate_font_sizes(GtkTextTag *tag, gpointer imhtml) { if (strncmp(tag->name, "FONT SIZE ", 10) == 0) { GtkTextAttributes *attr = gtk_text_view_get_default_attributes(GTK_TEXT_VIEW(imhtml)); int size; size = strtol(tag->name + 10, NULL, 10); g_object_set(G_OBJECT(tag), "size", (gint) (pango_font_desc...
false
false
false
false
false
0
AddToPtrTable(JSContext *cx, JSPtrTable *table, const JSPtrTableInfo *info, void *ptr) { size_t count, capacity; void **array; count = table->count; capacity = PtrTableCapacity(count, info); if (count == capacity) { if (capacity < info->minCapacity) { JS_ASSERT(ca...
false
false
false
false
true
1
add_paths_to_joinrel(PlannerInfo *root, RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel, JoinType jointype, List *restrictlist) { List *mergeclause_list = NIL; /* * Find potential mergejoin clauses. We can skip this if we are not * interested in doing a mergejoin...
false
false
false
false
false
0
doUpdate() { ObserverLocker lock(&updateLockM); if (updateLockM == 1) update(); }
false
false
false
false
false
0
DecodeGPRwithAPSRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler::Success; if (RegNo == 15) { Inst.addOperand(MCOperand::createReg(ARM::APSR_NZCV)); return MCDisassembler::Success; } Check(S, DecodeGP...
false
false
false
false
false
0
UnpackWPGRaster(Image *image,int bpp) { int x, y, i; unsigned char bbuf, *BImgBuff, RunCount; long ldblk; x=0; y=0; ldblk=(long) ((bpp*image->columns+7)/8); BImgBuff=MagickAllocateMemory(unsigned char *,(size_t) ldblk); if(BImgBuff==NULL) return(-2); while(y<(long) ima...
false
false
false
false
false
0
exporthtml_process( ExportHtmlCtl *ctl, AddressCache *cache ) { ItemFolder *rootFolder; FILE *htmlFile; time_t tt; gchar *dsName; static gchar *title; gchar buf[512]; htmlFile = g_fopen( ctl->path, "wb" ); if( ! htmlFile ) { /* Cannot open file */ g_print( "Cannot open file for write\n" ); ctl->retVal =...
false
false
false
false
false
0
eap_sim_getchalans(VALUE_PAIR *vps, int chalno, struct eap_sim_server_state *ess) { VALUE_PAIR *vp; rad_assert(chalno >= 0 && chalno < 3); vp = pairfind(vps, ATTRIBUTE_EAP_SIM_RAND1+chalno, 0); if(vp == NULL) { /* bad, we can't find stuff! */ DEBUG2(" eap-sim can not find sim-challenge%d",chalno+1)...
false
false
false
false
false
0
copy_args_expanding_macros (int argc, char *argv[], char *av[], int max_ac) { int i, ac = 0, rc; char * arg; char * p; char env_name[50]; /* expand macros */ for (i = 0; i < argc; i++) { arg = argv[i]; if (strncmp (arg, "--", 2) != 0 || arg[2] == 0) { av[ac++] = arg; continue; } sprintf (env_...
true
true
false
false
true
1
SortAndPrune(PhraseDictionaryNodeSCFG &rootNode) { if (GetTableLimit()) { rootNode.Sort(GetTableLimit()); } }
false
false
false
false
false
0
input_ref (struct lto_input_block *ib, struct cgraph_node *refering_node, struct varpool_node *refering_varpool_node, VEC(cgraph_node_ptr, heap) *nodes, VEC(varpool_node_ptr, heap) *varpool_nodes) { struct cgraph_node *node = NULL; struct varpool_node *varpool_node = NULL; struct bitpack_d bp; e...
false
false
false
false
false
0
split_and_trim(char *str, char split_char) { int start = 0; unsigned int start_ind = 0; char c = -1; int i; for(i=0; i<split_result_num; i++) free(split_result_frags[i]); split_result_num = 0; while(c != 0) { c = str[start++]; if(c == split_char || c == 0) { ...
false
false
false
false
false
0
dessertSysifTable_container_init(netsnmp_container ** container_ptr_ptr, netsnmp_cache * cache) { DEBUGMSGTL(("verbose:dessertSysifTable:dessertSysifTable_container_init", "called\n")); dessert_debug("dessertSysifTable_container_load called"); if (NULL == container_ptr_ptr) ...
false
false
false
false
false
0
pdcnew_cable_detect(ide_hwif_t *hwif) { if (get_indexed_reg(hwif, 0x0b) & 0x04) return ATA_CBL_PATA40; else return ATA_CBL_PATA80; }
false
false
false
false
false
0
nfsd4_check_legacy_client(struct nfs4_client *clp) { int status; char dname[HEXDIR_LEN]; struct nfs4_client_reclaim *crp; struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); /* did we already find that this client is stable? */ if (test_bit(NFSD4_CLIENT_STABLE, &clp->cl_flags)) return 0; status = nfs4_...
false
false
false
false
false
0
add_lists(ITEM *s1, ITEM *s2) { ITEM *p, *p0; int i, n1, n2; n1 = count_items(s1); n2 = count_items(s2); p = p0 = (ITEM *)checked_alloc(n1+n2+1,4); for(i=0; i<n2; i++) *p++ = *(s2+i); for(i=0; i<n1; i++) *p++ = *(s1+i); *p = 0; mem_free(s1); mem_free(s2); return p0; }
false
false
false
true
false
1
Gal_pnl_get_params(unsigned long flags, PPnl_PanelParams pParam) { GAL_PNLPARAMS pStat; INIT_GAL(&pStat); pStat.dwSubfunction = GALFN_PNLGETPARAMS; direct_memcpy(&(pStat.PanelParams), pParam, sizeof(Pnl_PanelParams)); pStat.PanelParams.Flags = flags; if (ioctl(dfb_fbdev->fd, FBIOGAL_API, &pStat)) ...
false
false
false
false
false
0
DetachAll() // ---------------------------------------------------------------------------- { // delete all handlers LOGIT(wxT("cbDS:DetachAll - detaching all [%lu] targets"), static_cast<unsigned long>(m_WindowPtrs.GetCount()) ); // Detach from memorized windows and remove event handlers while( m_WindowPtrs...
false
false
false
false
false
0
static_ok (GtkWidget *widget, void *data) { gamgi_window *window = GAMGI_CAST_WINDOW data; GtkWidget *dialog = window->dialog0; GtkWidget* button; /********************************************* * modify data: execute global or local task * *********************************************/ button = (GtkWidget *) g_obje...
false
false
false
false
false
0
r8152b_init(struct r8152 *tp) { u32 ocp_data; if (test_bit(RTL8152_UNPLUG, &tp->flags)) return; r8152_aldps_en(tp, false); if (tp->version == RTL_VER_01) { ocp_data = ocp_read_word(tp, MCU_TYPE_PLA, PLA_LED_FEATURE); ocp_data &= ~LED_MODE_MASK; ocp_write_word(tp, MCU_TYPE_PLA, PLA_LED_FEATURE, ocp_data);...
false
false
false
false
false
0
get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) { int max; xmlNode *result = NULL; xmlXPathObjectPtr xpathObj = NULL; char *nodePath = NULL; char *matchNodePath = NULL; if (xpath == NULL) { return xml_obj; /* or return NULL? */ } xpathObj = xpath...
false
false
false
false
false
0
gst_pad_set_offset (GstPad * pad, gint64 offset) { PadEvent *ev; g_return_if_fail (GST_IS_PAD (pad)); GST_OBJECT_LOCK (pad); /* if nothing changed, do nothing */ if (pad->offset == offset) goto done; pad->offset = offset; GST_DEBUG_OBJECT (pad, "changed offset to %" G_GINT64_FORMAT, offset); /* ...
false
false
false
false
false
0
conv_rgb8_rgbaF (unsigned char *src, unsigned char *dst, long samples) { long n = samples; while (n--) { (*(float *) dst) = table_8g_F[*(unsigned char *) src]; dst += 4; src += 1; (*(float *) dst) = table_8g_F[*(unsigned char *) src]; dst += 4;...
false
false
false
false
false
0
gst_rtsp_message_init (GstRTSPMessage * msg) { g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL); gst_rtsp_message_unset (msg); msg->type = GST_RTSP_MESSAGE_INVALID; msg->hdr_fields = g_array_new (FALSE, FALSE, sizeof (RTSPKeyValue)); return GST_RTSP_OK; }
false
false
false
false
false
0
CommitTransaction() { if (!m_pAsyncConn) return false; //check if we have pending transaction if(!m_TransStorage->get()) return false; //if async execution is not available if(!m_bAllowAsyncTransactions) return CommitTransactionDirect(); //add SqlTransaction to the asy...
false
false
false
false
false
0
extractMappedBlocksFromModule(const std::vector<BasicBlock *> &BBs, Module *M) { SmallString<128> Filename; int FD; std::error_code EC = sys::fs::createUniqueFile( OutputPrefix + "-extractblocks%%%%%%%", FD, Filename); if (EC) { outs() << "*** Basic Block extra...
false
false
false
false
false
0
fi_gui_files_sort_restore(void) { #if GTK_CHECK_VERSION(2,6,0) g_return_if_fail(files_sort_depth > 0); files_sort_depth--; if (0 == files_sort_depth) { if (GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID != files_sort_column) { gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store_files), files_sort_colu...
false
false
false
false
false
0
init_framework(sge_gdi_ctx_class_t *ctx, bdb_info *info) { int ret = EXIT_FAILURE; lList *answer_list = NULL; lListElem *spooling_context = NULL; const char *spooling_method = ctx->get_spooling_method(ctx); const char *spooling_lib = ctx->get_spooling_lib(ctx); const char *spooling_params = ctx->get_...
false
false
false
false
false
0
_nc_printf_string(const char *fmt, va_list ap) { char *result = 0; if (fmt != 0) { #if USE_SAFE_SPRINTF int len = _nc_printf_length(fmt, ap); if ((int) my_length < len + 1) { my_length = 2 * (len + 1); my_buffer = typeRealloc(char, my_length, my_buffer); } if (my_buffer != 0) { *my_buffer =...
false
false
false
false
false
0
active_next(struct hashdir *hd, struct item *item) { if (item == NULL) { return &hd->items[1]; } item ++; if (item <= &hd->items[hd->items_cnt]) { return item; } return NULL; }
false
false
false
false
false
0
map_smb2_to_linux_error(char *buf, bool log_err) { struct smb2_sync_hdr *shdr = get_sync_hdr(buf); unsigned int i; int rc = -EIO; __le32 smb2err = shdr->Status; if (smb2err == 0) return 0; /* mask facility */ if (log_err && (smb2err != STATUS_MORE_PROCESSING_REQUIRED) && (smb2err != STATUS_END_OF_FILE))...
false
false
false
false
false
0
GenerateCFile(const std::string &OutputFile, const std::string &InputFile, const sys::Path &llc, std::string& ErrMsg) { // Run LLC to convert the bitcode file into C. std::vector<const char*> args; args.push_back(llc.c_str()); args.push_...
false
false
false
false
false
0
PyFFContour_ClearSpiros(PyFF_Contour *self) { if ( self->spiro_cnt!=0 ) free(self->spiros); self->spiros = NULL; self->spiro_cnt = 0; free(self->name); }
false
false
false
false
false
0
udi_unpack_tracks( disk_t *d ) { int i, tlen, clen, ttyp; libspectrum_byte *tmp; libspectrum_byte mask[] = { 0xff, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe }; for( i = 0; i < d->sides * d->cylinders; i++ ) { DISK_SET_TRACK_IDX( d, i ); tmp = d->track; ttyp = tmp[-1]; tlen = tmp[-3] + 256 * tmp[...
false
true
false
false
false
1
gsc_search(struct cat_star *cst[], struct catalog *cat, double ra, double dec, double radius, int n) { int *regs, *ids; float *ras, *decs, *mags; int n_gsc, i, j; struct cat_star *cats; struct cat_star *tc; // d3_printf("gsc search\n"); regs = malloc(CAT_GET_SIZE * sizeof(int)); ids = malloc(CAT_GET_S...
false
true
false
false
false
1
http_PutResponse(struct worker *w, int fd, const struct http *to, const char *response) { http_PutField(w, fd, to, HTTP_HDR_RESPONSE, response); if (to->hd[HTTP_HDR_RESPONSE].b == NULL) http_SetH(to, HTTP_HDR_RESPONSE, "Lost Response"); Tcheck(to->hd[HTTP_HDR_RESPONSE]); }
false
false
false
false
false
0
glusterd_import_bricks (dict_t *vols, int32_t vol_count, glusterd_volinfo_t *new_volinfo) { int ret = -1; int brick_count = 1; glusterd_brickinfo_t *new_brickinfo = NULL; GF_ASSERT (vols); GF_ASSERT (vol_count >...
false
false
false
false
false
0
GradientPredictDirect(const uint8_t* const row, const uint8_t* const top, uint8_t* const out, int length) { const int max_pos = length & ~7; int i; const __m128i zero = _mm_setzero_si128(); for (i = 0; i < max_pos; i += 8) { const __m128i A...
false
false
false
false
false
0
button_receive (GtkWidget *widget, gpointer data) { GList *selection; gchar *nr; gchar *fname; const gchar *dir; dir = gtk_entry_get_text (GTK_ENTRY(((struct s_main_data *) data)->rdirinput)); gtk_clist_freeze (GTK_CLIST(((struct s_main_data *) data)->receiver)); while ((selection = GTK_CLIST(((struct ...
false
false
false
false
false
0
_nrrdReadNrrdParse_content(FILE *file, Nrrd *nrrd, NrrdIoState *nio, int useBiff) { static const char me[]="_nrrdReadNrrdParse_content"; char *info; AIR_UNUSED(file); info = nio->line + nio->pos; if (strlen(info) && !(nrrd->content = airStrdup(info))) { biffMaybeAddf(useBiff, N...
false
false
false
false
false
0
removed(dns_zone_t *zone, void *uap) { const char *type; if (dns_zone_getview(zone) != uap) return (ISC_R_SUCCESS); switch (dns_zone_gettype(zone)) { case dns_zone_master: type = "master"; break; case dns_zone_slave: type = "slave"; break; case dns_zone_stub: type = "stub"; break; case dns_zone_s...
false
false
false
false
false
0
text_editor_set_line_marker (TextEditor *te, glong line) { g_return_if_fail (te != NULL); g_return_if_fail(IS_SCINTILLA (te->scintilla) == TRUE); // FIXME: anjuta_delete_all_marker (TEXT_EDITOR_LINEMARKER); text_editor_delete_marker_all (te, TEXT_EDITOR_LINEMARKER); text_editor_set_marker (te, line, TEXT_EDITOR_L...
false
false
false
false
false
0
warn_uninitialized_vars (bool warn_possibly_uninitialized) { gimple_stmt_iterator gsi; basic_block bb; FOR_EACH_BB (bb) { bool always_executed = dominated_by_p (CDI_POST_DOMINATORS, single_succ (ENTRY_BLOCK_PTR), bb); for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { ...
false
false
false
false
false
0
ap_abstract0_sat_lincons(ap_manager_t* man, ap_abstract0_t* a, ap_lincons0_t* lincons) { if (ap_abstract0_checkman1(AP_FUNID_SAT_LINCONS,man,a) && ap_abstract0_check_linexpr(AP_FUNID_SAT_LINCONS,man,_ap_abstract0_dimension(a),lincons->linexpr0) ){ bool (*ptr)(ap_manager_t*,...) = man->funptr[AP_FUNID_SAT_LI...
false
false
false
false
false
0
gsd_ldsm_dialog_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GsdLdsmDialog *self; g_return_if_fail (GSD_IS_LDSM_DIALOG (object)); self = GSD_LDSM_DIALOG (object); switch (prop_id) { case PROP_OTHER_USABLE_PARTITIONS: ...
false
false
false
false
false
0
ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type ssl_type) { if (!ECORE_MAGIC_CHECK(cl, ECORE_MAGIC_CON_CLIENT)) { ECORE_MAGIC_FAIL(cl, ECORE_MAGIC_CON_CLIENT, __func__); return EINA_FALSE; } #if _ECORE_CON_SSL_AVAILABLE == 0 return EINA_FALSE; #endif if (!cl->host_s...
false
false
false
false
false
0
make_mime(const char* to, const char* from, const char* subject, const char* text_message, const char* method, const char* ical_message) { size_t size = strlen(to)+strlen(from)+strlen(subject)+ strlen(text_message)+ strlen(ical_message)+TMPSIZE; char mime_part_1[TMPSIZE]; char mime_part_2[TMPSIZE]; ...
true
true
false
false
true
1
_k_slotResult( KJob *job ) { if (job == m_job) { m_job = 0L; } }
false
false
false
false
false
0
S_isFOO_lc(pTHX_ const U8 classnum, const U8 character) { /* Returns a boolean as to whether or not 'character' is a member of the * Posix character class given by 'classnum' that should be equivalent to a * value in the typedef '_char_class_number'. * * Ideally this could be replaced by a just ...
false
false
false
false
false
0
iwl_mvm_scan_fits(struct iwl_mvm *mvm, int n_ssids, struct ieee80211_scan_ies *ies, int n_channels) { return ((n_ssids <= PROBE_OPTION_MAX) && (n_channels <= mvm->fw->ucode_capa.n_scan_channels) & (ies->common_ie_len + ies->len[NL80211_BAND_2GHZ] + ies->len[NL80211_BAND_5GHZ] <= iwl_mvm_...
false
false
false
false
false
0
validate_pad_name(const char *s, void *ctx) { char *tmp; status_begin_reporting(); tmp = expand(s, NULL); if (!tmp) return 0; free(tmp); return 1; }
false
false
false
false
false
0
plP_checkdriverinit( char *names) { char *buff; char *tok=NULL; PLINT ret=0; /* set up return code to 0, the value if no devices match*/ buff=(char *)malloc((size_t) PL_NSTREAMS*8); /* Allocate enough memory for 8 characters for each possible stream */ if (buff!=NULL)...
false
false
false
false
false
0
pcb(V v,I d,I i,I p){I a;if(!(Sf&&v->p))R d;if(dbg_tpcb)cbtrc(v,1); R a=(I)af4((A)v->p,v->q,d,i,p,v),dc((A)d),a;}
false
false
false
false
false
0
Perl_ck_subr(pTHX_ OP *o) { OP *aop, *cvop; CV *cv; GV *namegv; PERL_ARGS_ASSERT_CK_SUBR; aop = cUNOPx(o)->op_first; if (!aop->op_sibling) aop = cUNOPx(aop)->op_first; aop = aop->op_sibling; for (cvop = aop; cvop->op_sibling; cvop = cvop->op_sibling) ; cv = rv2cv_op_cv(cvop, RV2CV...
false
false
false
false
false
0
dither_to_matrix(UINT32 color, UINT16 *matrix) { UINT32 rawr = (((color >> 16) & 0xff) * 0xf8*2) / 0xff; UINT32 rawg = (((color >> 8) & 0xff) * 0xfc*2) / 0xff; UINT32 rawb = ((color & 0xff) * 0xf8*2) / 0xff; int i; for (i = 0; i < 16; i++) { UINT32 dither = fbz_dither_matrix[i]; UINT32 newr = rawr...
false
false
false
false
false
0
buffer_is_equal_right_len(buffer *b1, buffer *b2, size_t len) { /* no, len -> equal */ if (len == 0) return 1; /* len > 0, but empty buffers -> not equal */ if (b1->used == 0 || b2->used == 0) return 0; /* buffers too small -> not equal */ if (b1->used - 1 < len || b1->used - 1 < len) return 0; if (0 == strnc...
false
false
false
false
true
1
historydisp() { int k; k = SYMbind2(historsym); if(k >= 1 && k <= 3) k++; else if(k >= 'a' || k <= 'c') k = 'a' - k - 1; else k = 2; previnput(k); }
false
false
false
false
false
0
abraca_rating_entry_real_leave_notify_event (GtkWidget* base, GdkEventCrossing* ev) { AbracaRatingEntry * self; gboolean result = FALSE; self = (AbracaRatingEntry*) base; g_return_val_if_fail (ev != NULL, FALSE); _g_free0 (self->priv->_volatile_rating); self->priv->_volatile_rating = NULL; gtk_widget_queue_draw ...
false
false
false
false
false
0
Nget_first_exag_cmd(Nv_data * data, Tcl_Interp * interp, /* Current interpreter. */ int argc, char **argv) { float exag, texag; int nsurfs, i, *surf_list; char buf[128]; surf_list = GS_get_surf_list(&nsurfs); exag = 0.0; for (i = 0; i < nsurfs; i++) { if (GS_get_exag_guess(surf_list[i], &t...
false
false
false
false
false
0
err(const char *fmt, ...) { va_list ap; va_start(ap, fmt); if (!suppress) { maybe_print_location(); fprintf(stderr, "error: "); vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); maybe_print_debug_tip(); err_count++; } va_end(ap); }
false
false
false
false
true
1
completeregularpath(path * P, edge_t * first, edge_t * last, pathend_t * tendp, pathend_t * hendp, boxf * boxes, int boxn, int flag) { edge_t *uleft, *uright, *lleft, *lright; int i, fb, lb; splines *spl; pointf *pp; int pn; fb = lb = -1; uleft = uright = NULL; uleft = top_b...
false
false
false
false
false
0
main(void){ register RangeTree *rt = RangeTree_create(); gint total = 0; RangeTree_add(rt, 3, 5, NULL); /* within */ RangeTree_add(rt, 5, 8, NULL); RangeTree_add(rt, 5, 5, NULL); /* within */ RangeTree_add(rt, 2, 1, NULL); RangeTree_add(rt, 9, 5, NULL); RangeTree_add(rt, 7, 3, NULL); /* ...
false
false
false
false
false
0
popLastInStatementIndent() { assert(!inStatementIndentStackSizeStack->empty()); int previousIndentStackSize = inStatementIndentStackSizeStack->back(); if (inStatementIndentStackSizeStack->size() > 1) inStatementIndentStackSizeStack->pop_back(); while (previousIndentStackSize < (int) inStatementIndentStack->size()...
false
false
false
false
false
0
radeon_pm_in_vbl(struct radeon_device *rdev) { int crtc, vpos, hpos, vbl_status; bool in_vbl = true; /* Iterate over all active crtc's. All crtc's must be in vblank, * otherwise return in_vbl == false. */ for (crtc = 0; (crtc < rdev->num_crtc) && in_vbl; crtc++) { if (rdev->pm.active_crtcs & (1 << crtc)) { ...
false
false
false
false
false
0
gnac_profiles_utils_get_values_checked_slider_and_set(BasicFormatInfo *bfi, ...) { va_list ap; va_start(ap, bfi); const gchar *name = va_arg(ap, const gchar *); while (name) { const gchar *checkbox_name = va_arg(ap, const gchar *); gdouble *value = va_arg(ap, gdouble *); GtkWidget *widget = gnac_p...
false
false
false
false
false
0
foldedCount(win, lnum, infop) win_T *win; linenr_T lnum; foldinfo_T *infop; { linenr_T last; if (hasFoldingWin(win, lnum, NULL, &last, FALSE, infop)) return (long)(last - lnum + 1); return 0; }
false
false
false
false
false
0
reference_path_available( refdb_fs_backend *backend, const char *new_ref, const char* old_ref, int force) { struct packref *this_ref; if (packed_load(backend) < 0) return -1; if (!force) { int exists; if (refdb_fs_backend__exists(&exists, (git_refdb_backend *)backend, new_ref) < 0) return -1; if (...
false
false
false
false
false
0
netsnmp_access_udp_endpoint_entry_free(netsnmp_udp_endpoint_entry * entry) { DEBUGMSGTL(("access:udp_endpoint:entry", "free\n")); if (NULL == entry) return; /* * SNMP_FREE not needed, for any of these, * since the whole entry is about to be freed */ free(entry); }
false
false
false
false
false
0
ossl_ec_key_dh_compute_key(VALUE self, VALUE pubkey) { EC_KEY *ec; EC_POINT *point; int buf_len; VALUE str; Require_EC_KEY(self, ec); SafeRequire_EC_POINT(pubkey, point); /* BUG: need a way to figure out the maximum string size */ buf_len = 1024; str = rb_str_new(0, buf_len); /* BUG: t...
false
false
false
false
false
0
login_session(struct node_rec *rec) { iscsiadm_req_t req; iscsiadm_rsp_t rsp; int rc, retries = 0; /* * For root boot we cannot change this so increase to account * for boot using static setup. */ rec->session.initial_login_retry_max = 30; /* we cannot answer so turn off */ rec->conn[0].timeo.noop_out_inte...
false
false
false
false
false
0
def_tag_name(HSCPRC * hp, BOOL * start_tag) { STRPTR nw = NULL; HSCTAG *tag = NULL; DLLIST *taglist = hp->deftag; /* get tag name */ nw = infget_tagid(hp); /* create new tag */ if (nw) { *start_tag = (BOOL) (strcmp(nw, "/")); if (!(*start_tag)) { /* add closing tag *...
false
false
false
false
false
0
L43() {register object *base=vs_base; register object *sup=base+VM43; VC43 vs_check; {object V162; object V163; object V164; V162=(base[0]); V163=(base[1]); V164=(base[2]); vs_top=sup; goto TTL; TTL:; base[3]= ((object)VV[11]); base[4]= (V164); vs_top=(vs_base=base+3)+2; (void) (*Lnk78)(); vs_top=sup; V...
false
false
false
false
false
0
up_device_kind_from_string (const gchar *type) { if (type == NULL) return UP_DEVICE_KIND_UNKNOWN; if (g_strcmp0 (type, "line-power") == 0) return UP_DEVICE_KIND_LINE_POWER; if (g_strcmp0 (type, "battery") == 0) return UP_DEVICE_KIND_BATTERY; if (g_strcmp0 (type, "ups") == 0) return UP_DEVICE_KIND_UPS; if (...
false
false
false
false
false
0