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
fr_command_finalize (GObject *object) { FrCommand *self; g_return_if_fail (object != NULL); g_return_if_fail (FR_IS_COMMAND (object)); self = FR_COMMAND (object); _g_object_unref (self->process); _fr_command_remove_temp_work_dir (self); _g_clear_object (&self->priv->temp_extraction_dir); if (G_OBJECT_CLASS ...
false
false
false
false
false
0
dico_stream_readln(dico_stream_t stream, char *buf, size_t size, size_t *pread) { int rc; char c; size_t n = 0; if (size == 0) return EIO; size--; for (n = 0; n < size && (rc = dico_stream_read(stream, &c, 1, NULL)) == 0; n++) { *buf++ = c; if (c == '\n') break; } *buf = ...
false
false
false
false
true
1
dynl_obj_print (SCM exp, SCM port, scm_print_state *pstate) { scm_puts ("#<dynamic-object ", port); scm_iprin1 (DYNL_FILENAME (exp), port, pstate); if (DYNL_HANDLE (exp) == NULL) scm_puts (" (unlinked)", port); scm_putc ('>', port); return 1; }
false
false
false
false
false
0
_archive_entry_copy_symlink_l(struct archive_entry *entry, const char *linkname, size_t len, struct archive_string_conv *sc) { int r; r = archive_mstring_copy_mbs_len_l(&entry->ae_symlink, linkname, len, sc); if (linkname != NULL && r == 0) entry->ae_set |= AE_SET_SYMLINK; else entry->ae_set &= ~AE_SE...
false
false
false
false
false
0
cdrom_has_defect_mgt(struct cdrom_device_info *cdi) { struct packet_command cgc; char buffer[16]; __be16 *feature_code; int ret; init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); cgc.cmd[0] = GPCMD_GET_CONFIGURATION; cgc.cmd[3] = CDF_HWDM; cgc.cmd[8] = sizeof(buffer); cgc.quiet = 1; if ((ret...
true
true
false
false
false
1
giraffe_psfdata_get_bin(const GiPsfData* self, cxint fiber, cxint bin) { const cxchar* const fctid = "giraffe_psfdata_get_bin"; cxdouble* data = NULL; cx_assert(self != NULL); if ((fiber < 0) || (fiber >= self->nfibers) || (bin < 0) || (bin >= self->nbins)) { cpl_error_set(fctid, CP...
false
false
false
true
false
1
_calculate_authentication_code_len (uint8_t integrity_algorithm) { int authentication_code_len; assert ((integrity_algorithm == IPMI_INTEGRITY_ALGORITHM_NONE || integrity_algorithm == IPMI_INTEGRITY_ALGORITHM_HMAC_SHA1_96 || integrity_algorithm == IPMI_INTEGRITY_ALGORITHM_HMAC_MD5_128 ...
false
false
false
false
false
0
auth_html(const char *host, int port, const char *user_name) { FILE *fp; int need_host = 1; if (!user_name) user_name = ""; if (!host || !strlen(host)) host = ""; printf("Content-Type: text/html\r\n\r\n"); printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3...
false
false
false
false
false
0
alloc_new_range(struct dma_ops_domain *dma_dom, bool populate, gfp_t gfp) { int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT; struct amd_iommu *iommu; unsigned long i, old_size, pte_pgsize; #ifdef CONFIG_IOMMU_STRESS populate = false; #endif if (index >= APERTURE_MAX_RANGES) return -ENOMEM; d...
false
false
false
false
true
1
is_learned_char(c, level) Character c; int level; { int i,n; /* in case of okurigana (= hiragana,katakana: learned character) */ if (c.c1 == 0xA4 || c.c1 == 0xA5) return 1; if ((c.c1 == 0xA1) && ((c.c2 >= 0xB3 && c.c2 <= 0xB6) || (c.c2 >= 0xB8 && c.c2 <= 0xBA) || (c.c2 == 0xBC))) return ...
false
false
false
false
false
0
xmldoc_parse_parameter(struct ast_xml_node *fixnode, const char *tabs, struct ast_str **buffer) { const char *paramname; struct ast_xml_node *node = fixnode; int hasarguments, printed = 0; char *internaltabs; if (strcasecmp(ast_xml_node_get_name(node), "parameter")) { return; } hasarguments = xmldoc_has_insi...
false
false
false
false
false
0
_gcry_prime_group_generator (gcry_mpi_t *r_g, gcry_mpi_t prime, gcry_mpi_t *factors, gcry_mpi_t start_g) { gcry_mpi_t tmp = mpi_new (0); gcry_mpi_t b = mpi_new (0); gcry_mpi_t pmin1 = mpi_new (0); gcry_mpi_t g = start_g? mpi_copy (start_g) : mpi_se...
false
false
false
false
false
0
CmdSerial(unsigned char *OutBuffer, int Len, unsigned char *RetBuffer) { #define TMP_BUFF_LEN 1024 unsigned char InpBuff[TMP_BUFF_LEN+1] ; unsigned char TmpBuff[3] ; int i, ErrCode ; unsigned char *p ; int BuffLen ; /* The default error code (no received character) */ ErrCode = ERR_COM_NO_CHARS ; Sen...
false
false
false
false
true
1
krb5int_aes_encrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data, size_t num_data) { unsigned char iv[BLOCK_SIZE], block[BLOCK_SIZE]; unsigned char blockN2[BLOCK_SIZE], blockN1[BLOCK_SIZE]; size_t input_length, nblocks, ncontig; struct iov_cursor cursor; if (init_k...
true
true
false
false
false
1
GB_ArrayNew(GB_ARRAY *array, TYPE type, int size) { int np; CTYPE ctype; if (size > 0) { GB_Push(1, GB_T_INTEGER, size); np = 1; } else { np = 0; } ctype.id = T_NULL; *array = OBJECT_create(CARRAY_get_array_class((CLASS *)type, ctype), NULL, NULL, np); }
false
false
false
false
false
0
dsnode_dfs ( const int jcol, /* in - start of the supernode */ const int kcol, /* in - end of the supernode */ const int *asub, /* in */ const int *xa_begin, /* in */ const int *xa_end, /* in */ int *xprune, /* out */ int *marker, /* modif...
false
false
false
false
false
0
write(const void *buff, size_t len) { if (myFD < 0) { ArLog::log(ArLog::Terse, "ArSocket::write: called after socket closed"); return 0; } struct timeval tval; fd_set fdSet; tval.tv_sec = 0; tval.tv_usec = 0; FD_ZERO(&fdSet); FD_SET(myFD, &fdSet); #ifdef WIN32 if (select(0, NULL, &fdSet, N...
false
false
false
false
false
0
savage_disable_mmio(struct savagefb_par *par) { unsigned char val; DBG("savage_disable_mmio\n"); if (par->chip >= S3_SAVAGE4) { vga_out8(0x3d4, 0x40, par); val = vga_in8(0x3d5, par); vga_out8(0x3d5, val | 1, par); } }
false
false
false
false
false
0
complain_about_gletop(bool has_top, ostream& out) { if (has_top) { // If the user has GLE_TOP, then it points to the wrong location // Let him first try to remove it, to see if that works out << "GLE_TOP might be pointing to an incorrect location." << endl; out << "Try removing GLE_TOP from your environment." ...
false
false
false
false
false
0
bind (const char *addr_) { if (unlikely (ctx_terminated)) { errno = ETERM; return -1; } // Parse addr_ string. std::string protocol; std::string address; int rc = parse_uri (addr_, protocol, address); if (rc != 0) return -1; rc = check_protocol (protocol); ...
false
false
false
false
false
0
hash_table_lookup(struct hash_table *h, const char *key) { struct entry *e; unsigned hash, index; hash = h->hash_func(key); index = hash % h->bucket_count; e = h->buckets[index]; while(e) { if(hash == e->hash && !strcmp(key, e->key)) { return e->value; } e = e->next; } return 0; }
false
false
false
false
false
0
run(const gchar *name , gint n_params , const GimpParam *param , gint *nreturn_vals , GimpParam **return_vals) { static GimpParam values[1]; GimpRunMode run_mode; GimpPDBStatusType status = GIMP_PDB_SUCCESS; gint32 image_id; gint32 drawable_id; char *filtermacro_file1; char *fi...
false
false
false
false
false
0
mock_module_set_object (CK_OBJECT_HANDLE object, CK_ATTRIBUTE_PTR attrs, CK_ULONG n_attrs) { CK_ULONG i; GPkcs11Array *atts; g_return_if_fail (object != 0); g_return_if_fail (the_objects); atts = g_hash_table_lookup (the_objects, GUINT_TO_POINTER (object)); ...
false
false
false
false
false
0
tbcb( FL_OBJECT * obj, long data FL_UNUSED_ARG ) { FLI_BROWSER_SPEC *psp = obj->parent->spec; double vp = fli_tbox_get_rel_yoffset( obj ); double hp = fli_tbox_get_rel_xoffset( obj ); if ( obj->returned & FL_RETURN_CHANGED ) { if ( hp != psp->old_hp ) { fl_...
false
false
false
false
false
0
dump(ostream&o) const { o << "<event=" << event_->name() << ">"; }
false
false
false
false
false
0
cprintfr(COMPLEX *c) { NUMBER *r; NUMBER *i; r = c->real; i = c->imag; if (!qiszero(r) || qiszero(i)) qprintfr(r, 0L, FALSE); if (qiszero(i)) return; if (!qiszero(r) && !qisneg(i)) math_chr('+'); zprintval(i->num, 0L, 0L); math_chr('i'); if (qisfrac(i)) { math_chr('/'); zprintval(i->den, 0L, 0L); ...
false
false
false
false
false
0
lffamily(z) char *z; { INT quasi, robu, f; quasi = robu = 0; while ((z[0]=='q') | (z[0]=='r')) { quasi |= (z[0]=='q'); robu |= (z[0]=='r'); z++; } f = pmatch(z,famil,fvals,16,-1); if ((z[0]=='o') | (z[0]=='a')) robu = 0; if (f==-1) { WARN(("unknown family %s",z)); f = TGAUS; } if (quasi...
false
false
false
false
false
0
var_extensible_pass_persist(struct variable *vp, oid * name, size_t * length, int exact, size_t * var_len, WriteMethod ** write_method) { oid newname[MAX_OID_LEN]; int i, rtest...
false
false
false
false
false
0
init_chan(int chan, struct IsdnCardState *csta) { struct Channel *chanp = csta->channel + chan; int err; chanp->cs = csta; chanp->bcs = csta->bcs + chan; chanp->chan = chan; chanp->incoming = 0; chanp->debug = 0; chanp->Flags = 0; chanp->leased = 0; err = init_PStack(&chanp->b_st); if (err) return err; c...
false
false
false
false
false
0
vbrpsy_compute_fft_l(lame_internal_flags * gfc, const sample_t *const buffer[2], int chn, int gr_out, FLOAT fftenergy[HBLKSIZE], FLOAT(*wsamp_l)[BLKSIZE]) { SessionConfig_t const *const cfg = &gfc->cfg; PsyStateVar_t *psv = &gfc->sv_psy; plotting_data *plt = cfg->analysis ? gfc->pinfo :...
false
false
false
false
false
0
LoadImage(const std::string& filename, const PG_Color& key) { DeleteThemedSurface(my_cachedSrf); my_cachedSrf = NULL; if(PG_ThemeWidget::LoadImage(filename, key)) { return true; } return false; }
false
false
false
false
false
0
trigger_rtnl(int index, void *user_data) { struct vpn_rtnl *rtnl = user_data; if (rtnl->newlink) { unsigned short type = __vpn_ipconfig_get_type_from_index(index); unsigned int flags = __vpn_ipconfig_get_flags_from_index(index); rtnl->newlink(type, index, flags, 0); } }
false
false
false
false
false
0
timestamptz_zone(PG_FUNCTION_ARGS) { text *zone = PG_GETARG_TEXT_P(0); TimestampTz timestamp = PG_GETARG_TIMESTAMPTZ(1); Timestamp result; int tz; char tzname[TZ_STRLEN_MAX + 1]; int len; char *lowzone; int type, val; pg_tz *tzp; if (TIMESTAMP_NOT_FINITE(timestamp)) PG_RETURN_TIMESTAMP(...
true
true
false
false
true
1
gnome_bg_get_color (GnomeBG *bg, GDesktopBackgroundShading *type, GdkColor *primary, GdkColor *secondary) { g_return_if_fail (bg != NULL); if (type) *type = bg->color_type; if (primary) *primary = bg->primary; if (secondary) *secondary =...
false
false
false
false
false
0
distance(const CoordPoint &p, const CoordPoint &q) { size_t i; double dist = 0.0; if (w) { for (i=0; i<p.size();i++) dist += (*w)[i]*(p[i]-q[i])*(p[i]-q[i]); } else { for (i=0; i<p.size();i++) dist += (p[i]-q[i])*(p[i]-q[i]); } return dist; }
false
false
false
false
false
0
cw1200_spi_suspend(struct device *dev) { struct hwbus_priv *self = spi_get_drvdata(to_spi_device(dev)); if (!cw1200_can_suspend(self->core)) return -EAGAIN; /* XXX notify host that we have to keep CW1200 powered on? */ return 0; }
false
false
false
false
false
0
sm_set_script_size(mem_obj_t *mem, struct _state *s, int script_nr) { resource_t *script = scir_find_resource(s->resmgr, sci_script, script_nr, 0); resource_t *heap = scir_find_resource(s->resmgr, sci_heap, script_nr, 0); mem->data.script.script_size = script->size; mem->data.script.heap_size = 0; /* Set later */...
false
false
false
false
false
0
__rb_erase_color(struct rb_node *node, struct rb_node *parent, struct rb_root *root) { struct rb_node *other; while ((!node || rb_is_black(node)) && node != root->rb_node) { if (parent->rb_left == node) { other = parent->rb_right; if (rb_is_red(other)) { rb_set_black(other); rb_set_red(...
false
false
false
false
false
0
hashclient(struct dupinfo *di) { int i; char buf[BUFSIZ]; char *filename; FILE *f; if (di->cmdfp == 0 && (di->cmdfp=fdopen(di->fd, "w+")) == 0) { perror("fopen"); close(di->fd); return (-1); } if (fgets(buf, sizeof(buf), di->cmdfp) == 0 || (filename=strtok(buf, "\n")) == 0) { fclose(di->cmdfp); close...
true
true
false
false
true
1
widen(const std::string& str) { std::basic_string<cxxtools::Char> ret; size_type len = str.length(); ret.privreserve(len); for (size_type n = 0; n < len; ++n) ret += cxxtools::Char( str[n] ); return ret; }
false
false
false
false
false
0
sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all) { char *buf_orig; int i; buf_orig = buf; if (ports[0] == 0) { if (all) buf += sprintf(buf, "all"); return buf - buf_orig; } for (i = 0; ports[i]; i++) { if (PORT_INTERVAL(ports[i])) { /* buf += sprintf(buf, "%d:%d ", ntohs(PORT_V...
false
false
false
false
false
0
get_apr_locking_mechanism () { char *name = getenv ("MOD_MONO_LOCKING_MECHANISM"); int i = 0; DEBUG_PRINT (2, "Requested locking mechanism name: %s", name); if (!name) return APR_LOCK_DEFAULT; while (lockMechanisms [i].name) { if (!strncasecmp (name, lockMechanisms [i].name, strlen (lockMechanisms [i].name)))...
false
false
false
false
false
0
AcpiDbDumpPldBuffer ( ACPI_OBJECT *ObjDesc) { ACPI_OBJECT *BufferDesc; ACPI_PLD_INFO *PldInfo; UINT8 *NewBuffer; ACPI_STATUS Status; /* Object must be of type Package with at least one Buffer element */ if (ObjDesc->Type != A...
false
false
false
false
false
0
multiplicative() { int Left = factor(); while (Pos < Text.length()) if (Text[Pos] == '*') { ++Pos; ws(); int Right = factor(); Left *= Right; } else if (Text[Pos] == '/') { ++Pos; ws(); int Right = factor(); if (Right == 0) // TODO error Left = 0; else Left /= Right; ...
false
false
false
false
false
0
tda10021_readreg (struct tda10021_state* state, u8 reg) { u8 b0 [] = { reg }; u8 b1 [] = { 0 }; struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; int ret; ret = i2c_transfer...
false
false
false
false
false
0
handle_headers_end(struct ntb_mail_parser *parser, struct ntb_error **error) { if (!parser->had_from) { ntb_set_error(error, &ntb_mail_parser_error, NTB_MAIL_PARSER_ERROR_MISSING_HEADER, ...
false
false
false
false
false
0
operator()(const as_value& v) { as_object* o = toObject(v, getVM(_fn)); if (!o) return; #ifdef GNASH_DEBUG_BROADCASTER static stats::KeyLookup stats("BroadcasterVisitor call operator", getVM(_fn), 1); stats.check(_eventURI.name); #endif as_value method; ...
false
false
false
false
false
0
Alignment_RYO_tokenise_PTO(GPtrArray *token_list, gchar *format, gint pos){ register gint move = 1; switch(format[pos]){ case 'q': move += Alignment_RYO_tokenise_PTO_strand(token_list, format, pos+1, TRUE); break; case 't...
false
false
false
false
false
0
main(int argc, char *argv[]) { fswebcam_config_t *config; /* Prepare the configuration structure. */ config = calloc(sizeof(fswebcam_config_t), 1); if(!config) { WARN("Out of memory."); return(-1); } /* Set defaults and parse the command line. */ if(fswc_getopts(config, argc, argv)) return(-1); /* Op...
false
false
false
false
true
1
add_family_to_write_order(git_pobject **wo, unsigned int *endp, git_pobject *po) { git_pobject *root; for (root = po; root->delta; root = root->delta) ; /* nothing */ add_descendants_to_write_order(wo, endp, root); }
false
false
false
false
false
0
cifs_put_tcon(struct cifs_tcon *tcon) { unsigned int xid; struct cifs_ses *ses = tcon->ses; cifs_dbg(FYI, "%s: tc_count=%d\n", __func__, tcon->tc_count); spin_lock(&cifs_tcp_ses_lock); if (--tcon->tc_count > 0) { spin_unlock(&cifs_tcp_ses_lock); return; } list_del_init(&tcon->tcon_list); spin_unlock(&cifs...
false
false
false
false
false
0
pstore_check_syslog_permissions(struct pstore_private *ps) { switch (ps->type) { case PSTORE_TYPE_DMESG: case PSTORE_TYPE_CONSOLE: return check_syslog_permissions(SYSLOG_ACTION_READ_ALL, SYSLOG_FROM_READER); default: return 0; } }
false
false
false
false
false
0
writeToStream(mrpt::utils::CStream &out,int *version) const { if (version) *version = 2; else { writeToStreamRender(out); out << m_xMin << m_xMax; out << m_yMin << m_yMax; writeToStreamTexturedObject(out); } }
false
false
false
false
false
0
H5O_ainfo_copy(const void *_mesg, void *_dest) { const H5O_ainfo_t *ainfo = (const H5O_ainfo_t *)_mesg; H5O_ainfo_t *dest = (H5O_ainfo_t *) _dest; void *ret_value; /* Return value */ FUNC_ENTER_NOAPI_NOINIT /* check args */ HDassert(ainfo); if(!dest && NULL == ...
false
false
false
false
false
0
ship_change_mode() { err_when( id != MSG_U_SHIP_CHANGE_MODE ); // packet structure <unit recno> <new mode> short *shortPtr = (short *)data_buf; short unitCount =1; validate_selected_unit_array(shortPtr, unitCount); if( unitCount > 0) { Unit *unitPtr = unit_array[*shortPtr]; UnitMarine *shipPtr; if( unitPt...
false
false
false
false
true
1
patterns() const { QStringList patternList; QList<QTreeWidgetItem *> checkedItems; getCheckedItems(checkedItems, d->mimeTypeTree); foreach(QTreeWidgetItem* item, checkedItems) { KMimeType::Ptr p = KMimeType::mimeType( item->parent()->text(0) + '/' + item->text(0) ); Q_ASSERT(p); ...
false
false
false
false
false
0
readMeshNodes(int data_set) { Rc rc; int nd_id; static Point3 point; readFileLine(infile, read_buffer); // Read (node-id,node point) line-pairs. int internal_id = 0; while (! endofDataset(read_buffer)) { // First line per node nd_id = atol(read_buffer); // Second line per node readFileLine(infile...
false
false
false
false
false
0
get_relative_file_list (GList *rel_list, GList *file_list, const char *base_dir) { GList *scan; int base_len; if (base_dir == NULL) return NULL; base_len = 0; if (strcmp (base_dir, "/") != 0) base_len = strlen (base_dir); for (scan = file_list; scan; scan = scan->next) { char *uri = sc...
false
false
false
false
false
0
compute(int eflag, int vflag) { if (eflag || vflag) { ev_setup(eflag,vflag); } else evflag = vflag_fdotr = 0; const int nall = atom->nlocal + atom->nghost; const int nthreads = comm->nthreads; const int inum = list->inum; if (!hbcount_thr) { hbcount_thr = new double[nthreads]; hbeng_thr = new ...
false
false
false
false
false
0
gst_dicetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps, GstCaps * outcaps) { GstDiceTV *filter = GST_DICETV (btrans); GstStructure *structure; gboolean ret = FALSE; structure = gst_caps_get_structure (incaps, 0); GST_OBJECT_LOCK (filter); if (gst_structure_get_int (structure, "width", &filte...
false
false
false
false
false
0
parse_property(DBusConnection *conn, const char *path, const char *key, DBusMessageIter *entry, DBusMessageIter *properties) { DBusMessageIter var; printf("property %s found\n", key); if (dbus_message_iter_get_arg_type(entry) != DBUS_TYPE_VARIANT) return -EINVAL; dbus_message_iter_recurse(ent...
false
false
false
false
false
0
get_ascii_item( const char *word, int type, int *int_val, unsigned int *uint_val, double *double_val ) { switch (type) { case PLY_CHAR: case PLY_UCHAR: case PLY_SHORT: case PLY_USHORT: case PLY_INT: *int_val = atoi (word); *uint_val = *int_val; *double_val = *int_val; ...
false
false
false
false
false
0
StopSearch(bool globalOnly) { if (m_searchType == GlobalSearch) { m_currentSearch = -1; delete m_searchPacket; m_searchPacket = NULL; m_searchInProgress = false; // Order is crucial here: on wx_MSW an additional event can be generated during the stop. // So the packet has to be deleted first, so that OnGl...
false
false
false
false
false
0
gtk_subimasel_save(gtk_subimage_sel_t * sis, FILE *f) { int lp; fprintf(f,"<SIS>\n<orig>\n%u %u\n</orig>\n", sis->orig_width, sis->orig_height); fprintf(f,"<rect>\n%d %d %d %d\n</rect>\n", (int)sis->subimage.x, (int)sis->subimage.y, (int)sis->subimage.width, (int)sis->subimage.height ); for(lp=0;lp...
false
false
false
false
false
0
insert_window_level_cb (GtkWidget * widget, gpointer data) { AmitkWindowEdit * window_edit = data; AmitkWindow window; g_return_if_fail(AMITK_IS_WINDOW_EDIT(window_edit)); g_return_if_fail(AMITK_IS_DATA_SET(window_edit->data_set)); window = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "which_wind...
false
false
false
false
false
0
long_classic_div(PyObject *v, PyObject *w) { PyLongObject *a, *b, *div; CONVERT_BINOP(v, w, &a, &b); if (Py_DivisionWarningFlag && PyErr_Warn(PyExc_DeprecationWarning, "classic long division") < 0) div = NULL; else if (l_divmod(a, b, &div, NULL) < 0) div = NULL; Py_DECREF(a)...
false
false
false
false
false
0
qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { Q_ASSERT(staticMetaObject.cast(_o)); ClamNetworkCanvas *_t = static_cast<ClamNetworkCanvas *>(_o); switch (_id) { case 0: _t->browseUrlRequest((*reinterpret_cast< co...
false
false
false
false
false
0
collect_block_first_order_derivatives() { //! vector for an equation or a variable indicates the block number vector<int> equation_2_block, variable_2_block; unsigned int nb_blocks = getNbBlocks(); equation_2_block = vector<int>(equation_reordered.size()); variable_2_block = vector<int>(variable_reordered.siz...
false
false
false
false
false
0
luaCreatureSpawn(lua_State *L) { player_t *player = player_get_checked_lua(L, 1); creature_t *parent = lua_isnil(L, 2) ? NULL : creature_get_checked_lua(L, 2); int x = luaL_checklong(L, 3); int y = luaL_checklong(L, 4); creature_type type = luaL_checklong(L, 5); if (t...
false
false
false
false
false
0
flimage_from_pixmap_( FL_IMAGE * im, Pixmap pixmap, int w, int h ) { XImage *ximage; int status; if ( w == 0 || h == 0 ) { unsigned int ww, hh, bjunk, ...
false
false
false
false
false
0
mic_get_smpt_ref_count(struct mic_device *mdev, dma_addr_t dma_addr, size_t size, s64 *ref, u64 *smpt_start) { u64 start = dma_addr; u64 end = dma_addr + size; int i = 0; while (start < end) { ref[i++] = min(mic_smpt_align_high(mdev, start + 1), end) - start; start = mic_smpt_align_high(mdev, start ...
false
false
false
false
false
0
tx_dgram_destroy(txdrv_t *tx) { struct attr *attr = tx->opaque; udp_sched_detach(attr->us, tx); WFREE(attr); }
false
false
false
false
false
0
recurseBasicBlock(const BasicBlock *BB) { // break recursion if already visited if (BBisUnvisited.find(BB) == BBisUnvisited.end()) return; BBisUnvisited.erase(BB); if (!BB) return; for (succ_const_iterator bbi = succ_begin(BB), bbe = succ_end(BB); bbi != bbe; ++bbi) { recurseBasicBlock(*bbi); }...
false
false
false
false
false
0
gen_roundsf2 (rtx operand0, rtx operand1) { rtx _val = 0; start_sequence (); { rtx operands[2]; operands[0] = operand0; operands[1] = operand1; #line 14624 "../../src/gcc/config/i386/i386.md" { if (optimize_insn_for_size_p ()) FAIL; if (TARGET_64BIT || (SFmode != DFmode)) ix86_expand_roun...
false
false
false
false
false
0
DXCacheSearch(char *id, Pointer *data) { Object o; *data = NULL; o = DXGetCacheEntry(id, 0, 0); if (o) *data = DXGetPrivateData((Private)o); DXDelete (o); return(OK); }
false
false
false
false
false
0
Process_ShowWindows(int processId) { if(processId) { X11Display * xGlobalDisplay = IS_XGetDisplay(); xa_NET_WM_PID = XInternAtom(xGlobalDisplay, "_NET_WM_PID", 1); xa_activeWindow = XInternAtom(xGlobalDisplay, "_NET_ACTIVE_WINDOW", 1); EnumWindowBringToTop(xGlobalDisplay, (*(&(*((_XPrivDisplay)xGlobalDisplay)).screens...
false
false
false
false
false
0
pixSeedfillBB(PIX *pixs, L_STACK *stack, l_int32 x, l_int32 y, l_int32 connectivity) { BOX *box; PROCNAME("pixSeedfillBB"); if (!pixs || pixGetDepth(pixs) != 1) return (BOX *)ERROR_PTR("pixs undefined or not 1 bpp", procName, NULL); ...
false
false
false
false
false
0
setSelectedColor( const QColor& color ) { d->highlightedLinkColor = color; if ( d->timer->isActive() ) d->setLinkColor( color ); }
false
false
false
false
false
0
_dxf_deleteHwObject(Pointer p) { hwObjectP gPriv = (hwObjectP)p; ENTRY(("_dxf_deleteHwObject(0x%x)", p)); if(gPriv && gPriv->delete) { (*gPriv->delete)(gPriv->item); gPriv->item = NULL; } if(gPriv->item) DXFree(gPriv->item); DXFree(gPriv); EXIT(("OK")); return OK; }
false
false
false
true
false
1
Connect_Transpose(Array a, int num, char *element) { Array na = a; int i, ndims[MAXRANK]; if (!strcmp(element, "triangles") || !strcmp(element, "tetrahedra")) { /* construct a new dim array with 0<->1, and call item_tr() */ ndims[0] = 1; ndims[1] = 0; for(i=2; i<num; i++) ndims[i] = i; na = I...
false
false
false
false
false
0
ath3k_probe(struct usb_interface *intf, const struct usb_device_id *id) { const struct firmware *firmware; struct usb_device *udev = interface_to_usbdev(intf); int ret; BT_DBG("intf %p id %p", intf, id); if (intf->cur_altsetting->desc.bInterfaceNumber != 0) return -ENODEV; /* match device ID in ath3k blac...
false
false
false
false
false
0
parse_escape(uint8_t *ch_p, const char** str_p) { uint16_t val; if ((*str_p)[0] && isdigit((*str_p)[0]) && (*str_p)[1] && isdigit((*str_p)[1]) && (*str_p)[2] && isdigit((*str_p)[2])) { val = (uint16_t)(((*str_p)[0] - '0') * 100 + ((*str_p)[1] - '0') * 10 + ((*str_p)[2] - '0')); if (val ...
false
false
false
false
false
0
find_tag (const char *tag, const GByteArray *array, gsize start_at, gsize *out_pos) { gsize i, taglen; gsize len = array->len - start_at; g_return_val_if_fail (out_pos != NULL, FALSE); taglen = strlen (tag); if (len >= taglen) { for (i = 0; i < len - taglen + 1; i++) { if (memc...
true
true
false
false
false
1
runModal (XAP_Frame *pFrame) { // Build the window's widgets and arrange them m_wDialog = _constructWindow (); UT_return_if_fail (m_wDialog); // save for use with event m_pFrame = pFrame; // Populate the window's data items _populateWindowData (); abiRunModalDialog (GTK_DIALOG (m_wDia...
false
false
false
false
false
0
eth_disable_tethering(struct connman_technology *technology, const char *bridge) { GList *list; for (list = eth_interface_list; list; list = list->next) { int index = GPOINTER_TO_INT(list->data); struct connman_device *device = connman_device_find_by_index(index); connman_inet_remove_from_bridge(inde...
false
false
false
false
false
0
abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info) { struct nouveau_bo_priv *nvbo = nouveau_bo(bo); nvbo->map_handle = info->map_handle; bo->handle = info->handle; bo->size = info->size; bo->offset = info->offset; bo->flags = 0; if (info->domain & NOUVEAU_GEM_DOMAIN_VRAM) bo->flags |= NO...
false
false
false
false
false
0
is_spd_100(struct net_device *dev) { struct de4x5_private *lp = netdev_priv(dev); u_long iobase = dev->base_addr; int spd; if (lp->useMII) { spd = mii_rd(lp->phy[lp->active].spd.reg, lp->phy[lp->active].addr, DE4X5_MII); spd = ~(spd ^ lp->phy[lp->active].spd.value); spd &= lp->phy[lp->active].spd.ma...
false
false
false
false
false
0
recover_worker(jk_ws_service_t *s, status_endpoint_t *p, jk_logger_t *l) { const char *worker; const char *sub_worker; jk_worker_t *jw = NULL; lb_sub_worker_t *wr = NULL; ajp_worker_t *aw = NULL; status_worker_t *w = p->worker; JK_TRACE_EN...
false
false
false
false
false
0
att_DS_equal_p( att_DS att1,att_DS att2) { int i, num; if (eqstring(att1->type, att2->type) == FALSE) return(FALSE); if (eqstring(att1->sub_type, att2->sub_type) == FALSE) return(FALSE); if (eqstring(att1->dscrp, att2->dscrp) == FALSE) return(FALSE); if (att1->n_props != att2->n_props) return...
false
false
false
false
false
0
get_next_mapping(struct pool *pool) { struct dm_thin_new_mapping *m = pool->next_mapping; BUG_ON(!pool->next_mapping); memset(m, 0, sizeof(struct dm_thin_new_mapping)); INIT_LIST_HEAD(&m->list); m->bio = NULL; pool->next_mapping = NULL; return m; }
false
false
false
false
false
0
gw_helper_db_catalog_get_nb_db_disk_of_type ( GWDBContext *context, GWDBDiskType type) { GWCatalogPlugin *plugin = NULL; GWDBDisk **disks = NULL; gint nb = -1, i = 0; if ( context != NULL ) { if ( (plugin = ((GWCatalogPlugin*)gw_db_context_get_plugin ( context))) != NULL ) { nb = 0; if ( (disks = plugin-...
false
false
false
false
false
0
_TTF_BoundedPrintInternal( _TTF_font_t font , const char * text , unsigned int cmode , unsigned int align , FNT_window_t box , const float * color ) { qboolean mustQuit = false; const char * ptr = text; unsigned int cHeight = 0; unsigned int nHeight = 0; unsigned int maxWidth = 0; _FNT_...
false
false
false
false
false
0
ccache(void *vp) { int *msgvec = vp, *ip; struct message *mp; if (mb.mb_type != MB_IMAP) { fprintf(stderr, "Not connected to an IMAP server.\n"); return 1; } if (cached_uidvalidity(&mb) == 0) { fprintf(stderr, "The current mailbox is not cached.\n"); return 1; } for (ip = msgvec; *ip; ip++) { mp = &me...
false
false
false
false
false
0
direct_hash_insert( DirectHash *hash, unsigned long key, void *value ) { int pos; Element *element; D_MAGIC_ASSERT( hash, DirectHash ); D_ASSERT( value != NULL ); /* Need to resize the hash table? */ if ((hash->count + hash->remov...
false
false
false
false
false
0
new_add_xf(xfile **pxf, char *name, unsigned char *buf, unsigned long len, file_type ftype, targ_type ttype) { xfile *xf; xf = add_xf(pxf); if ((xf->name = strdup(name)) == NULL) error("new_add_xf: strdup failed"); xf->buf = buf; xf->len = len; xf->ftype = ftype; xf...
false
false
false
false
false
0
APar_FindParentAtom(int order_in_tree, uint8_t this_atom_level) { short thisAtom = 0; short iter = order_in_tree; while (parsedAtoms[iter].AtomicNumber != 0) { iter = APar_FindPrecedingAtom(iter); if (parsedAtoms[iter].AtomicLevel == this_atom_level-1) { thisAtom = iter; break; } } return thisAtom; }
false
false
false
false
false
0
operator==(const int value) const { return this->Type == LABEL && this->Int == value; }
false
false
false
false
false
0
storeUfsDirSwapSubDir(SwapDir * sd, int subdirn) { ufsinfo_t *ufsinfo = (ufsinfo_t *) sd->fsdata; LOCAL_ARRAY(char, fullfilename, SQUID_MAXPATHLEN); assert(0 <= subdirn && subdirn < ufsinfo->l1); snprintf(fullfilename, SQUID_MAXPATHLEN, "%s/%02X", sd->path, subdirn); return fullfilename; }
false
false
false
false
false
0
wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { int rc = 0, status, new_options, new_timeout; union { struct watchdog_info __user *ident; int __user *i; } uarg; uarg.i = (int __user *)arg; switch (cmd) { case WDIOC_GETSUPPORT: return copy_to_user(uarg.ident, &ident, sizeof(iden...
false
false
false
false
false
0
copy_extension(Gif_Extension *src) { Gif_Extension *dest = Gif_NewExtension(src->kind, src->application); if (!dest) return 0; dest->data = Gif_NewArray(uint8_t, src->length); dest->length = src->length; dest->free_data = Gif_DeleteArrayFunc; if (!dest->data) { Gif_DeleteExtension(dest); return 0; ...
false
false
false
false
false
0