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
getSpotLocation(icp, id, nest, offset, data, len) IMIC *icp; unsigned int id; int nest; int offset; char *data; int len; { IMConnection *conn = icp->im->connection; IMPSAttributes *ap = &icp->preedit_attr; TRACE(("imlib:getSpotLocation()\n")); if (nest == NEST_STATUS) { IMCancelRequest(conn, offset);...
false
false
false
false
false
0
HB_GSUB_Add_Feature( HB_GSUBHeader* gsub, HB_UShort feature_index, HB_UInt property ) { HB_UShort i; HB_Feature feature; HB_UInt* properties; HB_UShort* index; HB_UShort lookup_count; /* Each feature can only be added once */ if ( !gsub || featur...
false
false
false
false
false
0
get_scalar_value(const char* as_something) const { VObject* unconst_this=const_cast<VObject*>(this); if(Value* scalar=fclass.get_scalar(*unconst_this)) if(Junction* junction=scalar->get_junction()) if(const Method *method=junction->method){ VMethodFrame frame(*method, 0 /*no caller*/, *unconst_this); Va...
false
false
false
false
false
0
_appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendTo, char* buf, int32_t bufSize, UBool *posixVariant, UErrorCode *status) { const char *p, *pNext, *pSep; const char *pBcpKey, *pBcpType; const char *pKey, *pType; int32_t bcpKeyLen = 0, bcpTypeLen; ExtensionListEntry *kwd...
false
false
false
false
false
0
close_socket() { if (_sockfd == INVALID_SOCKET) { return; } /* in case of death shutdown to avoid blocking at close() */ if (shutdown(_sockfd, SHUT_RDWR) == SOCKET_ERROR && get_socket_errno() != ENOTCONN) { perror("shutdown"); } else if (closesocket(_sockfd) == SOCKET_ERROR) { perror("clo...
false
false
false
false
false
0
prepareBasis(const vector<PDT::Colour>& basis) { if ( id33bar.empty() ) makeIds(); if ( basis == id33bar || basis == id33bar8 ) return 1; if ( basis == id33bar33bar ) return 2; if ( basis == id33bar88 ) return 2; throw Exception() << "Cannot handle colour configuration" << Exception::abor...
false
false
false
false
false
0
skip_data_till_eof() { while (GET != my_b_EOF) ; }
false
false
false
false
false
0
check_precond(struct transaction_t *txn, const void *data, const char *etag, time_t lastmod) { const char *lock_token = NULL; unsigned locked = 0; hdrcache_t hdrcache = txn->req_hdrs; const char **hdr; time_t since; #ifdef WITH_DAV struct dav_data *ddata = (struct dav_data *) data; /* ...
true
true
false
false
false
1
__ecereInstMeth___ecereNameSpace__ecere__gui__controls__Button_NotifyClicked__00000003(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__Instance * button, int x, int y, unsigned int mods) { struct __ecereNameSpace__ecere__gfx__ColorDropBox * __ecerePointer___ecereNameSpace__ece...
false
false
false
false
false
0
Ndo_framestep_cmd(Nv_data * data, /* Local data */ Tcl_Interp * interp, /* Current interpreter */ int argc, /* Number of arguments */ char **argv /* Argument strings */ ) { /* Parse arguments */ long step; int render_type; if (argc != 3) { Tcl_SetResult(interp, "Error:...
false
false
false
false
false
0
parse_htpl_for___fwd(stack, untag) int untag; STR stack; { TOKEN token; static done = 0; STR buff; int code; static int nesting = 0; static int refcount = 0; refcount++; makepersist(stack); if (numtokens < 1) RETURN(croak("%sFOR called with %d arguments, minimum needed is 1...
false
false
false
false
false
0
LoadWordList(char const filename[]) // where filename is listname.nn.list { FILE *f; f = fopen(filename,"r"); current_line = 0; list_t *l = newList(); // get the nn letters of filename int strl = strlen(filename); l->bit = 0x10*(filename[strl-7]-'0') + 0x01*(filename[s...
false
false
false
false
true
1
hawki_load_frameset( const cpl_frameset * fset, int chip, cpl_type ptype) { cpl_imagelist * out ; cpl_image * ima ; int i ; /* Test entries */ if (fset == NULL) return NULL ; if (chip < 1 || ch...
false
false
false
false
false
0
p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) { int result = 0; struct p80211ioctl_req *req = (struct p80211ioctl_req *) ifr; wlandevice_t *wlandev = dev->ml_priv; u8 *msgbuf; netdev_dbg(dev, "rx'd ioctl, cmd=%d, len=%d\n", cmd, req->len); #ifdef SIOCETHTOOL if (cmd == SIOCETHTOOL) { re...
false
false
false
false
false
0
do_power_off (GduWindow *window) { UDisksObject *object; GList *objects = NULL; GList *siblings, *l; UDisksDrive *drive; const gchar *heading; const gchar *message; object = window->current_object; drive = udisks_object_peek_drive (object); objects = g_list_append (NULL, object); /* include other ...
false
false
false
false
false
0
wi_array_init_with_data_and_count(wi_array_t *array, void **data, wi_uinteger_t count) { wi_uinteger_t i; array = wi_array_init_with_capacity(array, count); for(i = 0; i < count; i++) _wi_array_add_data(array, data[i]); return array; }
false
false
false
false
false
0
insert_tobeinserted(int position, int ph_len, struct statement * stmt, char *tobeinserted) { char *newcopy; if (!(newcopy = (char *) ecpg_alloc(strlen(stmt->command) + strlen(tobeinserted) + 1, stmt->lineno))) { ecpg_free(tobeinserted); return false; } strcpy(newcopy, stmt->command); ...
false
true
false
false
false
1
hfi1_create_rcvhdrq(struct hfi1_devdata *dd, struct hfi1_ctxtdata *rcd) { unsigned amt; u64 reg; if (!rcd->rcvhdrq) { dma_addr_t phys_hdrqtail; gfp_t gfp_flags; /* * rcvhdrqentsize is in DWs, so we have to convert to bytes * (* sizeof(u32)). */ amt = ALIGN(rcd->rcvhdrq_cnt * rcd->rcvhdrqentsize * ...
false
false
false
false
false
0
efreet_menu_cb_compare_names(Efreet_Menu_Internal *internal, const char *name) { if (internal->name.internal == name) return 0; return strcmp(internal->name.internal, name); }
false
false
false
false
false
0
writeToPacket(BYTE* packet, BYTE* pixel, unsigned pixel_size) { // Take care of channel and byte order here, because packet will be flushed straight to the file switch (pixel_size) { case 1: *packet = *pixel; break; case 2: { WORD val(*(WORD*)pixel); #ifdef FREEIMAGE_BIGENDIAN SwapShort(&val); #endif...
false
false
false
false
false
0
update_bitfield_fetch_param(struct bitfield_fetch_param *data) { /* * Don't check the bitfield itself, because this must be the * last fetch function. */ if (CHECK_FETCH_FUNCS(deref, data->orig.fn)) update_deref_fetch_param(data->orig.data); else if (CHECK_FETCH_FUNCS(symbol, data->orig.fn)) update_symbol_...
false
false
false
false
false
0
_XBox(Field f, xfieldT* xf, enum xr required) { ENTRY(("_XBox(0x%x, 0x%x, %d)", f, xf, required)); if(DXBoundingBox((dxObject)f,(Point *) xf->box)) { float xMin = DXD_MAX_FLOAT, xMax = -DXD_MAX_FLOAT; float yMin = DXD_MAX_FLOAT, yMax = -DXD_MAX_FLOAT; float zMin = DXD_MAX_FLOAT, zMax = -DXD_MAX_FLOA...
false
false
false
false
false
0
e1000_setup_copper_link_80003es2lan(struct e1000_hw *hw) { u32 ctrl; s32 ret_val; u16 reg_data; ctrl = er32(CTRL); ctrl |= E1000_CTRL_SLU; ctrl &= ~(E1000_CTRL_FRCSPD | E1000_CTRL_FRCDPX); ew32(CTRL, ctrl); /* Set the mac to wait the maximum time between each * iteration and increase the max iterations when...
false
false
false
false
false
0
multi_inverse2(_MIPD_ int m,big *x,big *w) { /* find w[i]=1/x[i] mod f, for i=0 to m-1 */ int i; #ifdef MR_OS_THREADS miracl *mr_mip=get_mip(); #endif if (m==0) return TRUE; if (m<0) return FALSE; if (x==w) { mr_berror(_MIPP_ MR_ERR_BAD_PARAMETERS); return FALSE; } if (m...
false
false
false
false
false
0
LoadGameObjectModelList() { FILE* model_list_file = fopen((sWorld.GetDataPath() + "vmaps/" + VMAP::GAMEOBJECT_MODELS).c_str(), "rb"); if (!model_list_file) return; uint32 name_length, displayId; char buff[500]; while (!feof(model_list_file)) { fread(&displayId, sizeof(uint32), 1...
false
false
false
false
false
0
qtrle_decode_32bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change) { int rle_code; int pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned char a, r, g, b; unsigned int argb; unsigned char *rgb = s->frame.data[0]; int pixel_limit = s->frame.linesize[0] * s->avctx->heig...
false
false
false
false
false
0
ena_com_init_comp_ctxt(struct ena_com_admin_queue *queue) { size_t size = queue->q_depth * sizeof(struct ena_comp_ctx); struct ena_comp_ctx *comp_ctx; u16 i; queue->comp_ctx = devm_kzalloc(queue->q_dmadev, size, GFP_KERNEL); if (unlikely(!queue->comp_ctx)) { pr_err("memory allocation failed"); return -ENOMEM;...
false
false
false
false
false
0
parse_net(const char *spec, uint32_t *net, uint32_t *mask) { int n, a, b, c, d, slash = 32, len = 0; if ((sscanf(spec, "%d.%d.%d.%d/%d%n", &a, &b, &c, &d, &slash, &n) == 5 || sscanf(spec, "%d.%d.%d.%d%n", &a, &b, &c, &d, &n) == 4) && isbyte(a) && isbyte(b) && isbyte(c) && isbyte(d) && slash...
false
false
false
false
false
0
gst_base_src_set_playing (GstBaseSrc * basesrc, gboolean live_play) { GstBaseSrcClass *bclass; bclass = GST_BASE_SRC_GET_CLASS (basesrc); /* unlock subclasses locked in ::create, we only do this when we stop playing. */ if (!live_play) { GST_DEBUG_OBJECT (basesrc, "unlock"); if (bclass->unlock) ...
false
false
false
false
false
0
PyNumber_Long(PyObject *o) { PyNumberMethods *m; PyObject *trunc_func; const char *buffer; Py_ssize_t buffer_len; _Py_IDENTIFIER(__trunc__); if (o == NULL) return null_error(); if (PyLong_CheckExact(o)) { Py_INCREF(o); return o; } m = o->ob_type->tp_as_number...
false
false
false
false
false
0
guess_abs_e_location(HTK_Param *param) { short qualtype; int basenum, abs_e_num; qualtype = param->header.samptype & ~(F_COMPRESS | F_CHECKSUM); qualtype &= ~(F_BASEMASK); basenum = guess_basenum(param, qualtype); if (qualtype & F_ENERGY) { if (qualtype & F_ZEROTH) { abs_e_num = basenum + 1; }...
false
false
false
false
false
0
perl_tokenizer_Create( int argc, const char * const *argv, sqlite3_tokenizer **ppTokenizer ){ dTHX; dSP; int n_retval; SV *retval; perl_tokenizer *t; if (!argc) { return SQLITE_ERROR; } t = (perl_tokenizer *) sqlite3_malloc(sizeof(*t)); if( t==NULL ) return SQLITE_N...
false
false
false
false
false
0
TIFF_description( FL_IMAGE * im ) { FILE *fp = im->fpin; SPEC *sp = fl_malloc( sizeof *sp ); char buf[ 4 ]; im->io_spec = sp; im->spec_size = sizeof *sp; sp->image = im; if ( fread( buf, 1, 4, fp ) != 4 ) { flimage_error( im, "Failure to read TIFF file" ); fl_free( sp )...
true
true
false
false
false
1
show_rcubarrier(struct seq_file *m, void *v) { struct rcu_state *rsp = (struct rcu_state *)m->private; seq_printf(m, "bcc: %d bseq: %lu\n", atomic_read(&rsp->barrier_cpu_count), rsp->barrier_sequence); return 0; }
false
false
false
false
false
0
List_preallocateToSize_(List *self, size_t index) { size_t s = index * sizeof(void *); if (s >= self->memSize) { size_t newSize = self->memSize * LIST_RESIZE_FACTOR; if (s > newSize) { newSize = s; } self->items = (void **)io_realloc(self->items, newSize); memset(self->items + self->size, 0, (newSi...
false
false
false
false
false
0
addInternalAI() { TRACE("ServerInterface::addInternalAI"); QStringList arglist; AttalSocket * socket = new AttalSocket; Analyst * ai = new Analyst( socket ); socket->connectToHost( "localhost", PORT.toInt() ); _aiList.append( ai ); ai->start(); }
false
false
false
false
false
0
mark_effect (exp, nonequal) rtx exp; regset nonequal; { int regno; rtx dest; switch (GET_CODE (exp)) { /* In case we do clobber the register, mark it as equal, as we know the value is dead so it don't have to match. */ case CLOBBER: if (REG_P (XEXP (exp, 0))) { dest = X...
false
false
false
false
false
0
write_feed_list() { FILE* f = fopen(NOTICES_DIR"/feeds.xml", "w"); if (!f) return; MIOFILE fout; fout.init_file(f); write_rss_feed_descs(fout, feeds); fclose(f); }
false
false
false
false
false
0
atmel_poll_get_char(struct uart_port *port) { while (!(atmel_uart_readl(port, ATMEL_US_CSR) & ATMEL_US_RXRDY)) cpu_relax(); return atmel_uart_read_char(port); }
false
false
false
false
false
0
evaluate(string_ty *path_unres, string_ty *path, string_ty *path_res, struct stat *st) const { rpt_value::pointer vp = get_left()->evaluate(path_unres, path, path_res, st); if (vp->is_an_error()) return vp; return get_right()->evaluate(path_unres, path, path_res, st); }
false
false
false
false
false
0
hash_insert(hash_t *hash, hnode_t *node, const void *key) { hash_val_t hkey, chain; assert (hash_val_t_bit != 0); assert (node->next == NULL); assert (hash->nodecount < hash->maxcount); /* 1 */ assert (hash_lookup(hash, key) == NULL); /* 2 */ if (hash->dynamic && hash->nodecount >= hash->highm...
false
false
false
false
false
0
ojc_object_nappend(ojcErr err, ojcVal object, const char *key, int klen, ojcVal val) { if (bad_object(err, object, "append")) { return; } val->next = 0; _ojc_set_key(val, key, klen); if (0 == object->members.head) { object->members.head = val; } else { object->members.tail->next = val; } ...
false
false
false
false
false
0
read_head(struct mpstr * mp) { unsigned long head=0; if(mdebug==4)printf("before head = read_buf_byte(mp)\n"); head = read_buf_byte(mp); head <<= 8; if(mdebug==4)printf("before head |= read_buf_byte(mp)\n"); head |= read_buf_byte(mp); head <<= 8; if(mdebug==4)printf("before head |= read_buf_byte(mp)\n"...
false
false
false
false
false
0
get_value (bfd_vma size, unsigned long chunksz, bfd *input_bfd, bfd_byte *location) { bfd_vma x = 0; for (; size; size -= chunksz, location += chunksz) { switch (chunksz) { default: case 0: abort (); case 1: x = (x << (8 * chunksz)) | bfd_get_8 (input_bfd, location); break; case...
false
false
false
false
false
0
couple_lossless(float A, float B, float *qA, float *qB){ int test1=fabs(*qA)>fabs(*qB); test1-= fabs(*qA)<fabs(*qB); if(!test1)test1=((fabs(A)>fabs(B))<<1)-1; if(test1==1){ *qB=(*qA>0.f?*qA-*qB:*qB-*qA); }else{ float temp=*qB; *qB=(*qB>0.f?*qA-*qB:*qB-*qA); *qA=temp; } if(*qB...
false
false
false
false
false
0
operator() (double x) const { double xx = x/(_a.getValue()+_b.getValue()); xx = xx - floor(xx); if (xx < _a.getValue()/(_a.getValue()+_b.getValue())) { return 0; } else { return _height.getValue(); } }
false
false
false
false
false
0
start () { int i; day = 1; clouds = 0; weather = WEATHER_SUNNY; camera = 0; sungamma = 50; if (l != NULL) delete l; l = new GLLandscape (space, LANDSCAPE_ALPINE_EROSION, NULL); int px, py; l->searchPlain (-1, -1, &px, &py); playerInit (); fplayer->tl->x = px; fplayer->tl->z = py ...
false
false
false
false
false
0
sample_nearest(byte *s, int w, int h, int n, int u, int v) { if (u < 0) u = 0; if (v < 0) v = 0; if (u >= w) u = w - 1; if (v >= h) v = h - 1; return s + (v * w + u) * n; }
false
false
false
false
false
0
dumpComplex(FILE *file, int page){ FILE* pageFile; GooString* tmp; if( firstPage == -1 ) firstPage = page; if (dumpComplexHeaders(file, pageFile, page)) { error(-1, "Couldn't write headers."); return; } tmp=basename(DocName); fputs("<STYLE type=\"text/css\">\n<!--\n",pageFile); fputs("\tp {margi...
false
false
false
false
false
0
table_add( const char *label, const char *pinseq, const char *pintype, const char *type, const char *gender, struct sig *sig ) { entry[nentries].port = label; if (pinseq) { entry[nentries].pinseq = atoi(pinseq); } else { entry[nentries].pinseq = 0; } entry[nentries].pintype = pintype; entry[nentries].ty...
false
false
false
false
true
1
create_wpt_dest(const waypoint* wpt_orig, double lat_orig, double long_orig, double lat_orig_adj, double long_orig_adj) { double distance = gcdist(lat_orig, long_orig, lat_orig_adj, long_orig_adj); double frac; double lat_dest; double long_dest; waypoint* wpt_dest = ...
false
false
false
false
false
0
cmp(const void *aa, const void *bb) { const struct Distance *a = aa, *b = bb; if (a->dist < b->dist) return -1; return a->dist > b->dist; }
false
false
false
false
false
0
keydb_locate_writable (KEYDB_HANDLE hd, const char *reserved) { int rc; (void)reserved; if (!hd) return G10ERR_INV_ARG; rc = keydb_search_reset (hd); /* this does reset hd->current */ if (rc) return rc; /* If we have a primary set, try that one first */ if(primary_keyring) { for ( ; ...
false
false
false
false
false
0
check() { for (ListType::iterator i = __listPlus.begin(); i != __listPlus.end(); ++i) { (*(*i)).check(); } for (ListType::iterator i = __listMinus.begin(); i != __listMinus.end(); ++i) { (*(*i)).check(); } }
false
false
false
false
false
0
IDirectFBEventBuffer_Reset( IDirectFBEventBuffer *thiz ) { EventBufferItem *item; DirectLink *n; DIRECT_INTERFACE_GET_DATA(IDirectFBEventBuffer) D_DEBUG_AT( IDFBEvBuf, "%s( %p )\n", __FUNCTION__, thiz ); if (data->pipe) return DFB_UNSUPPORTED; pthread_mutex_lock( &data->...
false
false
false
false
false
0
CyaSSL_Malloc(size_t size) { void* res = 0; if (malloc_function) res = malloc_function(size); else res = malloc(size); return res; }
false
false
false
false
false
0
ComputeMessageRepresentative(RandomNumberGenerator &rng, const byte *recoverableMessage, size_t recoverableMessageLength, HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength) const { assert(recoverableMessageLength == 0); assert(hashIden...
false
false
false
false
false
0
ipath_query_device(struct ib_device *ibdev, struct ib_device_attr *props, struct ib_udata *uhw) { struct ipath_ibdev *dev = to_idev(ibdev); if (uhw->inlen || uhw->outlen) return -EINVAL; memset(props, 0, sizeof(*props)); props->device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | IB_DEVICE_BAD_QKEY_CNTR | I...
false
false
false
false
false
0
il_kill_to_beginning_of_line() { size_t old_mark = (il->mark <= il->point) ? il->static_length : il->mark - il->point; il_set_mark(); il_beginning_of_line(); il_region_command(IL_STORE | IL_KILL); il->mark = min(old_mark, il->length); il->last_operation = IL_KILL_TO_BEGINNING_OF_LINE; }
false
false
false
false
false
0
ListKeys(PK11SlotInfo *slot, const char *nickName, int index, KeyType keyType, PRBool dopriv, secuPWData *pwdata) { SECStatus rv = SECFailure; static const char fmt[] = \ "%s: Checking token \"%.33s\" in slot \"%.65s\"\n"; if (slot == NULL) { PK11SlotList *list; PK11SlotListElement *le; ...
false
false
false
false
false
0
cfq_merge(struct request_queue *q, struct request **req, struct bio *bio) { struct cfq_data *cfqd = q->elevator->elevator_data; struct request *__rq; __rq = cfq_find_rq_fmerge(cfqd, bio); if (__rq && elv_rq_merge_ok(__rq, bio)) { *req = __rq; return ELEVATOR_FRONT_MERGE; } return ELEVATOR_NO_MERGE; }
false
false
false
false
false
0
_overlay_default_coord_set(Overlay_Default *ovl, Evas_Coord x, Evas_Coord y) { EINA_SAFETY_ON_NULL_RETURN(ovl); ovl->x = x; ovl->y = y; }
false
false
false
false
false
0
i915_ring_seqno_info(struct seq_file *m, struct intel_engine_cs *engine) { seq_printf(m, "Current sequence (%s): %x\n", engine->name, engine->get_seqno(engine)); seq_printf(m, "Current user interrupts (%s): %x\n", engine->name, READ_ONCE(engine->user_interrupts)); }
false
false
false
false
false
0
submarine_destroy_all_items() { /* kill pending timers */ if(timer_id) g_source_remove(timer_id); timer_id = 0; if(timer_slow_id) g_source_remove(timer_slow_id); timer_slow_id = 0; if(timer_very_slow_id) g_source_remove(timer_very_slow_id); timer_very_slow_id = 0; if(boardRootItem!=NULL) ...
false
false
false
false
false
0
GetNoDataValue( int *pbSuccess ) { if( pbSuccess != NULL ) *pbSuccess = TRUE; if( eDataType == GDT_Float64 ) return rUNDEF; else if( eDataType == GDT_Int32) return iUNDEF; else if( eDataType == GDT_Int16) return shUNDEF; else if( eDataType == GDT_Float32) re...
false
false
false
true
false
1
ssh_channel_is_eof(ssh_channel channel) { if(channel == NULL) { return SSH_ERROR; } if ((channel->stdout_buffer && buffer_get_rest_len(channel->stdout_buffer) > 0) || (channel->stderr_buffer && buffer_get_rest_len(channel->stderr_buffer) > 0)) { return 0; } return (channel->rem...
false
false
false
false
false
0
gmenubar_destroy(GGadget *g) { GMenuBar *mb = (GMenuBar *) g; if ( g==NULL ) return; if ( mb->child!=NULL ) { GMenuDestroy(mb->child); GDrawSync(NULL); GDrawProcessPendingEvents(NULL); /* popup's destroy routine must execute before we die */ } GMenuItemArrayFree(mb->mi); free(mb->xs); _gg...
false
false
false
false
false
0
mail_receive_hook(gpointer source, gpointer data) { MailReceiveData *mail_receive_data = (MailReceiveData *) source; Pop3Session *session; gchar *newheaders; gchar *newdata; gchar date[PREFSBUFSIZE]; if (!config.fetchinfo_enable) { return FALSE; } g_return_val_if_fail( mail_receive_data ...
false
false
false
false
false
0
pma_get_opa_classportinfo(struct opa_pma_mad *pmp, struct ib_device *ibdev, u32 *resp_len) { struct opa_class_port_info *p = (struct opa_class_port_info *)pmp->data; memset(pmp->data, 0, sizeof(pmp->data)); if (pmp->mad_hdr.attr_mod != 0) pmp->mad_hdr.status |= IB_SMP_INVALID_FIELD; p->base_version = OPA...
false
false
false
false
false
0
AngleMove_Begin (edict_t *ent) { vec3_t destdelta; float len; float traveltime; float frames; // set destdelta to the vector needed to move if (ent->moveinfo.state == STATE_UP) VectorSubtract (ent->moveinfo.end_angles, ent->s.angles, destdelta); else VectorSubtract (ent->moveinfo.start_angles, ent->s.angles...
false
false
false
false
false
0
gnac_profiles_mgr_list_profiles(void) { GFile *dir = gnac_profiles_mgr_get_profiles_dir(); GError *error = NULL; GFileEnumerator *files = g_file_enumerate_children(dir, G_FILE_ATTRIBUTE_STANDARD_NAME "," G_FILE_ATTRIBUTE_STANDARD_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &error); if (!files && err...
false
false
false
false
false
0
is_blank(int row, int col, int n) { n += col; for( ;col < n; col++){ if(pscr(row, col) == NULL || pscr(row, col)->c != ' ') return(0); } return(1); }
false
false
false
false
false
0
SetVariableAssignHook(VariableSpace space, const char *name, VariableAssignHook hook) { struct _variable *current, *previous; if (!space) return false; if (!valid_variable_name(name)) return false; for (previous = space, current = space->next; current; previous = current, current = current->next)...
false
false
false
false
false
0
writeData ( tnstream& stream ) const { stream.writeInt( destructContainerStreamVersion ); ContainerAction::writeData( stream ); stream.writeInt( building ); if ( unitBuffer ) { stream.writeInt( 1 ); unitBuffer->writetostream( &stream ); } else stream.writeInt( 0 ); stream.writeI...
false
false
false
false
false
0
trayIconClicked(QSystemTrayIcon::ActivationReason reason) { if(reason == QSystemTrayIcon::Trigger) trayIconMenu->exec(QCursor::pos()); }
false
false
false
false
false
0
replaceStreamData( PointerHolder<QPDFObjectHandle::StreamDataProvider> provider, QPDFObjectHandle const& filter, QPDFObjectHandle const& decode_parms) { this->stream_provider = provider; this->stream_data = 0; replaceFilterData(filter, decode_parms, 0); }
false
false
false
false
false
0
opt_parse_extended(char *str, struct mkfs_opts *opts) { char *opt; while ((opt = strsep(&str, ",")) != NULL) { char *key = strsep(&opt, "="); char *val = strsep(&opt, "="); if (key == NULL || *key == '\0') { fprintf(stderr, _("Missing argument to '-o' option\n")); exit(-1); } if (strcmp("sunit", key) ...
false
false
false
false
false
0
H5FD_log_get_eof(const H5FD_t *_file) { const H5FD_log_t *file = (const H5FD_log_t *)_file; FUNC_ENTER_NOAPI_NOINIT_NOERR FUNC_LEAVE_NOAPI(MAX(file->eof, file->eoa)) }
false
false
false
false
false
0
_gnutls_x509_read_uint (ASN1_TYPE node, const char *value, unsigned int *ret) { int len, result; opaque *tmpstr; len = 0; result = asn1_read_value (node, value, NULL, &len); if (result != ASN1_MEM_ERROR) { gnutls_assert (); return _gnutls_asn2err (result); } tmpstr = gnutls_malloc (len...
false
false
false
false
false
0
uca_ring_buffer_get_read_pointer (UcaRingBuffer *buffer) { UcaRingBufferPrivate *priv; gpointer data; g_return_val_if_fail (UCA_IS_RING_BUFFER (buffer), NULL); priv = buffer->priv; g_return_val_if_fail (priv->read_index != priv->write_index, NULL); data = priv->data + (priv->read_index % priv-...
false
false
false
false
false
0
buf_parse (struct buffer *buf, const int delim, char *line, const int size) { bool eol = false; int n = 0; int c; ASSERT (size > 0); do { c = buf_read_u8 (buf); if (c < 0) eol = true; if (c <= 0 || c == delim) c = 0; if (n >= size) break; line[n++] = c; } while (c)...
false
false
false
false
false
0
g_dbus_client_unref(GDBusClient *client) { unsigned int i; if (client == NULL) return; if (__sync_sub_and_fetch(&client->ref_count, 1) > 0) return; if (client->pending_call != NULL) { dbus_pending_call_cancel(client->pending_call); dbus_pending_call_unref(client->pending_call); } if (client->get_objec...
false
false
false
false
false
0
Ltrucf(flg,pptr) int flg; truc *pptr; { truc *ptr; long n0; switch(flg) { case vARRELE: ARGpush(pptr[1]); ARGpush(pptr[2]); argStkPtr[-1] = eval(argStkPtr-1); argStkPtr[0] = eval(argStkPtr); flg = arrindex(argStkPtr-1,&n0); if(flg == fVECTOR) { ...
false
false
false
false
false
0
visit(ir_loop_jump *ir) { switch (ir->mode) { case ir_loop_jump::jump_break: emit(BRW_OPCODE_BREAK); break; case ir_loop_jump::jump_continue: emit(BRW_OPCODE_CONTINUE); break; } }
false
false
false
false
false
0
stopAndRestartSolver() { if ( m_toldAboutLostGame || m_toldAboutWonGame ) // who cares? return; if ( m_solverThread && m_solverThread->isRunning() ) { m_solverThread->abort(); } if ( isCardAnimationRunning() ) { startSolver(); return; } slotSolverEnded(...
false
false
false
false
false
0
notifyCommFailure(const giopAddress* addr, CORBA::Boolean heldlock) { if (heldlock) { ASSERT_OMNI_TRACEDMUTEX_HELD(*omniTransportLock,1); } else { ASSERT_OMNI_TRACEDMUTEX_HELD(*omniTransportLock,0); omniTransportLock->lock(); } const giopAddress* addr_in_use; addr_in_use = pd_addresses...
false
false
false
false
false
0
append_exp(tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok) { tag_exp_type *exp_tmp; /* Can only have IMPLICIT if permitted */ if ((arg->imp_tag != -1) && !imp_ok) { ASN1err(ASN1_F_APPEND_EXP, ASN1_R_ILLEGAL_IMPLICIT_TAG); return 0; } if (arg->exp_count == ASN1_F...
false
false
false
false
false
0
snd_pcm_dsnoop_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) { snd_pcm_direct_t *dsnoop = pcm->private_data; int err; switch (snd_pcm_state(dsnoop->spcm)) { case SND_PCM_STATE_XRUN: return -EPIPE; case SND_PCM_STATE_SUSPENDED: return -ESTRPI...
false
false
false
false
false
0
setModeGain(unsigned int modeIndex, StkFloat gain) { if ( modeIndex >= nModes_ ) { errorString_ << "Modal::setModeGain: modeIndex parameter is greater than number of modes!"; handleError( StkError::WARNING ); return; } filters_[modeIndex]->setGain(gain); }
false
false
false
false
false
0
_mysql_jobcomp_check_tables() { if (mysql_db_create_table(jobcomp_mysql_conn, jobcomp_table, jobcomp_table_fields, ")") == SLURM_ERROR) return SLURM_ERROR; return SLURM_SUCCESS; }
false
false
false
false
false
0
thread_interrupt (DebuggerTlsData *tls, MonoThreadInfo *info, void *sigctx, MonoJitInfo *ji) { gboolean res; gpointer ip; MonoNativeThreadId tid; /* * OSX can (and will) coalesce signals, so sending multiple pthread_kills does not * guarantee the signal handler will be called that many times. Instead of track...
false
true
false
false
false
1
acpi_ex_create_mutex(struct acpi_walk_state *walk_state) { acpi_status status = AE_OK; union acpi_operand_object *obj_desc; ACPI_FUNCTION_TRACE_PTR(ex_create_mutex, ACPI_WALK_OPERANDS); /* Create the new mutex object */ obj_desc = acpi_ut_create_internal_object(ACPI_TYPE_MUTEX); if (!obj_desc) { status = AE_...
false
false
false
false
false
0
parse_enumlist(FILE * fp, struct enum_list **retp) { register int type; char token[MAXTOKEN]; struct enum_list *ep = NULL, **epp = &ep; free_enums(retp); while ((type = get_token(fp, token, MAXTOKEN)) != ENDOFFILE) { if (type == RIGHTBRACKET) break; /* som...
false
false
false
false
false
0
st_destroy(search_table_t *table) { int i; search_table_check(table); if (table->bins) { for (i = 0; i < table->nbins; i++) { struct st_bin *bin = table->bins[i]; if (bin) { bin_destroy(bin); WFREE(bin); } } HFREE_NULL(table->bins); } if (table->all_entries.vals) { for (i = 0; i < tabl...
false
false
false
false
false
0
ShortCircuitConsString(Object** p) { // Optimization: If the heap object pointed to by p is a non-symbol // cons string whose right substring is Heap::empty_string, update // it in place to its left substring. Return the updated value. // // Here we assume that if we change *p, we replace it with a heap obje...
false
false
false
false
false
0
gss_inquire_attrs_for_mech(OM_uint32 * minor_status, gss_const_OID mech, gss_OID_set *mech_attr, gss_OID_set *known_mech_attrs) { OM_uint32 major, junk; if (known_mech_attrs) *known_mech_attrs = GSS_C_NO_OID_SET; if (mech_attr && mech) { gssapi_mech_interface m; struct g...
false
false
false
false
false
0
_buildAuthorProps(pp_Author * pAuthor, const gchar **& szProps, std::string & storage) { const PP_AttrProp * pAP = pAuthor->getAttrProp(); UT_uint32 iCnt= pAP->getPropertyCount(); szProps = new const gchar * [2*iCnt + 3]; UT_DEBUGMSG(("_buildAuthorProps getAuthorInt %d \n",pAuthor->getAuthorInt())); storage = UT_s...
false
false
false
false
false
0
clutter_gst_auto_video_sink_sink_pad_blocked_cb (GstPad *pad, gboolean blocked, gpointer user_data) { ClutterGstAutoVideoSink *bin = CLUTTER_GST_AUTO_VIDEO_SINK_CAST (user_data); GstCaps *caps = NULL; /* In case the pad is not blocked we should not do anything but...
false
false
false
false
false
0
gli_draw_string(int x, int y, int fidx, unsigned char *rgb, unsigned char *s, int n, int spw) { font_t *f = &gfont_table[fidx]; int dolig = ! FT_IS_FIXED_WIDTH(f->face); int prev = -1; glui32 c; int px, sx; if ( FT_Get_Char_Index(f->face, UNI_LIG_FI) == 0 ) dolig = 0; ...
false
false
false
false
false
0
gt_array_rem_span(GtArray *a, unsigned long frompos, unsigned long topos) { unsigned long i, len; gt_assert(a && frompos <= topos); gt_assert(frompos < a->next_free && topos < a->next_free); /* move elements */ len = topos - frompos + 1; for (i = topos + 1; i < a->next_free; i++) { memcpy((char*) a->spa...
false
false
false
false
false
0