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
modperl_module_config_merge(apr_pool_t *p, void *basev, void *addv, int type) { GV *gv; modperl_mgv_t *method; modperl_module_cfg_t *mrg = NULL, *tmp, *base = (modperl_module_cfg_t *)basev, *add = (mod...
false
false
false
false
false
0
check_protocol_recursively (tree proto, tree list) { tree p; for (p = list; p; p = TREE_CHAIN (p)) { tree pp = TREE_VALUE (p); if (TREE_CODE (pp) == IDENTIFIER_NODE) pp = lookup_protocol (pp, /* warn if deprecated */ false, /* definition_required */ false); if (pp == proto) fatal...
false
false
false
false
false
0
savemsg(const char *p, unsigned l) { if (l > sizeof(msgbuf)-1-msglen) l=sizeof(msgbuf)-1-msglen; if (l) memcpy(msgbuf+msglen, p, l); msglen += l; }
false
true
false
false
false
1
PrintDocumentationProperties(std::ostream& os) { this->ClearSections(); this->AddSectionToPrint("Properties Description"); for (std::vector<std::string>::iterator i = this->PropertySections.begin(); i != this->PropertySections.end(); ++i) { this->AddSectionToPrint(i->c_str()); } thi...
false
false
false
false
false
0
get_data_infer_value(CdlTransaction transaction, CdlExpression expr, unsigned int index, CdlSimpleValue& goal, int level) { CYG_REPORT_FUNCNAMETYPE("get_data_infer_value", "result %d"); CYG_REPORT_FUNCARG5XV(transaction, expr, index, &goal, level); bool result = false; CdlSubexpression subexpr = e...
false
false
false
false
false
0
rand(void) { if (! initialized) { time((time_t *)&next); initialized = 1; } next = next * 0x5deece66dLL + 11; return (int)((next >> 16) & 0x7fffffff); }
false
false
false
false
false
0
set_shopt_o_options (mode, list, quiet) int mode; WORD_LIST *list; int quiet; { WORD_LIST *l; int rval; for (l = list, rval = EXECUTION_SUCCESS; l; l = l->next) { if (set_minus_o_option (mode, l->word->word) == EXECUTION_FAILURE) rval = EXECUTION_FAILURE; } set_shellopts (); ret...
false
false
false
false
false
0
dmi_processor_cache(uint16_t code, const char *level, uint16_t ver, char *cache) { if (code == 0xFFFF) { if (ver >= 0x0203) sprintf(cache, "Not Provided"); else sprintf(cache, "No %s Cache", level); } else sprintf(cache, "0x%04X", code); }
true
true
false
false
false
1
zoom(int deg) { if (deg > getMaxZoom()) myZoomDesired = getMaxZoom(); else if (deg < getMinZoom()) myZoomDesired = getMinZoom(); else myZoomDesired = deg; return true; }
false
false
false
false
false
0
WebPPictureAlloc(WebPPicture* picture) { if (picture != NULL) { const int width = picture->width; const int height = picture->height; WebPPictureFree(picture); // erase previous buffer if (!picture->use_argb) { return WebPPictureAllocYUVA(picture, width, height); } else { return We...
false
false
false
false
false
0
seek(byte_t head, byte_t cylinder, byte_t sector) { if (_cur_floppy == 0) return false; int c1 = cylinder; int c2 = _cur_floppy->get_cylinder(); int diff = abs(c1 - c2); bool seek_ok = seek_internal(head, cylinder, sector); set_ST0(ST_0_SEEK_END, 0); set_input_gate(0x40, 0x40); int offset = diff ...
false
false
false
false
false
0
add_insn_after (rtx insn, rtx after) { rtx next = NEXT_INSN (after); basic_block bb; if (optimize && INSN_DELETED_P (after)) abort (); NEXT_INSN (insn) = next; PREV_INSN (insn) = after; if (next) { PREV_INSN (next) = insn; if (GET_CODE (next) == INSN && GET_CODE (PATTERN (next)) == SE...
false
false
false
false
false
0
fm_xml_file_init(FmXmlFile *self) { self->tags = g_new0(FmXmlFileTagDesc, 1); self->n_tags = 1; self->line = 1; }
false
false
false
false
false
0
of_irq_get(struct device_node *dev, int index) { int rc; struct of_phandle_args oirq; struct irq_domain *domain; rc = of_irq_parse_one(dev, index, &oirq); if (rc) return rc; domain = irq_find_host(oirq.np); if (!domain) return -EPROBE_DEFER; return irq_create_of_mapping(&oirq); }
false
false
false
false
false
0
NET_SV_MaxPlayers(void) { int i; for (i = 0; i < MAXNETNODES; ++i) { if (ClientConnected(&clients[i])) { return clients[i].max_players; } } return NET_MAXPLAYERS; }
false
false
false
false
false
0
mlx5e_create_tises(struct mlx5e_priv *priv) { int err; int tc; for (tc = 0; tc < priv->params.num_tc; tc++) { err = mlx5e_create_tis(priv, tc); if (err) goto err_close_tises; } return 0; err_close_tises: for (tc--; tc >= 0; tc--) mlx5e_destroy_tis(priv, tc); return err; }
false
false
false
false
false
0
seq_count (seq_voidp sequence) { void **seq = sequence; int count; for (count = 0; seq && seq[count]; count++); return count; }
false
false
false
false
false
0
cx_fw_get_simg_header(struct ipmi_intf *intf, int partition, simg_header_t * header) { int rc = CXOEM_SUCCESS; struct ipmi_rs *rsp; struct ipmi_rq req; uint8_t msg_data[64]; memset(&req, 0, sizeof(req)); memset(msg_data, 0, 64); req.msg.netfn = IPMI_NETFN_OEM_SS; req.msg.cmd = IPMI_CMD_OEM_FW_GET_STATU...
false
true
true
false
false
1
test_correctness(int n) { int istride, ostride, howmany; fftw_plan validated_plan_forward, validated_plan_backward; WHEN_VERBOSE(1, printf("Testing correctness for n = %d...", n); fflush(stdout)); /* produce a *good* plan (validated by Ergun's test procedure) */ validated_plan_forward...
false
false
false
false
false
0
toCBuffer(OutBuffer *buf, HdrGenState *hgs) { if (exp) { exp->toCBuffer(buf, hgs); if (exp->op != TOKdeclaration) { buf->writeByte(';'); if (!hgs->FLinit.init) buf->writenl(); } } else { buf->writeByte(';'); if (!hgs->FLinit.ini...
false
false
false
false
false
0
atl1c_sw_init(struct atl1c_adapter *adapter) { struct atl1c_hw *hw = &adapter->hw; struct pci_dev *pdev = adapter->pdev; u32 revision; adapter->wol = 0; device_set_wakeup_enable(&pdev->dev, false); adapter->link_speed = SPEED_0; adapter->link_duplex = FULL_DUPLEX; adapter->tpd_ring[0].count = 1024; adapter...
false
false
false
false
false
0
g2_qht_search_number_word(const tchar_t *s, size_t start, size_t len) { uint32_t h; int b; for(h = 0, b = 0, s += start; len; len--, s++) { int v = *s; /* * This is fuckin broken... * Pass around and create winblow UTF-16, like shareaza, * to throw it against an ASCII tolower (here coded explicit *...
false
false
false
false
false
0
nm_devices_treeview_clicked_cb (GtkTreeSelection *selection, CcNetworkPanel *panel) { CcNetworkPanelPrivate *priv = panel->priv; const gchar *id_tmp; const gchar *needle; GList *l; GList *panels = NULL; GtkNotebook *notebook; GtkTreeIter iter; GtkTreeModel...
false
false
false
false
false
0
VBR_old_iteration_loop(lame_global_flags const *gfp, FLOAT pe[2][2], FLOAT ms_ener_ratio[2], III_psy_ratio ratio[2][2]) { lame_internal_flags *const gfc = gfp->internal_flags; FLOAT l3_xmin[2][2][SFBMAX]; FLOAT xrpow[576]; int bands[2][2]; int frameBits[15]; i...
false
false
false
false
true
1
fits_img_decompress (fitsfile *infptr, /* image (bintable) to uncompress */ fitsfile *outfptr, /* empty HDU for output uncompressed image */ int *status) /* IO - error status */ /* This routine decompresses the whole image and writes it to the output file. */ { ...
false
false
false
false
false
0
lapbeth_new_device(struct net_device *dev) { struct net_device *ndev; struct lapbethdev *lapbeth; int rc = -ENOMEM; ASSERT_RTNL(); ndev = alloc_netdev(sizeof(*lapbeth), "lapb%d", NET_NAME_UNKNOWN, lapbeth_setup); if (!ndev) goto out; lapbeth = netdev_priv(ndev); lapbeth->axdev = ndev; dev_hold(dev...
false
false
false
false
false
0
variable_coerce_param_hook(ParseState *pstate, Param *param, Oid targetTypeId, int32 targetTypeMod, int location) { if (param->paramkind == PARAM_EXTERN && param->paramtype == UNKNOWNOID) { /* * Input is a Param of previously undetermined type, and we want to * update our knowledge of the Pa...
false
false
false
false
false
0
sole_reduction(int stateno) { register int count, ruleno; register action *p; count = 0; ruleno = 0; for (p = parser[stateno]; p; p = p->next) { if (p->action_code == SHIFT && p->suppressed <= 1) return (0); else if (p->action_code == REDUCE && p->suppressed <= 1) { if (ruleno > 0...
false
false
false
false
false
0
basic_map_dim_opt(__isl_keep isl_basic_map *bmap, int max) { isl_space *dim = isl_basic_map_get_space(bmap); isl_pw_aff *pwaff; int r; dim = isl_space_from_domain(isl_space_domain(dim)); dim = isl_space_add_dims(dim, isl_dim_out, 1); pwaff = isl_pw_aff_empty(dim); r = isl_basic_map_foreach_lexopt(bmap, max, &...
false
false
false
false
false
0
nilfs_segctor_reset_segment_buffer(struct nilfs_sc_info *sci) { struct nilfs_segment_buffer *segbuf = sci->sc_curseg; struct buffer_head *sumbh; unsigned sumbytes; unsigned flags = 0; int err; if (nilfs_doing_gc()) flags = NILFS_SS_GC; err = nilfs_segbuf_reset(segbuf, flags, sci->sc_seg_ctime, sci->sc_cno); ...
false
false
false
false
false
0
kwsysBase64_Decode(const unsigned char *input, unsigned long length, unsigned char *output, unsigned long max_input_length) { const unsigned char *ptr = input; unsigned char *optr = output; /* Decode complete trip...
false
false
false
false
false
0
lookuphash(char *nam) { struct kw *kp = findhash(nam); if (kp->k_name == (char *) 0) { if ((kp->k_name = (char *) malloc((unsigned)(kp->k_nams))) == (char *) 0) nomem(); strcpy(kp->k_name, nam); } return kp; }
false
false
false
false
false
0
saveClicked() { EditChartDialog editor(main, &settings, ltmTool->presets); if (editor.exec()) { ltmTool->presets.append(settings); settings.writeChartXML(main->home, ltmTool->presets); ltmTool->presetPicker->insertItem(ltmTool->presets.count()-1, settings.name, ltmTool->presets.count()-1...
false
false
false
false
false
0
_build_part_info(void *args) { build_part_info_t *build_struct_ptr; List sinfo_list; partition_info_t *part_ptr; node_info_msg_t *node_msg; node_info_t *node_ptr = NULL; uint16_t part_num; int j = 0; build_struct_ptr = (build_part_info_t *) args; sinfo_list = build_struct_ptr->sinfo_list; part_num = build_st...
false
false
false
false
false
0
mmc_test_align_multi_write(struct mmc_test_card *test) { int ret, i; unsigned int size; struct scatterlist sg; if (test->card->host->max_blk_count == 1) return RESULT_UNSUP_HOST; size = PAGE_SIZE * 2; size = min(size, test->card->host->max_req_size); size = min(size, test->card->host->max_seg_size); size = ...
false
false
false
false
false
0
readNSizResource(NSizResource* data, char** location) { char* curLoc; char* tagBegin; char* tagEnd; char* dictEnd; size_t strLen; size_t dummy; curLoc = *location; data->isVolume = FALSE; data->sha1Digest = NULL; data->blockChecksum2 = 0; data->bytes = 0; data->modifyDate = 0; data->part...
false
false
false
false
false
0
unicode_wb_end(unicode_wb_info_t i) { int rc; if (i->end_handler) rc=(*i->end_handler)(i); else rc=wb4(i); free(i); return rc; }
false
false
false
false
false
0
treebuilder_handle_namespace(TreeBuilderObject* self, int start, PyObject *prefix, PyObject *uri) { PyObject* res; PyObject* action; PyObject* parcel; if (!self->events) return; if (start) { if (!self->start_ns_event_obj) return; act...
false
false
false
false
false
0
handle_starttag(void *clientdata, string name, pairlist attribs) { pairlist p; int lev, i; string s; /* Skip everything inside <span class=secno> */ if (skipping > 0) { skipping++; return; } /* Check for old counters, skip them */ if (strcasecmp(name, "span") == 0 && has_class(attribs, SECNO))...
false
false
false
false
false
0
specify_work_queue_task_shared_files(struct work_queue_task *t, const char *input_files, const char *output_files) { if(input_files) { char *files = strdup(input_files); char *file = strtok(files, " \t,"); while(file) { file = strdup(file); char *p = strchr(file, '='); if(p) { *p = 0; } if(fi...
false
false
false
false
false
0
get_x11_title() { XTextProperty text_prop; if (get_x11_windis() == OK) { /* Get window name if any */ if (XGetWMName(x11_display, x11_window, &text_prop)) { if (text_prop.value != NULL) oldtitle = strsave((char_u *)text_prop.value); XFree((void *)text_prop.value); } } if (oldtitle == NULL) /* ...
false
false
false
false
false
0
elliptical_narc(dbl rx,dbl ry,dbl t1,dbl t2,dbl cx,dbl cy) { double dx,dy; double x,y; if(first_ellipse) { first_ellipse = 0; out() << ellipse_fcn << endl; } g_get_xy(&x,&y); polar_xy(rx,ry,t1,&dx,&dy); if (!g.inpath) g_move(cx+dx,cy+dy); out() << cx << " " << cy << " " << rx << " " << ry << " " << t1 << " ...
false
false
false
false
false
0
check_unreachable_object(struct object *obj) { /* * Missing unreachable object? Ignore it. It's not like * we miss it (since it can't be reached), nor do we want * to complain about it being unreachable (since it does * not exist). */ if (!obj->parsed) return; /* * Unreachable object that exists? Show...
false
false
false
false
true
1
node_has_descriptor(const node_t *node) { return (node->ri || (node->rs && node->md)); }
false
false
false
false
false
0
read_string (struct obstack *ob, FILE *infile, int star_if_braced) { char *stringbuf; int saw_paren = 0; int c; c = read_skip_spaces (infile); if (c == '(') { saw_paren = 1; c = read_skip_spaces (infile); } if (c == '"') stringbuf = read_quoted_string (ob, infile); else if (c == ...
false
false
false
false
false
0
pm860x_set_bits(struct i2c_client *i2c, int reg, unsigned char mask, unsigned char data) { struct pm860x_chip *chip = i2c_get_clientdata(i2c); struct regmap *map = (i2c == chip->client) ? chip->regmap : chip->regmap_companion; int ret; ret = regmap_update_bits(map, reg, mask, data); return ret; }
false
false
false
false
false
0
mvl_addtab (head,key_str,ctx_str,field,valu) struct dct_entry **head; char *key_str; char *ctx_str; long field; long valu; { long found = 0; long index; struct dct_entry *entry_pnt; struct dct_recrd *recrd_pnt; index ...
false
false
false
false
false
0
p_cgi_value_get_attr (CGIObject *ho, char *name) { if (!strcmp(name, "hdf")) { Py_INCREF(ho->hdf); return ho->hdf; } return Py_FindMethod(CGIMethods, (PyObject *)ho, name); }
false
false
false
false
false
0
window_close_tab (DhWindow *window, gint page_num) { DhWindowPriv *priv; gint pages; priv = window->priv; gtk_notebook_remove_page (GTK_NOTEBOOK (priv->notebook), page_num); pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (priv->notebook)); ...
false
false
false
false
false
0
htcmp(const objvert &x, const objvert &y) { return x.attrib[0] == y.attrib[0] && x.attrib[1] == y.attrib[1] && x.attrib[2] == y.attrib[2]; }
false
false
false
false
false
0
skipAllocItem(skipItem *item, UINT32 level, UINT32 key, void *value) { if(! (*item = malloc(SIZEOFITEM(level)))) return nerr_raise(NERR_NOMEM, "Unable to allocate space for skipItem"); /* init new item */ (*item)->locks = 0; (*item)->key = key; (*item)->value = value; (*item)->level = level; ...
false
false
false
false
false
0
node_get_by_nickname(const char *nickname, int warn_if_unnamed) { const node_t *node; if (!the_nodelist) return NULL; /* Handle these cases: DIGEST, $DIGEST, $DIGEST=name, $DIGEST~name. */ if ((node = node_get_by_hex_id(nickname)) != NULL) return node; if (!strcasecmp(nickname, UNNAMED_ROUTER_NICK...
false
false
false
false
false
0
gtt_task_append_interval (GttTask *tsk, GttInterval *ival) { if (!tsk || !ival) return; gtt_interval_unhook (ival); tsk->interval_list = g_list_append (tsk->interval_list, ival); ival->parent = tsk; proj_refresh_time (tsk->parent); }
false
false
false
false
false
0
DoStringCharFromCode(LStringCharFromCode* instr) { class DeferredStringCharFromCode: public LDeferredCode { public: DeferredStringCharFromCode(LCodeGen* codegen, LStringCharFromCode* instr) : LDeferredCode(codegen), instr_(instr) { } virtual void Generate() { codegen()->DoDeferredStringCharFromCode...
false
false
false
false
false
0
obj2obj(LObject * *x) { if (*x) LRefIncr(*x); return *x; }
false
false
false
false
false
0
Release() const { // go through all caches (including remote caches and draining caches) // and remove per-job dirs for our job id std::vector<std::string> job_dirs; for (int i = 0; i < (int)_caches.size(); i++) job_dirs.push_back(_caches[i].cache_path + "/" + CACHE_JOB_DIR + "/" + _id); for ...
false
false
false
false
false
0
gx_cpath_to_path(gx_clip_path * pcpath, gx_path * ppath) { if (!pcpath->path_valid) { gx_path rpath; int code; gx_path_init_local(&rpath, pcpath->path.memory); code = gx_cpath_to_path_synthesize(pcpath, &rpath); if (code < 0) { gx_path_free(&rpath, "gx_cpath_to_p...
false
false
false
false
false
0
addDependency( Job* jobA, Job* jobB ) { // jobA depends on jobB REQUIRE ( jobA != 0 && jobB != 0 && jobA != jobB ); jobA->assignQueuePolicy( this ); jobB->assignQueuePolicy( this ); QMutexLocker l( & d->mutex() ); d->dependencies().insert( jobA, jobB ); ENSURE ( d->dependencies().contains ...
false
false
false
false
false
0
lastEntry(NotebookEntry *lastEntry_) { int count=0; if (orientation()==Horizontal) { int totalSpace=availableHeightForTabs(); if (totalSpace>=totalTabHeight()) firstEntry(firstItem()); else { MSNodeItem *hp=childListHead(); MSNodeItem *np=hp; NotebookEntry *entry; MSBoolean foundlastEntr...
false
false
false
false
false
0
tg3_phy_auxctl_read(struct tg3 *tp, int reg, u32 *val) { int err; err = tg3_writephy(tp, MII_TG3_AUX_CTRL, (reg << MII_TG3_AUXCTL_MISC_RDSEL_SHIFT) | MII_TG3_AUXCTL_SHDWSEL_MISC); if (!err) err = tg3_readphy(tp, MII_TG3_AUX_CTRL, val); return err; }
false
false
false
false
false
0
display_statfs(const char *path, const char *dummy) { gfarm_error_t e; gfarm_off_t used, avail, files; char capbuf[GFARM_INT64STRLEN]; char usedbuf[GFARM_INT64STRLEN]; char availbuf[GFARM_INT64STRLEN]; char filesbuf[GFARM_INT64STRLEN]; /* XXX FIXME: should implement and use gfs_statvfs */ e = gfs_statfs(&used,...
true
true
false
false
true
1
computeEndPosition(unsigned start_) { unsigned r=start_; if (start_<length()) { unsigned offset=panner()->highlightThickness()+panner()->shadowThickness(); int w=panner()->width()-2*offset; char *cp=(char *)string(); int tw=0; unsigned pos=start_; unsigned len=length(); if (po...
false
false
false
false
true
1
load_gauge_missile_tri(int base_w, int base_h, int hud_font, SCP_vector<int>* ship_idx, color *use_clr) { int coords[2]; int base_res[2]; int Radius; float Target_triangle_base; float Target_triangle_height; bool slew = true; int font_num = FONT1; if(gr_screen.res == GR_640) { coords[0] = 320; coords[1] =...
false
false
false
false
false
0
setup_ib_interface(struct interface_info *ip) { struct group *g; struct hardware *hw = &ip->hw_address; char client_id[64]; char *arg_conf = NULL; int arg_conf_len = 0; isc_result_t status; struct parse *cfile = (struct parse *)0; /* * Find out if a dhcp-client-identifier option was specified either * in t...
false
false
false
false
false
0
AssignVariable(infoexpressao assigner, infovariavel assignee){ if(assignee.simb->array == FALSO){ GeraQuadrupla(OPATRIB, assigner.opnd, opndidle, assignee.opnd); }else{ GeraQuadrupla(OPATRIBP, assigner.opnd, opndidle, assignee.pointer.opnd); } }
false
false
false
false
false
0
format_parse (const char *format, bool translated, bool objc_extensions, char *fdi, char **invalid_reason) { struct spec result_buf; struct spec *result; result = format_parse_entrails (format, translated, objc_extensions, fdi, invalid_reason, &result_buf); if (result != NULL) { /* Cop...
false
false
false
false
false
0
icaltimetype_to_tm_with_zone (struct icaltimetype *itt, icaltimezone *from_zone, icaltimezone *to_zone) { struct tm tm; struct icaltimetype itt_copy; memset (&tm, 0, sizeof (tm)); tm.tm_isdst = -1; g_return_val_if_fail (itt != NULL, tm); itt_copy = *i...
false
false
false
false
false
0
zslParseLexRange(robj *min, robj *max, zlexrangespec *spec) { /* The range can't be valid if objects are integer encoded. * Every item must start with ( or [. */ if (min->encoding == REDIS_ENCODING_INT || max->encoding == REDIS_ENCODING_INT) return REDIS_ERR; spec->min = spec->max = NULL; ...
false
false
false
false
false
0
reiserfs_block_writes(struct reiserfs_transaction_handle *th) { struct reiserfs_journal *journal = SB_JOURNAL(th->t_super); BUG_ON(!th->t_trans_id); journal->j_must_wait = 1; set_bit(J_WRITERS_BLOCKED, &journal->j_state); return; }
false
false
false
false
false
0
put_from_(FILE *fp, struct mimepart *ip) { time_t now; if (ip && ip->m_from) fprintf(fp, "From %s %s\n", ip->m_from, fakedate(ip->m_time)); else { time(&now); fprintf(fp, "From %s %s", myname, ctime(&now)); } }
false
false
false
false
false
0
e_cal_component_gen_uid (void) { gchar *iso, *ret; static const gchar *hostname; time_t t = time (NULL); static gint serial; if (!hostname) { #ifndef G_OS_WIN32 static gchar buffer[512]; if ((gethostname (buffer, sizeof (buffer) - 1) == 0) && (buffer[0] != 0)) hostname = buffer; else hostname =...
false
false
false
false
false
0
gnc_virtual_location_init (VirtualLocation *vloc) { if (vloc == NULL) return; vloc->phys_row_offset = -1; vloc->phys_col_offset = -1; vloc->vcell_loc.virt_row = -1; vloc->vcell_loc.virt_col = -1; }
false
false
false
false
false
0
on_parser_parsed (GcrParser *parser, gpointer user_data) { GcrViewerWidget *self = GCR_VIEWER_WIDGET (user_data); GckAttributes *attrs; GcrRenderer *renderer; const gchar *label; gboolean actual = TRUE; label = get_parsed_label_or_display_name (self, parser); attrs = gcr_parser_get_parsed_attr...
false
false
false
false
false
0
panel_set_lookup_table_orientation (Panel* self) { CandidatePanel* _tmp0_ = NULL; CandidatePanel* _tmp1_ = NULL; GSettings* _tmp2_ = NULL; gint _tmp3_ = 0; g_return_if_fail (self != NULL); _tmp0_ = self->priv->m_candidate_panel; if (_tmp0_ == NULL) { return; } _tmp1_ = self->priv->m_candidate_panel; _tmp2_ ...
false
false
false
false
false
0
batch_job_submit_local(struct batch_queue * q, const char *cmd, const char *args, const char *infile, const char *outfile, const char *errfile, const char *extra_input_files, const char *extra_output_files) { if(cmd == NULL) cmd = "/bin/false"; if(args == NULL) args = ""; if(infile == NULL) infile = "/dev/null...
false
false
false
false
false
0
mmc_ioctl_cdrom_read_audio(struct cdrom_device_info *cdi, void __user *arg) { struct cdrom_read_audio ra; int lba; if (copy_from_user(&ra, (struct cdrom_read_audio __user *)arg, sizeof(ra))) return -EFAULT; if (ra.addr_format == CDROM_MSF) lba = msf_to_lba(ra.addr.msf.minute, ra.addr.ms...
false
false
false
false
false
0
valueChange(int value_) { if (value_==value()&&value()<=max()-viewSize()) return; if (value_<min()) _value=min(); else if (value_>max()-viewSize()) _value=max()-viewSize(); else _value=value_; redrawElevator(); }
false
false
false
false
false
0
parse_code_uri(MainInfo *min, GString *cstr, const gchar *code) { DirPane *dp = min->gui->cur_pane; const gboolean single = code[0] == 'u', unsel = (strchr(code + 1, 'u') != NULL), dest = (strchr(code + 1, 'd') != NULL), quote = (strchr(code + 1, 'Q') == NULL); /* Upper case for default-on. */ GSList *sl...
false
false
false
false
false
0
parseNoOp ( Operation *op, SlapReply *rs, LDAPControl *ctrl ) { if ( op->o_noop != SLAP_CONTROL_NONE ) { rs->sr_text = "noop control specified multiple times"; return LDAP_PROTOCOL_ERROR; } if ( !BER_BVISNULL( &ctrl->ldctl_value ) ) { rs->sr_text = "noop control value not empty"; return LDAP_PROTOCOL_ERR...
false
false
false
false
false
0
fixup_use_erase_chip(struct mtd_info *mtd) { struct map_info *map = mtd->priv; struct cfi_private *cfi = map->fldrv_priv; if ((cfi->cfiq->NumEraseRegions == 1) && ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0)) { mtd->_erase = cfi_amdstd_erase_chip; } }
false
false
false
false
false
0
ath9k_hw_ar9300_fill_eeprom(struct ath_hw *ah) { u8 *mptr = (u8 *) &ah->eeprom.ar9300_eep; if (ar9300_eeprom_restore_internal(ah, mptr, sizeof(struct ar9300_eeprom)) < 0) return 0; return 1; }
false
false
false
false
false
0
block6_data_unref (void * _userdata_) { Block6Data* _data6_; _data6_ = (Block6Data*) _userdata_; if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) { GType g_type; GBoxedCopyFunc g_dup_func; GDestroyNotify g_destroy_func; g_type = _data6_->g_type; g_dup_func = _data6_->g_dup_func; g_destroy_func = _d...
false
false
false
false
false
0
add_push_report_sideband_pkt(git_push *push, git_pkt_data *data_pkt) { git_pkt *pkt; const char *line = data_pkt->data, *line_end; size_t line_len = data_pkt->len; int error; while (line_len > 0) { error = git_pkt_parse_line(&pkt, line, &line_end, line_len); if (error < 0) return error; /* Advance in t...
false
false
false
false
false
0
brasero_task_cancel (BraseroTask *task, gboolean protect) { if (protect && brasero_task_ctx_get_dangerous (BRASERO_TASK_CTX (task))) return BRASERO_BURN_DANGEROUS; brasero_task_stop (task, BRASERO_BURN_CANCEL, NULL); return BRASERO_BURN_OK; }
false
false
false
false
false
0
sshkey_encoder_encode(cred_encoding_type_t type, chunk_t *encoding, va_list args) { switch (type) { case PUBKEY_SSHKEY: return build_public_key(encoding, args); default: return FALSE; } }
false
false
false
false
false
0
adjust_focus(int Focus) { if (Focus < 0) Focus = 0; else if (Focus >= maxsize_y) Focus = maxsize_y - 1; if (foc != Focus) has_focused(Focus); if (Focus < delta_y) scroll_to(delta_x, Focus); else if ((Focus - size.h) >= delta_y) scroll_to(delta_x, Focus - size.h + 1); }
false
false
false
false
false
0
updateContentsXY() { contentsX = QApplication::isRightToLeft() ? view->horizontalScrollBar()->maximum()-view->horizontalScrollBar()->value() : view->horizontalScrollBar()->value(); contentsY = view->verticalScrollBar()->value(); }
false
false
false
false
false
0
listKeys( vector< pair<string, string> > &list) { GlobalKeys::listKeys(list, currentScreen); vector<ShortcutKey>::iterator b, e; vector<ShortcutKey> &keyVector=getKeyVector(); b=keyVector.begin(); e=keyVector.end(); while (b != e) { list.push_back(make_pair( b->keyname, b->keydescr)); ++b; } return tr...
false
false
false
false
false
0
P_CreateTIDList(void) { int i; mobj_t *mobj; thinker_t *t; i = 0; for (t = thinkercap.next; t != &thinkercap; t = t->next) { // Search all current thinkers if (t->function != P_MobjThinker) { // Not a mobj thinker conti...
false
false
false
false
false
0
runOnFunction(Function &F) { bool Broken = false; for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) { if (I->empty() || !I->back().isTerminator()) { dbgs() << "Basic Block in function '" << F.getName() << "' does not have terminator!\n"; WriteAsO...
false
false
false
false
false
0
jsr_c0(void) { asap.nextpc = SRC1VAL + (SRC2VAL << 2); asap.iflag = asap.pflag; fetch_instruction(); asap.pc = asap.nextpc; asap.nextpc = ~0; UPDATEPC(); execute_instruction(); asap_icount--; check_irqs(); }
false
false
false
false
false
0
corder_create_empty(hid_t fapl) { hid_t file_id = (-1); /* File ID */ hid_t group_id = (-1); /* Group ID */ hid_t gcpl_id = (-1); /* Group creation property list ID */ unsigned crt_order_flags; /* Status of creation order info for GCPL */ herr_t ret; /* Generic ...
false
false
false
false
false
0
Configure() { // Compute the path to use when referencing the current output // directory from the top output directory. this->HomeRelativeOutputPath = this->Convert(this->Makefile->GetStartOutputDirectory(), HOME_OUTPUT); if(this->HomeRelativeOutputPath == ".") { this->HomeRelativeOutputPath = ""; ...
false
false
false
false
false
0
uc_to_utf8(char *utf8_str, const uint32_t *uc_str, unsigned int size) { int i, len, bytes; len = 0; while (*uc_str != 0 && len < size) { if (*uc_str < 0x80) { *utf8_str++ = *uc_str; len++; } else { if (*uc_str < 0x800) { bytes = 2; } e...
false
false
false
false
false
0
do_notify_reply(fuse_req_t req, fuse_ino_t nodeid, const void *inarg, const struct fuse_buf *buf) { struct fuse_ll *f = req->f; struct fuse_notify_req *nreq; struct fuse_notify_req *head; pthread_mutex_lock(&f->lock); head = &f->notify_list; for (nreq = head->next; nreq != head; nreq = nreq->next) { if ...
false
false
false
false
false
0
list_prepend_list(t_list_prepend *x, t_symbol *s, int argc, t_atom *argv) { t_atom *outv; int n, outc = x->x_alist.l_n + argc; ATOMS_ALLOCA(outv, outc); atoms_copy(argc, argv, outv + x->x_alist.l_n); if (x->x_alist.l_npointer) { t_alist y; alist_clone(&x->x_alist, &y); ...
false
false
false
false
false
0
nfs_fscache_get_client_cookie(struct nfs_client *clp) { /* create a cache index for looking up filehandles */ clp->fscache = fscache_acquire_cookie(nfs_fscache_netfs.primary_index, &nfs_fscache_server_index_def, clp, true); dfprintk(FSCACHE, "NFS: get client cookie (0x%p/0x%p)\n", clp, clp->...
false
false
false
false
false
0
_mesa_PolygonOffset( GLfloat factor, GLfloat units ) { GET_CURRENT_CONTEXT(ctx); if (MESA_VERBOSE&VERBOSE_API) _mesa_debug(ctx, "glPolygonOffset %f %f\n", factor, units); if (ctx->Polygon.OffsetFactor == factor && ctx->Polygon.OffsetUnits == units) return; FLUSH_VERTICES(ctx, _NEW_POLY...
false
false
false
false
false
0
get_contents_of_production(struct city_dialog *pdialog, char *retbuf, int n) { struct city *pcity; int foodprod=0; int foodsurplus=0; int shieldprod=0; int shieldsurplus=0; int tradeprod=0; int tradesurplus=0; if (pdialog) { pcity=pdialog->pcity; foodprod=pcity->prod[O_FOOD]; foo...
false
false
false
false
false
0
free_coherent(struct device *dev, size_t size, void *virt_addr, dma_addr_t dma_addr, struct dma_attrs *attrs) { struct protection_domain *domain; unsigned long flags; struct page *page; INC_STATS_COUNTER(cnt_free_coherent); page = virt_to_page(virt_addr); size = PAGE_ALIGN(size); domain = get_domain...
false
false
false
false
false
0