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
setClockModeLabel() { _FB_USES_NLS; if (FbTk::StringUtil::findCharFromAlphabetAfterTrigger( m_tool.timeFormat(), '%', SWITCHES_24_12H, 3, 0) != std::string::npos) { setLabel( _FB_XTEXT(Toolbar, Clock24, "Clock: 24h", "set Clockmode to 24h") ); } else { set...
false
false
false
false
false
0
command_trie_find_leaf (command_trie_t *trie) { GList *succ; command_trie_t *leaf = NULL; if (trie) { succ = g_list_first (trie->next); if (succ && succ->next == NULL && !command_trie_valid_match (trie)) { /* Not a matching node, a single successor: recurse */ leaf = command_trie_find_leaf ((command_trie_...
false
false
false
false
false
0
nsend(nhead) struct nmsg *nhead; /* network message header */ { int f_nreel; /* NREEL status flag */ int4 length; /* remaining length */ int4 save_flags; /* saved flags */ int4 save_length; /* saved length */ int4 save_data0; /* saved data[0] */ char *save_msg; /* saved message ptr */ /* * Get the rou...
false
false
false
false
false
0
Parse(const String &query_string) { error = ""; Token().Set(query_string); Query *result = ParseExpression(); if(result && !Token().IsEnd()) { Expected("end of query"); // delete result; result = 0; } return result; }
false
false
false
false
false
0
ipa_tm_insert_gettmclone_call (struct cgraph_node *node, struct tm_region *region, gimple_stmt_iterator *gsi, gimple stmt) { tree gettm_fn, ret, old_fn, callfn; gimple g, g2; bool safe; old_fn = gimple_call_fn (stmt); if (TREE_CODE (old_fn) == ADDR_EXPR) { tree fndecl = TREE_OP...
false
false
false
false
false
0
pixcompGetDimensions(PIXC *pixc, l_int32 *pw, l_int32 *ph, l_int32 *pd) { PROCNAME("pixcompGetDimensions"); if (!pixc) return ERROR_INT("pixc not defined", procName, 1); if (pw) *pw = pixc->w; if (ph) *ph = pixc->h; if (p...
false
false
false
false
false
0
validate_recv_mgnt_frame(struct rtw_adapter *padapter, struct recv_frame *precv_frame) { struct sta_info *psta; struct sk_buff *skb; struct ieee80211_hdr *hdr; /* struct mlme_priv *pmlmepriv = &adapter->mlmepriv; */ RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, "+validate_recv_mgnt_frame\n"); precv_f...
false
false
false
false
false
0
label_changed_cb (glLabel *label, glWindow *window) { gl_debug (DEBUG_WINDOW, "START"); g_return_if_fail (label && GL_IS_LABEL (label)); g_return_if_fail (window && GL_IS_WINDOW (window)); gl_ui_update_undo_redo_verbs (window->ui, label); gl_debug (DEBUG_WINDOW, "END"); }
false
false
false
false
false
0
method_e(Interp &interp, const RefPtr<Expr> &arg, const RefPtr<Obj> &/*data*/) { Val tmp_prev=interp.top_scope()->self(); if(!tmp_prev.obj()->is_arg_name()) { return interp.nil_val(); } Val tmp_rcvr=tmp_prev.obj()->rcvr(); Method new_method; RefPtr<Obj> new_data; ...
false
false
false
false
false
0
cfapi_map_update_position(int *type, ...) { va_list args; mapstruct *map; int x, y; va_start(args, type); map = va_arg(args, mapstruct *); x = va_arg(args, int); y = va_arg(args, int); update_position(map, x, y); va_end(args); *type = CFAPI_NONE; }
false
false
false
false
false
0
getCard(char chcard) { if(tolower(chcard) == 'a') return eCARD_A; else if(tolower(chcard) == 'k') return eCARD_K; else if(tolower(chcard) == 'q') return eCARD_Q; else if(tolower(chcard) == 'j') return eCARD_J; else if(tolower(chcard) == 't') return eCARD_10; else if(isdigit(chcard)) { ...
false
false
false
false
false
0
appendSlash(std::string &path) { // first check boundary size_t len = path.length(); if ((len == 0) || (path[len - 1] != SEPARATOR_CHAR && path[len - 1] != OTHER_SEPARATOR_CHAR)) { path += SEPARATOR_STRING; } }
false
false
false
false
false
0
adnp_irq(int irq, void *data) { struct adnp *adnp = data; unsigned int num_regs, i; num_regs = 1 << adnp->reg_shift; for (i = 0; i < num_regs; i++) { unsigned int base = i << adnp->reg_shift, bit; u8 changed, level, isr, ier; unsigned long pending; int err; mutex_lock(&adnp->i2c_lock); err = adnp_re...
false
false
false
false
false
0
new_position(x1, y1, bearing, velocity) double x1, y1, bearing, velocity; { double delta_x, delta_y; double radians; /* * Object two in which quadrant compared to object one? 0 x = opp, y = * ajd + 0 degrees 1 x...
false
false
false
false
false
0
moving_vof_cell_coarse_fine (FttCell * cell, GfsVariable * v) { FttCell * parent = ftt_cell_parent (cell); GfsVariableTracerVOF * t = GFS_VARIABLE_TRACER_VOF (v); gdouble f = GFS_VALUE (parent, v); FttComponent c; guint i; if (GFS_IS_FULL (f)) { GFS_VALUE (cell, v) = f; for (c = 1; c < FTT_DIMENSIO...
false
false
false
false
false
0
max1363_alloc_scan_masks(struct iio_dev *indio_dev) { struct max1363_state *st = iio_priv(indio_dev); unsigned long *masks; int i; masks = devm_kzalloc(&indio_dev->dev, BITS_TO_LONGS(MAX1363_MAX_CHANNELS) * sizeof(long) * (st->chip_info->num_modes + 1), GFP_KERNEL); if (!masks) return -ENOMEM; for (i = ...
false
false
false
false
false
0
PrepareForTupleInvalidation(Relation relation, HeapTuple tuple) { Oid tupleRelId; Oid databaseId; Oid relationId; /* Do nothing during bootstrap */ if (IsBootstrapProcessingMode()) return; /* * We only need to worry about invalidation for tuples that are in system * relations; user-relation tuples a...
false
false
false
false
false
0
process_idle_times (ThreadPool *tp, gint64 t) { gint64 ticks; gint64 avg; gboolean compute_avg; gint new_threads; gint64 per1; if (tp->ignore_times || t <= 0) return; compute_avg = FALSE; ticks = mono_100ns_ticks (); t = ticks - t; SPIN_LOCK (tp->sp_lock); if (tp->ignore_times) { SPIN_UNLOCK (tp->sp_lo...
false
false
false
false
false
0
panel_widget_force_grab_focus (GtkWidget *widget) { gboolean can_focus = gtk_widget_get_can_focus (widget); /* * This follows what gtk_socket_claim_focus() does */ if (!can_focus) gtk_widget_set_can_focus (widget, TRUE); gtk_widget_grab_focus (widget); if (!can_focus) gtk_widget_set_can_focus (widget, FALS...
false
false
false
false
false
0
vlog_verbose(const char *prefix, const char *pattern, va_list ap) { if ( VERBOSITY == FALSE ) return; first_line_verbose(); fprintf(stdout, "%-*s", INDENT_LEVEL,"" ); if(prefix) { fputs(prefix, stdout); } vfprintf(stdout, pattern, ap); fflush(stdout); va_end(ap); GLO...
false
false
false
false
true
1
engine_search (Pos *pos/*, int player*/) { int tag; byte *move; engine_stop_search = FALSE; if (game_search) game_search (pos, &move); else if (game_single_player) move = NULL; else { tag = g_timeout_add (2 * time_per_move, engine_timeout_cb, NULL); move = ab_dfid (pos, pos->player); g_source_remove (t...
false
false
false
false
false
0
rl_key_action(c, flag) int c; char flag; { KEYMAP *kp; int size; if (ISMETA(c)) { kp = MetaMap; size = METAMAPSIZE; } else { kp = Map; size = MAPSIZE; } for ( ; --size >= 0; kp++) if (kp->Key == c) { kp->Active = c ? 1 : 0; return 1; } return -1; }
false
false
false
false
false
0
is_float(char *arg ) { char *s; for (s=arg; *s; s++) { if (*s != '.' && (*s < '0' || *s > '9')) return 0; } return 1; }
false
false
false
false
false
0
xfs_error_report( const char *tag, int level, struct xfs_mount *mp, const char *filename, int linenum, void *ra) { if (level <= xfs_error_level) { xfs_alert_tag(mp, XFS_PTAG_ERROR_REPORT, "Internal error %s at line %d of file %s. Caller %pS", tag, linenum, filename, ra); xfs_stack_trace();...
false
false
false
false
false
0
Perl_pad_compname_type(pTHX_ const PADOFFSET po) { dVAR; SV* const * const av = av_fetch(PL_comppad_name, po, FALSE); if ( SvPAD_TYPED(*av) ) { return SvSTASH(*av); } return NULL; }
false
false
false
false
false
0
gnttab_free_auto_xlat_frames(void) { if (!xen_auto_xlat_grant_frames.count) return; kfree(xen_auto_xlat_grant_frames.pfn); xen_unmap(xen_auto_xlat_grant_frames.vaddr); xen_auto_xlat_grant_frames.pfn = NULL; xen_auto_xlat_grant_frames.count = 0; xen_auto_xlat_grant_frames.vaddr = NULL; }
false
false
false
false
false
0
mimetype_option_menu(const char *zMimetype){ unsigned i; cgi_printf("Markup style: <select name=\"mimetype\" size=\"1\">\n"); for(i=0; i<sizeof(azStyles)/sizeof(azStyles[0]); i+=2){ if( fossil_strcmp(zMimetype,azStyles[i])==0 ){ cgi_printf("<option value=\"%s\" selected>%s</option>\n",(azStyles[i]),(azS...
false
false
false
false
false
0
linuxOvercommitMemoryValue(void) { FILE *fp = fopen("/proc/sys/vm/overcommit_memory","r"); char buf[64]; if (!fp) return -1; if (fgets(buf,64,fp) == NULL) { fclose(fp); return -1; } fclose(fp); return atoi(buf); }
true
true
true
false
true
1
I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) { uint16_t tmpreg = 0, freqrange = 0; uint16_t result = 0x04; uint32_t pclk1 = 8000000; RCC_ClocksTypeDef rcc_clocks; /* Check the parameters */ assert_param(IS_I2C_ALL_PERIPH(I2Cx)); assert_param(IS_I2C_CLOCK_SPEED(I2C_InitStruct->I2C_...
false
false
false
false
false
0
theora_push_packet (GstTheoraEnc * enc, ogg_packet * packet) { GstVideoEncoder *benc; GstFlowReturn ret; GstVideoCodecFrame *frame; benc = GST_VIDEO_ENCODER (enc); frame = gst_video_encoder_get_oldest_frame (benc); if (gst_video_encoder_allocate_output_frame (benc, frame, packet->bytes) != GST_F...
false
false
false
false
false
0
getScaledParametersPS(BOX *box, l_int32 wpix, l_int32 hpix, l_int32 res, l_float32 scale, l_float32 *pxpt, l_float32 *pypt, l_float32 *pwpt, ...
false
false
false
false
false
0
getfreeMinBytes(Stream_t *Dir, mt_size_t size) { Stream_t *Stream = GetFs(Dir); DeclareThis(Fs_t); size_t size2; size2 = size / (This->sector_size * This->cluster_size); if(size % (This->sector_size * This->cluster_size)) size2++; return getfreeMinClusters(Dir, size2); }
false
false
false
false
false
0
smgrclose(SMgrRelation reln) { SMgrRelation *owner; if (!(*(smgrsw[reln->smgr_which].smgr_close)) (reln)) ereport(ERROR, (errcode_for_file_access(), errmsg("could not close relation %u/%u/%u: %m", reln->smgr_rnode.spcNode, reln->smgr_rnode.dbNode, reln->smgr_rnode.relNode))); owner = r...
false
false
false
false
false
0
fifo_has_reader(const char *path, int prepare) { int fd; /* ** Check that fifo exists and is a fifo. ** If not, there can be no reader process. */ switch (fifo_exists(path, prepare)) { case 0: return 0; case -1: return -1; } /* ** Open the fifo for non-blocking write. ** If there is no reader process...
false
false
false
false
false
0
GetUuidFromPath(std::string path) { std::stringstream query; query << "SELECT uuid FROM resource_uuid WHERE path='" << path << "'"; this->Database->ExecuteQuery(query.str().c_str()); std::string uuid = this->Database->GetNextRow() ? this->Database->GetValueAsString(0) : ""; while(this->Database->GetNext...
false
false
false
false
false
0
__chk_spec_delay(struct expr_t *ndp, char *emsg) { /* first must be expr. of numbers and parameters only */ if (!__chk_paramexpr(ndp, 0)) { __sgferr(898, "%s must be specify constant expression", emsg); return; } /* then must fold */ fold_subexpr(ndp); /* finally check to make sure number delay - prep co...
false
false
false
false
false
0
quote_string(const string& str) { string res; const char* i = str.c_str(); while (*i) { char c = *i++; if (c == ' ' || c == '(' || c == ')' || c =='\'') res += '\\'; res += c; } return res; }
false
false
false
false
false
0
isLinearized() { Parser *parser; Object obj1, obj2, obj3, obj4, obj5; GBool lin; lin = gFalse; obj1.initNull(); parser = new Parser(xref, new Lexer(xref, str->makeSubStream(str->getStart(), gFalse, 0, &obj1)), gTrue); parser->getObj(&obj1); parser->getObj(&obj2); parser->getObj(&o...
false
false
false
false
false
0
get_nr_dirty_inodes(void) { /* not actually dirty inodes, but a wild approximation */ long nr_dirty = get_nr_inodes() - get_nr_inodes_unused(); return nr_dirty > 0 ? nr_dirty : 0; }
false
false
false
false
false
0
channel_elements_from_project() { trace(("rss_feed::channel_elements_from_project()\n{\n")); title = rss_feed_attribute(project, filename, rss_feed_title); if (title.empty() && cp) { title = nstring::format ( "Changes in state %s", cstate_state_ename(cp->cstate_data->state) ); } ...
false
false
false
false
false
0
tty_aux_input(vtty_t *vtty) { struct ns16552_data *d = vtty->priv_data; if (d->channel[1].ier & IER_ERXRDY) vm_set_irq(d->vm,d->irq); }
false
false
false
false
false
0
qstrunchar(char *str, char head, char tail) { if (str == NULL) return NULL; int len = strlen(str); if (len >= 2 && str[0] == head && str[len - 1] == tail) { memmove(str, str + 1, len - 2); str[len - 2] = '\0'; } else { return NULL; } return str; }
false
false
false
false
false
0
set_read_p(bool state) { if (_var) { _var->set_read_p(state); } BaseType::set_read_p(state); }
false
false
false
false
false
0
idio_16_init(void) { int err; idio_16_device = platform_device_alloc(idio_16_driver.driver.name, -1); if (!idio_16_device) return -ENOMEM; err = platform_device_add(idio_16_device); if (err) goto err_platform_device; err = platform_driver_probe(&idio_16_driver, idio_16_probe); if (err) goto err_platform...
false
false
false
false
false
0
checkNotify() { if(m_loading) return; for (QHashIterator<CachedObjectClient*,CachedObjectClient*> it( m_clients ); it.hasNext();) it.next().value()->notifyFinished(this); }
false
false
false
false
false
0
vgem_gem_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args) { struct drm_gem_object *gem_object; uint64_t size; uint64_t pitch = args->width * DIV_ROUND_UP(args->bpp, 8); size = args->height * pitch; if (size == 0) return -EINVAL; gem_object = vgem_gem_create(dev...
false
false
false
false
false
0
item_window_empty(SBAR_ITEM_REC *item, int get_size_only) { WINDOW_REC *window; window = active_win; if (item->bar->parent_window != NULL) window = item->bar->parent_window->active; if (window != NULL && window->active == NULL) { statusbar_item_default_handler(item, get_size_only, NULL, "",...
false
false
false
false
false
0
emf_outputStatistics(ostream& out) { short is = ESF_INDENT_SIZE; const ModelStatistics* ms = model->getModelStatistics(); emf_outputSectionStart(out); // Header LibFront::output_string(out, is, 0, "Statistics"); LibFront::output_scalar(out, is, 1, "Nof Bodies", NULL, ms->nofBodies); LibFront::output_s...
false
false
false
false
false
0
camel_store_get_inbox_folder (CamelStore *store, gint io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { CamelStoreClass *class; g_return_if_fail (CAMEL_IS_...
false
false
false
true
false
1
qla83xx_restart_nic_firmware(scsi_qla_host_t *vha) { int rval; mbx_cmd_t mc; mbx_cmd_t *mcp = &mc; struct qla_hw_data *ha = vha->hw; if (!IS_QLA83XX(ha) && !IS_QLA27XX(ha)) return QLA_FUNCTION_FAILED; ql_dbg(ql_dbg_mbx, vha, 0x1143, "Entered %s.\n", __func__); mcp->mb[0] = MBC_RESTART_NIC_FIRMWARE; mcp->ou...
false
false
false
false
false
0
_parse_pip_metadata_extension(BITSTREAM *bits, MPLS_PL *pl) { MPLS_PIP_METADATA *data; int ii; uint32_t start_address = (uint32_t)bs_pos(bits) / 8; uint32_t len = bs_read(bits, 32); int entries = bs_read(bits, 16); if (len < 1 || entries < 1) { return 0; } ...
false
false
false
false
false
0
onAnimationUnpaused() { if (d_eventReceiver) { AnimationEventArgs args(this); d_eventReceiver->fireEvent(EventAnimationUnpaused, args, EventNamespace); } }
false
false
false
false
false
0
parse_residue(offset, pat) int offset; char **pat; /* this is so that the possition in the */ /* pattern string is updated */ { PatternResidue *pr; int num = 0; char *tmp; if (**pat != '[') { /* it is only one residue */ /* declare space for the pattern residue and the character string */ ...
false
false
false
true
false
1
doflags(FILE *fp, struct fetchinfo *fi, struct imapscaninfo *i, unsigned long msgnum, struct rfc2045 *mimep) { struct libmail_kwMessageEntry *kme; char buf[256]; #if SMAP if (smapflag) { writes(" FLAGS="); get_message_flags(i->msgs+msgnum, buf, 0); writes(buf); } else #endif { struct libmai...
true
true
false
false
false
1
GetComment() const { const char* no_comment = 0; return this->HaveComment? this->Comment.c_str() : no_comment; }
false
false
false
false
false
0
zend_std_get_static_property(zend_class_entry *ce, char *property_name, int property_name_len, zend_bool silent TSRMLS_DC) /* {{{ */ { zval **retval = NULL; zend_class_entry *tmp_ce = ce; zend_property_info *property_info; zend_property_info std_property_info; if (zend_hash_find(&ce->properties_info, property_nam...
false
false
false
false
false
0
extractPrecisionOption() { tstring opt = extractOption(); int r = 0; if (! opt.empty ()) r = atoi(DCMTK_LOG4CPLUS_TSTRING_TO_STRING(opt).c_str()); return r; }
false
false
false
false
false
0
LowerCallResult(SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg, const SmallVectorImpl<ISD::InputArg> &Ins, SDLoc dl, SelectionDAG &DAG, ...
false
false
false
false
false
0
avlID_add(avlID_tree * root, const long k, const long n) { int d = 0; /* -1 if the new node is the left child 1 if the new node is the right child */ int pos1 = 0, pos2 = 0; int rotation = 0; /* rotation type to balance tree */ avlID_node *node_temp = NULL; avlID_node *critical = NULL; ...
false
false
false
false
false
0
lldp_private_8021_print(const u_char *tptr, u_int tlv_len) { int subtype, hexdump = FALSE; u_int sublen; if (tlv_len < 4) { return hexdump; } subtype = *(tptr+3); printf("\n\t %s Subtype (%u)", tok2str(lldp_8021_subtype_values, "unknown", subtype), subtype); ...
false
false
false
false
false
0
usbhsc_hotplug(struct usbhs_priv *priv) { struct platform_device *pdev = usbhs_priv_to_pdev(priv); struct usbhs_mod *mod = usbhs_mod_get_current(priv); int id; int enable; int cable; int ret; /* * get vbus status from platform */ enable = usbhs_platform_call(priv, get_vbus, pdev); /* * get id from plat...
false
false
false
false
false
0
get_cac_tdp_table(struct pp_hwmgr *hwmgr, struct phm_cac_tdp_table **ptable, const ATOM_PowerTune_Table *table, uint16_t us_maximum_power_delivery_limit) { unsigned long table_size; struct phm_cac_tdp_table *tdp_table; table_size = sizeof(unsigned long) + sizeof(struct phm_cac_tdp_table); tdp_table = ...
false
false
false
false
false
0
check_attendee(icalproperty *p, struct options_struct *opt){ const char* s = icalproperty_get_attendee(p); char* lower_attendee = lowercase(s); char* local_attendee = opt->calid; /* Check that attendee begins with "mailto:" */ if (strncmp(lower_attendee,"mailto:",7) == 0){ /* skip over the ...
true
true
false
false
false
1
generate_free_switch_expr(const zend_switch_entry *switch_entry TSRMLS_DC) /* {{{ */ { zend_op *opline; if (switch_entry->cond.op_type != IS_VAR && switch_entry->cond.op_type != IS_TMP_VAR) { return (switch_entry->cond.op_type == IS_UNUSED); } opline = get_next_op(CG(active_op_array) TSRMLS_CC); opline->opcod...
false
false
false
false
false
0
glade_string_list_copy (GList *string_list) { GList *ret = NULL, *list; GladeString *string, *copy; for (list = string_list; list; list = list->next) { string = list->data; copy = glade_string_copy (string); ret = g_list_prepend (ret, copy); } return g_list_reverse (ret); }
false
false
false
false
false
0
fromancr_get_tile_info(int tile_index, int vram, int layer) { int tile, color; tile = fromanc2_videoram[vram][layer][tile_index] | (fromanc2_gfxbank[vram][layer] << 16); color = vram; SET_TILE_INFO(layer, tile, color, 0) }
false
false
false
false
false
0
on_fss__button_OK_clicked (GtkButton *button, GapCmeGlobalParams *gpp) { const gchar *filename; GtkEntry *entry; if(gap_debug) printf("CB: on_fss__button_OK_clicked\n"); if(gpp == NULL) return; if(gpp->fss__fileselection) { filename = gtk_file_sel...
false
false
false
false
false
0
get_symbols(const UDateFormat *fmt, UDateFormatSymbolType type, UChar *array[], int32_t arrayLength, int32_t lowestIndex, int32_t firstIndex, UErrorCode *status) { int32_t ...
false
false
false
false
false
0
complete_remove (GkmTransaction *transaction, GObject *obj, gpointer user_data) { GkmSecretCollection *collection = GKM_SECRET_COLLECTION (user_data); if (gkm_transaction_get_failed (transaction)) add_collection (GKM_SECRET_MODULE (obj), NULL, collection); g_object_unref (collection); return TRUE; }
false
false
false
false
false
0
read_ride_summary(int *bytes_read = NULL, int *sum = NULL) { data_version = read_bytes(1, bytes_read, sum); // data_version read_bytes(1, bytes_read, sum); // firmware_minor_version QDateTime t = read_date(bytes_read, sum); rideFile->setStartTime(t); read_bytes(148, bytes_...
false
false
false
false
false
0
open_output_module( const char* names ) { mpg123_module_t *module = NULL; audio_output_t *ao = NULL; int result = 0; char *curname, *modnames; if(param.usebuffer || names==NULL) return NULL; /* Use internal code. */ if(param.outmode != DECODE_AUDIO) return open_fake_module(); modnames = strdup(names); if(mo...
false
false
false
false
false
0
mount_not_mounted_callback (GObject *source_object, GAsyncResult *res, gpointer user_data) { MountNotMountedData *data; NautilusWindowSlot *slot; GError *error; GCancellable *cancellable; data = user_data; slot = data->slot; cancellable = data->cancellable; g_free (data); if (g_cancellable_is_c...
false
false
false
false
false
0
walk_wild_section_specs2_wild1 (lang_wild_statement_type *ptr, lang_input_statement_type *file, callback_t callback, void *data) { asection *s; struct wildcard_list *sec0 = ptr->handler_data[0]; struct wildcard_list *wildsec1 = ptr->handler_data[1]; bfd_boolean multiple_sections_found; asection *s...
false
false
false
false
false
0
HUlib_addMessageToSText ( hu_stext_t* s, char* prefix, char* msg ) { HUlib_addLineToSText(s); if (prefix) while (*prefix) HUlib_addCharToTextLine(&s->l[s->cl], *(prefix++)); while (*msg) HUlib_addCharToTextLine(&s->l[s->cl], *(msg++)); }
false
false
false
false
false
0
_gck_call_async_ready (gpointer data, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { GckArguments *args = (GckArguments*)data; g_assert (GCK_IS_CALL (args->call)); args->call->cancellable = cancellable; if (cancellable) { g_assert (G_IS_CANCELLABLE (cancell...
false
false
false
false
false
0
transformIndirection(ParseState *pstate, Node *basenode, List *indirection) { Node *result = basenode; List *subscripts = NIL; int location = exprLocation(basenode); ListCell *i; /* * We have to split any field-selection operations apart from * subscripting. Adjacent A_Indices nodes have to be trea...
false
false
false
false
false
0
EnvGetNextInstance( void *theEnv, void *iptr) { if (iptr == NULL) return((void *) InstanceData(theEnv)->InstanceList); if (((INSTANCE_TYPE *) iptr)->garbage == 1) return(NULL); return((void *) ((INSTANCE_TYPE *) iptr)->nxtList); }
false
false
false
false
false
0
get_addr_from_global_cache (rtx const loc) { rtx x; void **slot; gcc_checking_assert (GET_CODE (loc) == VALUE); slot = pointer_map_insert (global_get_addr_cache, loc); if (*slot) return (rtx)*slot; x = canon_rtx (get_addr (loc)); /* Tentative, avoiding infinite recursion. */ *slot = x; if ...
false
false
false
false
false
0
GdipDeleteStringFormat (GpStringFormat *format) { if (!format) return InvalidParameter; if (format->tabStops) { GdipFree (format->tabStops); format->tabStops = NULL; } if (format->charRanges) { GdipFree (format->charRanges); format->charRanges = NULL; } GdipFree (format); return Ok; }
false
false
false
false
false
0
CWB_ensure(CTX ctx, CWB_t *cwb, kbytes_t t, size_t reqsize) { if(!(cwb->ba->bu.len + reqsize < cwb->ba->dim->capacity)) { const char *p = cwb->ba->bu.text; if(p <= t.text && t.text <= p + cwb->pos) { size_t s = t.text - p; knh_Bytes_expands(ctx, cwb->ba, reqsize); t.text = cwb->ba->bu.text + s; } else...
false
false
false
false
false
0
paint(Graphics &g, const YRect &/*r*/) { ref<YFont> font = inputFont; int min, max, minOfs = 0, maxOfs = 0; int textLen = fText.length(); if (curPos > markPos) { min = markPos; max = curPos; } else { min = curPos; max = markPos; } if (curPos == markPos || fT...
false
false
false
true
false
1
dump(orbOptions::sequenceString& result) { CORBA::String_var v(CORBA::string_alloc(3)); sprintf(v,"%1d.%1d",orbParameters::maxGIOPVersion.major, orbParameters::maxGIOPVersion.minor); orbOptions::addKVString(key(),v,result); }
false
false
false
false
false
0
hpfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) { struct inode *inode = file->f_mapping->host; int ret; ret = filemap_write_and_wait_range(file->f_mapping, start, end); if (ret) return ret; return sync_blockdev(inode->i_sb->s_bdev); }
false
false
false
false
false
0
gimple_ic_transform (gimple stmt) { histogram_value histogram; gcov_type val, count, all, bb_all; gcov_type prob; tree callee; gimple modify; struct cgraph_node *direct_call; if (gimple_code (stmt) != GIMPLE_CALL) return false; callee = gimple_call_fn (stmt); if (TREE_CODE (callee) == FUNCTION_...
false
false
false
false
false
0
zd_tx_watchdog_handler(struct work_struct *work) { struct zd_usb *usb = container_of(work, struct zd_usb, tx.watchdog_work.work); struct zd_usb_tx *tx = &usb->tx; if (!atomic_read(&tx->enabled) || !tx->watchdog_enabled) goto out; if (!zd_tx_timeout(usb)) goto out; /* TX halted, try reset */ dev_warn(zd_us...
false
false
false
false
false
0
last_rec(Node *n) { int maxkey; if (n->emap == 0) return NULL; /* for safety in MT situation */ maxkey = Scm__HighestBitNumber(n->emap); if (NODE_ARC_IS_LEAF(n, maxkey)) { return (Leaf*)NODE_ENTRY(n, NODE_INDEX2OFF(n, maxkey)); } else { return last_rec((Node*)NODE_ENTRY(n, NODE_INDEX...
false
false
false
false
false
0
cl_randseed(void) { char buf[16]; FILE* fs; struct timeval tv; const char * randdevname [] = {"/dev/urandom", "/dev/random"}; int idev; #if 0 long horrid; #endif /* * Notes, based on reading of man pages of Solaris, FreeBSD and Linux, * and on proof-of-concept tests on Solaris and Linux (32- and 64-bit). ...
true
true
false
false
true
1
getNkoProperties(const unsigned short *chars, int len, HB_ArabicProperties *properties) { int lastPos = 0; int i = 0; Joining j = getNkoJoining(chars[0]); ArabicShape shape = joining_table[XIsolated][j].form2; properties[0].justification = HB_NoJustification; for (i = 1; i < len; ++i) { ...
false
false
false
false
false
0
iwl_get_max_txpwr_half_dbm(const struct iwl_nvm_data *data, struct iwl_eeprom_enhanced_txpwr *txp) { s8 result = 0; /* (.5 dBm) */ /* Take the highest tx power from any valid chains */ if (data->valid_tx_ant & ANT_A && txp->chain_a_max > result) result = txp->chain_a_max; if (data->valid_tx_ant & ANT_B...
false
false
false
false
false
0
pkey_dsa_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) { if (!strcmp(type, "dsa_paramgen_bits")) { int nbits; nbits = atoi(value); return EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits); } if (!strcmp(type, "dsa_paramgen_q_bits")) { int qbits = atoi(value); return EVP_PKEY_CTX_ct...
false
false
false
false
false
0
glade_gtk_tool_button_set_stock_id (GObject * object, const GValue * value) { const gchar *stock_id; g_return_if_fail (GTK_IS_TOOL_BUTTON (object)); stock_id = g_value_get_string (value); if (stock_id && strlen (stock_id) == 0) stock_id = NULL; gtk_tool_button_set_stock_id (GTK_TOOL_BUTTON (object), s...
false
false
false
false
false
0
per_scan_setup (j_compress_ptr cinfo) /* Do computations that are needed before processing a JPEG scan */ /* cinfo->comps_in_scan and cinfo->cur_comp_info[] are already set */ { int ci, mcublks, tmp; jpeg_component_info *compptr; int data_unit = cinfo->data_unit; if (cinfo->comps_in_scan == 1) { /* ...
false
false
false
false
false
0
_rtl92s_firmware_downloadcode(struct ieee80211_hw *hw, u8 *code_virtual_address, u32 buffer_len) { struct rtl_priv *rtlpriv = rtl_priv(hw); struct sk_buff *skb; struct rtl_tcb_desc *tcb_desc; unsigned char *seg_ptr; u16 frag_threshold = MAX_FIRMWARE_CODE_SIZE; u16 frag_length, frag_offset = 0; u16 extra_descof...
false
false
false
false
false
0
G_quant_set_pos_infinite_rule(struct Quant *q, DCELL dRight, CELL c) { q->infiniteDRight = dRight; q->infiniteCRight = c; quant_update_limits(q, dRight, dRight, c, c); /* update lookup table */ if (q->fp_lookup.active) { q->fp_lookup.inf_dmax = q->infiniteDRight; q->fp_lookup.inf_max = q->infinit...
false
false
false
false
false
0
free_mi_tree(struct mi_root *parent) { struct mi_node *p, *q; for(p = parent->node.kids ; p ; ){ q = p; p = p->next; free_mi_node(q); } if (use_shm) shm_free(parent); else pkg_free(parent); }
false
true
false
false
false
1
xsh_interpolate_spectrum( int biny, int oversample, int absorder, double lambda_step, cpl_vector *init_pos, cpl_vector *std_flux, cpl_vector *std_err, cpl_vector *std_qual, cpl_vector *opt_flux, cpl_vector *opt_err, cpl_vector *opt_qual, cpl_vector **res_pos, cpl_vector **res_std_flux, cpl_vector **res_...
false
false
false
false
false
0
mainWindows() { clean(); QList<BrowserMainWindow*> list; for (int i = 0; i < m_mainWindows.count(); ++i) list.append(m_mainWindows.at(i)); return list; }
false
false
false
false
false
0
try_swap_copy_prop (loop, replacement, regno) const struct loop *loop; rtx replacement; unsigned int regno; { rtx insn; rtx set = NULL_RTX; unsigned int new_regno; new_regno = REGNO (replacement); for (insn = next_insn_in_loop (loop, loop->scan_start); insn != NULL_RTX; insn = n...
false
false
false
false
false
0
ext4_es_list_add(struct inode *inode) { struct ext4_inode_info *ei = EXT4_I(inode); struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); if (!list_empty(&ei->i_es_list)) return; spin_lock(&sbi->s_es_lock); if (list_empty(&ei->i_es_list)) { list_add_tail(&ei->i_es_list, &sbi->s_es_list); sbi->s_es_nr_inode++; ...
false
false
false
false
false
0
filetype_from_mode(mode_t mode) { sigar_file_type_e type; switch (mode & S_IFMT) { case S_IFREG: type = SIGAR_FILETYPE_REG; break; case S_IFDIR: type = SIGAR_FILETYPE_DIR; break; case S_IFLNK: type = SIGAR_FILETYPE_LNK; break; case S_IFCHR: type = SIGAR_FILETY...
false
false
false
false
false
0