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
mlx5_irq_set_affinity_hint(struct mlx5_core_dev *mdev, int i) { struct mlx5_priv *priv = &mdev->priv; struct msix_entry *msix = priv->msix_arr; int irq = msix[i + MLX5_EQ_VEC_COMP_BASE].vector; int err; if (!zalloc_cpumask_var(&priv->irq_info[i].mask, GFP_KERNEL)) { mlx5_core_warn(mdev, "zalloc...
false
false
false
false
false
0
finalize(struct message *mp) { long n; for (n = 0; mp; mp = next_in_thread(mp)) { mp->m_threadpos = ++n; mp->m_level = mp->m_parent ? mp->m_level + mp->m_parent->m_level : 0; } }
false
false
false
false
false
0
_elm_layout_smart_text_get(const Evas_Object *obj, const char *part) { ELM_LAYOUT_DATA_GET(obj, sd); if (!_elm_layout_part_aliasing_eval(sd, &part, EINA_TRUE)) return EINA_FALSE; return edje_object_part_text_get(ELM_WIDGET_DATA(sd)->resize_obj, part); }
false
false
false
false
false
0
KillProcess() { ResetBuildState(); m_RunAfterCompile = false; if (!IsProcessRunning()) return 0; if (!m_CommandQueue.LastCommandWasRun()) LogMessage(_("Aborting build..."), cltInfo, ltMessages); wxKillError ret = wxKILL_OK; m_CommandQueue.Clear(); for (size_t i = 0; i < m_C...
false
false
false
false
false
0
flatten_token(Acs_token *token, Kwv *token_kwv, char **value, unsigned int *valuelen) { char *p; Credentials *cr; Kwv *kwv; if (token_kwv == NULL) { kwv = kwv_init(10); kwv->dup_mode = KWV_ALLOW_DUPS; kwv_add(kwv, "ISSUED_BY", token->issued_by); kwv_add(kwv, "URL_PATH", token->url_path); if (token->...
false
false
false
false
false
0
vmxnet3_rq_create(struct vmxnet3_rx_queue *rq, struct vmxnet3_adapter *adapter) { int i; size_t sz; struct vmxnet3_rx_buf_info *bi; for (i = 0; i < 2; i++) { sz = rq->rx_ring[i].size * sizeof(struct Vmxnet3_RxDesc); rq->rx_ring[i].base = dma_alloc_coherent( &adapter->pdev->dev, sz, &rq->rx_ring[i]...
false
false
false
false
false
0
find_next_line(struct buffer *buff, char *line) { char *end_line = buff->space + buff->size; while (line < end_line && *line++ != '\n'); if (line < end_line) { return line; } else { return NULL; } }
false
false
false
false
false
0
EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc) { if (cipher) EVP_CIPHER_CTX_init(ctx); return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc); }
false
false
false
false
false
0
blkid_set_tag(blkid_dev dev, const char *name, const char *value, const int vlength) { blkid_tag t = 0, head = 0; char *val = 0; char **dev_var = 0; if (!dev || !name) return -BLKID_ERR_PARAM; if (!(val = blkid_strndup(value, vlength)) && value) return -BLKID_ERR_MEM; /* * Certain common tags are l...
false
false
false
false
false
0
clutter_paint_volume_set_origin (ClutterPaintVolume *pv, const ClutterVertex *origin) { static const int key_vertices[4] = { 0, 1, 3, 4 }; float dx, dy, dz; int i; g_return_if_fail (pv != NULL); dx = origin->x - pv->vertices[0].x; dy = origin->y - pv->vertices[0].y; dz ...
false
false
false
false
false
0
is_ipv4_mapped_any (const struct in6_addr *addr) { int i; for (i = 0; i < 10; i++) { if (addr->s6_addr [i]) return FALSE; } if ((addr->s6_addr [10] != 0xff) || (addr->s6_addr [11] != 0xff)) return FALSE; for (i = 12; i < 16; i++) { if (addr->s6_addr [i]) return FALSE; } return TRUE; }
false
false
false
false
false
0
reducebestrees(bestelm *bestrees, long *nextree) { /* finds best trees with collapsible branches and deletes them */ long i, j; i = 0; j = *nextree - 2; do { while (!bestrees[i].collapse && i < *nextree - 1) i++; while (bestrees[j].collapse && j >= 0) j--; if (i < j) { memcpy(bestrees[i].bt...
false
true
false
false
false
1
pg_wchar_strncmp(const pg_wchar *s1, const pg_wchar *s2, size_t n) { if (n == 0) return 0; do { if (*s1 != *s2++) return (*s1 - *(s2 - 1)); if (*s1++ == 0) break; } while (--n != 0); return 0; }
false
false
false
false
false
0
barricade(game *g, player *p, item *it, bool t) { int dirx, diry; g->draw(); mvprintw(0, 0, "Embed your barricade where?"); get_direction(g, dirx, diry, input()); if (dirx == -2) { g->add_msg("Invalid direction."); return; } dirx += p->posx; diry += p->posy; ter_id type = g->m.ter(dirx, diry); if (!p->has...
false
false
false
false
false
0
is32Bit(EVT VT) { switch (VT.getSimpleVT().SimpleTy) { case MVT::i32: return true; case MVT::i64: return false; default: llvm_unreachable("Unsupported type"); } }
false
false
false
false
false
0
read_all_code(context_type* context, jclass cb, int num_methods, int** lengths_addr, unsigned char*** code_addr) { int* lengths; unsigned char** code; int i; lengths = malloc(sizeof(int) * num_methods); check_and_push(context, lengths, VM_MALLOC_BLK); code = malloc(sizeof(unsigne...
false
false
false
false
false
0
sort_edges_by_z() { long *sortarray, i; p_edge this; if (!edges.end) return; sortarray = gp_alloc(sizeof(long) * edges.end, "hidden sort edges"); /* initialize sortarray with an identity mapping */ for (i = 0; i < edges.end; i++) sortarray[i] = i; /* sort it */ qsort(sortarray, (size...
false
false
false
false
false
0
VisitBinaryOperator(BinaryOperator *BO) { if (!BO->isComparisonOp()) return true; const Expr *E = NULL; if (dyn_cast<IntegerLiteral>(BO->getLHS()->IgnoreParenCasts())) { E = BO->getRHS()->IgnoreParenCasts(); } else if (dyn_cast<IntegerLiteral>(BO->getRHS()->IgnoreParenCasts())) { E = BO->getLHS()...
false
false
false
false
false
0
logfs_read_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; struct logfs_super *super = logfs_super(sb); struct inode *master_inode = super->s_master_inode; struct page *page; struct logfs_disk_inode *di; u64 ino = inode->i_ino; if (ino << sb->s_blocksize_bits > i_size_read(master_inode)) re...
false
false
false
false
false
0
signaldict_setitem(PyObject *self, PyObject *key, PyObject *value) { uint32_t flag; int x; if (value == NULL) { return value_error_int("signal keys cannot be deleted"); } flag = exception_as_flag(key); if (flag & DEC_ERRORS) { return -1; } x = PyObject_IsTrue(value); ...
true
true
false
false
false
1
ath9k_cmn_debug_stat_rx(struct ath_rx_stats *rxstats, struct ath_rx_status *rs) { #define RX_PHY_ERR_INC(c) rxstats->phy_err_stats[c]++ #define RX_CMN_STAT_INC(c) (rxstats->c++) RX_CMN_STAT_INC(rx_pkts_all); rxstats->rx_bytes_all += rs->rs_datalen; if (rs->rs_status & ATH9K_RXERR_CRC) RX_CMN_STAT_INC(crc...
false
false
false
false
false
0
test_merge_files__automerge_use_best_path_and_mode(void) { git_merge_file_input ancestor = GIT_MERGE_FILE_INPUT_INIT, ours = GIT_MERGE_FILE_INPUT_INIT, theirs = GIT_MERGE_FILE_INPUT_INIT; git_merge_file_result result = {0}; const char *expected = "Zero\n1\n2\n3\n4\n5\n6\n7\n8\n9\nTen\n"; ancestor.ptr = "0\n1\n...
false
false
false
false
false
0
toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod) { if (mod != this->mod) { toCBuffer3(buf, hgs, mod); return; } buf->writestring("typeof("); exp->toCBuffer(buf, hgs); buf->writeByte(')'); toCBuffer2Helper(buf, hgs); }
false
false
false
false
false
0
_get_group_cache(char *group_name) { ListIterator iter; struct group_cache_rec *cache_rec; uid_t *group_uids = NULL; int sz; pthread_mutex_lock(&group_cache_mutex); if (!group_cache_list) { pthread_mutex_unlock(&group_cache_mutex); return NULL; } iter = list_iterator_create(group_cache_list); if (!iter) ...
false
false
false
false
false
0
warning(int errno, char *msg, ...) { char *str; va_list ap; fprintf(stderr, "\n%s: %s ", ProgName, msg); va_start(ap, msg); while ((str = va_arg(ap, char *)) != EOA) fprintf(stderr, "%s ", str); fputc('\n', stderr); va_end(ap); }
false
false
false
false
false
0
_SDL_gfxBlitRGBACall(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect) { /* * Set up source and destination buffer pointers, then blit */ if (srcrect->w && srcrect->h) { SDL_gfxBlitInfo info; /* * Set up the blit information */ #if SDL_VERSION_ATLEAST(1,3,0) info.s_pixels = ...
false
false
false
false
false
0
sw_set_is_empty (SwSet *set) { g_return_val_if_fail (set, FALSE); return g_hash_table_size (set->hash) == 0; }
false
false
false
false
false
0
_glh_cant_save_history(GlHistory *glh, const char *message, const char *filename, FILE *fp) { _err_record_msg(glh->err, message, filename, " (", strerror(errno), ")", END_ERR_MSG); if(fp) (void) fclose(fp); return 1; }
false
false
false
false
false
0
build_command_line(const gchar * command, const gchar * filename) { GString *cmd_line = g_string_new(""); const gchar *ptr, *remaining = command; gchar *quoted, *tmp; for (;;) { ptr = strchr(remaining, '%'); if (ptr == NULL) { g_string_appe...
false
false
false
false
false
0
f(const InternalParametersType & inparameters) { if ( !m_CostFunction ) { itkGenericExceptionMacro( << "Attempt to use a SingleValuedVnlCostFunctionAdaptor without any CostFunction plugged in"); } // Use scales if they are provided ParametersType parameters( inparameters.size() ); if ( m_Scal...
false
false
false
false
false
0
arg_type_xml_string (int t) { if (t == GRETL_TYPE_SCALAR_REF) { return "scalarref"; } else if (t == GRETL_TYPE_SERIES_REF) { return "seriesref"; } else if (t == GRETL_TYPE_MATRIX_REF) { return "matrixref"; } else if (t == GRETL_TYPE_BUNDLE_REF) { return "bundleref"; } else { return gretl_arg_ty...
false
false
false
false
false
0
ecore_imf_context_input_panel_return_key_disabled_set(Ecore_IMF_Context *ctx, Eina_Bool disabled) { if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) { ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT, "ecore_imf_context_input_panel_return_key_disabled_set"); return; } ...
false
false
false
false
false
0
evhttp_free(struct evhttp* http) { struct evhttp_cb *http_cb; struct evhttp_connection *evcon; struct evhttp_bound_socket *bound; struct evhttp* vhost; evutil_socket_t fd; /* Remove the accepting part */ while ((bound = TAILQ_FIRST(&http->sockets)) != NULL) { TAILQ_REMOVE(&http->sockets, bound, next); fd =...
false
false
false
false
false
0
extract_block(const unsigned char *src, int x, int y, int w, int h, unsigned char *block) { int i, j; int bw = MIN(w - x, 4); int bh = MIN(h - y, 4); int bx, by; const int rem[] = { 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 2, 0, 0, 1, 2, 3 }; for(i = 0; i ...
false
false
false
false
false
0
get_size( std::string::const_iterator start, std::string::const_iterator end, CL_Size max_size) const { CL_GlyphBuffer gb; draw_to_gb(start, end, gb, max_size); return gb.get_size(); }
false
false
false
false
false
0
file_skip(struct archive *a, void *client_data, int64_t request) { struct read_FILE_data *mine = (struct read_FILE_data *)client_data; #if HAVE_FSEEKO off_t skip = (off_t)request; #elif HAVE__FSEEKI64 int64_t skip = request; #else long skip = (long)request; #endif int skip_bits = sizeof(skip) * 8 - 1; (void)a; /...
false
false
false
false
false
0
ufs_put_super_internal(struct super_block *sb) { struct ufs_sb_info *sbi = UFS_SB(sb); struct ufs_sb_private_info *uspi = sbi->s_uspi; struct ufs_buffer_head * ubh; unsigned char * base, * space; unsigned blks, size, i; UFSD("ENTER\n"); ufs_put_cstotal(sb); size = uspi->s_cssize; blks = (size + uspi->s_fsi...
false
false
false
false
false
0
output_simode_bld (int bild, rtx operands[]) { if (TARGET_H8300) { /* Clear the destination register. */ output_asm_insn ("sub.w\t%e0,%e0\n\tsub.w\t%f0,%f0", operands); /* Now output the bit load or bit inverse load, and store it in the destination. */ if (bild) output_asm_insn ("bil...
false
false
false
false
false
0
_temperature_cb_exe_del(void *data, __UNUSED__ int type, void *event) { Ecore_Exe_Event_Del *ev; Config_Face *inst; ev = event; inst = data; if (ev->exe != inst->tempget_exe) return ECORE_CALLBACK_PASS_ON; inst->tempget_exe = NULL; return ECORE_CALLBACK_DONE; }
false
false
false
false
false
0
convert_circle(const dimeEntity *entity, const dimeState *state, dxfLayerData *layerData, dxfConverter *converter) { dimeCircle *circle = (dimeCircle*) entity; dimeMatrix matrix; state->getMatrix(matrix); dimeVec3f e = circle->getExtrusionDir(); dxfdouble thickness = circle->getThickness(); if...
false
false
false
false
false
0
mergea(Hashindex *list1, Hashindex *list2, unsigned long length1, unsigned long length2, choice sortby) { Hashindex *ans, *p1, *p2, *p3; if (strcmp(list1->name, list2->name) < 0) { ans = list1; p1 = list1->next; p2 = list2; length1--; } else { ans = list2; p2 = list2->next; p1 =...
false
false
false
false
false
0
OnFinished( wxWizardExEvent& event ) { if (IsAccountManagerWizard) { // Attached to an account manager if (!m_strReturnURL.empty() && GetAttachedToProjectSuccessfully()) { wxLaunchDefaultBrowser(m_strReturnURL); } } else { // Attached to a project if (GetAcco...
false
false
false
false
false
0
tomoyo_parse_envp(char *left, char *right, struct tomoyo_envp *envp) { const struct tomoyo_path_info *name; const struct tomoyo_path_info *value; char *cp = left + strlen(left) - 1; if (*cp-- != ']' || *cp != '"') goto out; *cp = '\0'; if (!tomoyo_correct_word(left)) goto out; name = tomoyo_get_name...
false
false
false
false
false
0
FuncSUBTR_BLIST ( Obj self, Obj list1, Obj list2 ) { UInt * ptr1; /* pointer to the first argument */ UInt * ptr2; /* pointer to the second argument */ UInt i; /* loop var...
false
false
false
false
false
0
verifypasscode() { char *issuedpc=NULL, *returnedpc=NULL, *requirepasscode=NULL; requirepasscode = getenv("GRST_REQUIRE_PASSCODE"); issuedpc = getenv("GRST_PASSCODE_COOKIE"); returnedpc = GRSThttpGetCGI("passcode"); /* if GRST_REQUIRE_PASSCODE != on then always OK */ if (requirepasscode == NULL) retur...
false
false
true
false
true
1
parse_mul_expr(std::istream& in, scope_t * scope, const short flags) { value_expr node; if (peek_next_nonws(in) == '%') { char c; in.get(c); node.reset(new value_expr_t(value_expr_t::O_PERC)); node->set_left(parse_value_term(in, scope, flags)); return node.release(); } node.reset(...
false
false
false
false
false
0
gt_md5_tab_new(const char *sequence_file, void *seqs, GtGetSeqFunc get_seq, GtGetSeqLenFunc get_seq_len, unsigned long num_of_seqs, bool use_cache_file, bool use_file_locking) { GtMD5Tab *md5_tab; bool reading_succeeded = false; GtStr *fin...
false
false
false
false
false
0
ViewRoll (tdmInteractor I, int x, int y, int flag, int s) { float rot[4][4], from[3], zaxis[3], Near, Far ; DEFDATA(I,tdmRotateData) ; DEFPORT(I_PORT_HANDLE) ; ENTRY(("ViewRoll(0x%x, %d, %d)", I, x, y)); /* apply plane rotation model */ if (!PlaneRoll (I, x, y, rot)) { EXIT(("PlaneRoll returns 0...
false
false
false
false
false
0
drm_dp_mst_deallocate_vcpi(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port) { port = drm_dp_get_validated_port_ref(mgr, port); if (!port) return; drm_dp_mst_put_payload_id(mgr, port->vcpi.vcpi); port->vcpi.num_slots = 0; port->vcpi.pbn = 0; port->vcpi.aligned_pbn = 0; port->vcpi.vcpi = 0; d...
false
false
false
false
false
0
IsHaveSideEffect() { if (known_side_effect) return have_side_effect; known_side_effect = true; have_side_effect = body->IsHaveSideEffect(); return have_side_effect; }
false
false
false
false
false
0
bnx2x_stats_update(struct bnx2x *bp) { u32 *stats_comp = bnx2x_sp(bp, stats_comp); if (bnx2x_edebug_stats_stopped(bp)) return; if (IS_PF(bp)) { if (*stats_comp != DMAE_COMP_VAL) return; if (bp->port.pmf) bnx2x_hw_stats_update(bp); if (bnx2x_storm_stats_update(bp)) { if (bp->stats_pending++ == 3)...
false
false
false
false
false
0
minus1 (const cl_LF& x) { return x + cl_I_to_LF(cl_I(-1),TheLfloat(x)->len); } }
false
false
false
false
false
0
tracemalloc_remove_trace(void *ptr) { trace_t trace; if (_Py_hashtable_pop(tracemalloc_traces, ptr, &trace, sizeof(trace))) { assert(tracemalloc_traced_memory >= trace.size); tracemalloc_traced_memory -= trace.size; } }
false
false
false
false
false
0
ay_irc_login(eb_local_account *account) { irc_local_account *ila = (irc_local_account *)account->protocol_local_account_data; char buff[BUF_LEN]; int tag; if (account->connecting || account->connected) return; account->connecting = 1; account->connected = 0; /* Setup and connect */ snprintf(buff, sizeof...
true
true
false
false
true
1
exec() { int result = QDialog::exec(); s_lastIndex = ui.tabWidget->currentIndex(); if(result == QDialog::Accepted) { saveSettings(); emit reconfigure(); } return result; }
false
false
false
false
false
0
IsProviderFor(cbEditor* ed) { PluginsArray pa = Manager::Get()->GetPluginManager()->GetCodeCompletionOffers(); for (unsigned int i=0; i<pa.Count(); ++i) { if ( (pa[i] != this) && static_cast<cbCodeCompletionPlugin*>(pa[i])->IsProviderFor(ed)) return false; } return true; }
false
false
false
false
false
0
_get_name(PyObject *obj, char **pname) { #ifdef MS_WIN32 if (PyLong_Check(obj)) { /* We have to use MAKEINTRESOURCEA for Windows CE. Works on Windows as well, of course. */ *pname = MAKEINTRESOURCEA(PyLong_AsUnsignedLongMask(obj) & 0xFFFF); return 1; } #endif if (P...
false
false
false
false
false
0
myri10ge_nvs_read ( struct nvs_device *nvs, unsigned int addr, void *_buf, size_t len ) { struct myri10ge_private *priv = container_of (nvs, struct myri10ge_private, nvs); struct pci_device *pci = myri10ge_pcidev ( myri10ge_netdev ( priv ) ); unsigned int vs = priv->pci_cap_vs; unsig...
false
false
false
false
false
0
env_options() { char *argv[MAXARGV]; char *envopts; int argc; envopts = getenv("EXIFPROBE_OPTIONS"); if(envopts && *envopts) { optind = 0; /* make an argument vector */ argc = vector(envopts,argv," \t",0,MAXARGV); (void)process_...
true
true
false
false
true
1
handleBoundWrite(ExecState* exec, int token, JSValue* value) { const BoundPropInfo* prop = boundPropInfo()->value(token); if (!prop) return false; if (prop->type & T_ReadOnly) return false; DOM::DOMString str = value->type() == NullType ? DOM::DOMString() : value->toString(exec).domString(); assert(prop->el...
false
false
false
false
false
0
build_gs_font_procs(os_ptr op, build_proc_refs * pbuild) { int ccode, gcode; ref *pBuildChar; ref *pBuildGlyph; check_type(*op, t_dictionary); ccode = dict_find_string(op, "BuildChar", &pBuildChar); gcode = dict_find_string(op, "BuildGlyph", &pBuildGlyph); if (ccode <= 0) { if (gcod...
false
false
false
false
false
0
butRnet_sendMMove(ButRnet *net, int winId, int lx, int ly, int lw, int lh, ButCur curnum) { ButNetMsg msg; if (winId == -1) winId = net->lWinId; if (lx == -1) lx = net->lx; if (ly == -1) ly = net->ly; if (lw == -1) lw = net->lw; if (lh == -1) lh = net->lh; if (curnum == -1...
false
false
false
false
false
0
pm860x_rtc_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); if (device_may_wakeup(dev)) chip->wakeup_flag &= ~(1 << PM8607_IRQ_RTC); return 0; }
false
false
false
false
false
0
cd_mapping_db_empty (CdMappingDb *mdb, GError **error) { const gchar *statement; gboolean ret = TRUE; gchar *error_msg = NULL; gint rc; g_return_val_if_fail (CD_IS_MAPPING_DB (mdb), FALSE); g_return_val_if_fail (mdb->priv->db != NULL, FALSE); statement = "DELETE FROM mappings_v2;"; rc = sqlite3_exec (...
false
false
false
false
false
0
idr_init(struct iso9660 *iso9660, struct vdd *vdd, struct idr *idr) { idr->idrent_pool = NULL; idr->pool_size = 0; if (vdd->vdd_type != VDD_JOLIET) { if (iso9660->opt.iso_level <= 3) { memcpy(idr->char_map, d_characters_map, sizeof(idr->char_map)); } else { memcpy(idr->char_map, d1_characters_map, ...
false
true
false
false
false
1
on_button21_clicked (GtkButton *button, gpointer user_data) { GladeXML *gladexml; GtkWidget *widget; GtkWidget *drawingarea; gchar buffer[512]; gchar *photo_file = user_data; GdkPixbuf *photo = NULL; GError *error = NULL; GdkGC *gc; pr...
false
false
false
false
false
0
ET_Free_Artist_Album_File_List (void) { GList *l; g_return_val_if_fail (ETCore != NULL && ETCore->ETArtistAlbumFileList != NULL, FALSE); for (l = ETCore->ETArtistAlbumFileList; l != NULL; l = g_list_next (l)) { GList *m; for (m = (GList *)l->data; m != NULL; m = g_l...
false
false
false
false
false
0
protocolForArchiveMimetype( const QString& mimeType ) { PRIVATE_DATA; if (d->protocolForArchiveMimetypes.isEmpty()) { const KProtocolInfo::List allProtocols = KProtocolInfoFactory::self()->allProtocols(); for (KProtocolInfo::List::const_iterator it = allProtocols.begin(); it != allP...
false
false
false
false
false
0
__ast_internal_context_destroy( struct ast_context *con) { struct ast_include *tmpi; struct ast_sw *sw; struct ast_exten *e, *el, *en; struct ast_ignorepat *ipi; struct ast_context *tmp = con; for (tmpi = tmp->includes; tmpi; ) { /* Free includes */ struct ast_include *tmpil = tmpi; tmpi = tmpi->next; ast_...
false
false
false
false
false
0
vx_pcm_playback_update(struct vx_core *chip, struct snd_pcm_substream *subs, struct vx_pipe *pipe) { int err; struct snd_pcm_runtime *runtime = subs->runtime; if (pipe->running && ! (chip->chip_status & VX_STAT_IS_STALE)) { if ((err = vx_update_pipe_position(chip, runtime, pipe)) < 0) return; i...
false
false
false
false
false
0
free_SignedData(SignedData *data) { free_CMSVersion(&(data)->version); free_DigestAlgorithmIdentifiers(&(data)->digestAlgorithms); free_EncapsulatedContentInfo(&(data)->encapContentInfo); if((data)->certificates) { while(((data)->certificates)->len){ free_heim_any(&((data)->certificates)->val[((data)->certificates)->le...
false
false
false
false
false
0
date_to_datetime(VALUE self) { get_d1a(self); if (simple_dat_p(adat)) { VALUE new = d_lite_s_alloc_simple(cDateTime); { get_d1b(new); bdat->s = adat->s; return new; } } else { VALUE new = d_lite_s_alloc_complex(cDateTime); { get_d1b(new); bdat->c = adat->c; bdat->c.df...
false
false
false
false
false
0
rl_set_signals () { sighandler_cxt dummy; SigHandler *oh; if (rl_catch_signals && signals_set_flag == 0) { rl_maybe_set_sighandler (SIGINT, rl_signal_handler, &old_int); rl_maybe_set_sighandler (SIGTERM, rl_signal_handler, &old_term); #if defined (SIGQUIT) rl_maybe_set_sighandler (SIGQUIT, ...
false
false
false
false
false
0
select(int tag) { switch(tag) { case MENU_TAG_OK: sound.ui_ok(); manage.abort(); pop(); break; case MENU_TAG_CANCEL: gsm.change(&st_pause_game); break; } }
false
false
false
false
false
0
log_init(char *log_name, char *pot_name, char *session) { in_logger = 1; if (log_name && log.fd < 0) { if (session) log_name = path_session(session, LOG_SUFFIX); log_file_init(&log, log_name, LOG_BUFFER_SIZE); } if (pot_name && pot.fd < 0) { log_file_init(&pot, pot_name, POT_BUFFER_SIZE); cfg_beep = ...
false
false
false
false
false
0
getAllSubjects() { PD_URIList ret; apGetAllSubjects( getAP(), ret ); return ret; }
false
false
false
false
false
0
unpack_rsc_ticket(xmlNode * xml_obj, pe_working_set_t * data_set) { xmlNode *set = NULL; gboolean any_sets = FALSE; const char *id = crm_element_value(xml_obj, XML_ATTR_ID); const char *ticket_str = crm_element_value(xml_obj, XML_TICKET_ATTR_TICKET); const char *loss_policy = crm_element_value(xml_...
false
false
false
false
false
0
skip(const char *in) {while (in && *in<=32) in++; return in;}
false
false
false
false
false
0
idAt( const int row ) const { if ( rowExists( row ) ) return m_items.at( row )->id(); else return 0; }
false
false
false
false
false
0
opt_classify_comparison( /*====================*/ sel_node_t* sel_node, /*!< in: select node */ ulint i, /*!< in: ith table in the join */ func_node_t* cond) /*!< in: comparison condition */ { plan_t* plan; ulint n_fields; ulint op; ulint j; ut_ad(cond && sel_node); plan = sel_node_get_nth_plan(sel_node, ...
false
false
false
false
false
0
astnode_clone(const astnode *n, location loc) { astnode *c; astnode *n_c; if (n == NULL) { return NULL; } /* Create node */ c = astnode_create(astnode_get_type(n), loc); /* Copy attributes */ switch (astnode_get_type(n)) { case INTEGER_NODE: c->integer = n->integer; b...
false
false
false
false
false
0
s_visibility_set_cell(gint cur_page, gint row, gint col, gint visibility, gint show_name_value) { TABLE **local_table = NULL; #ifdef DEBUG printf("In s_visibility_set_cell, setting row = %d, col = %d.\n", row, col); #endif switch (cur_page) { case 0: local_table = sheet_head->compone...
false
false
false
true
false
1
connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen) { WRAPPER_EXECUTION_DISABLE_CKPT(); // The lock is released inside the macro. int ret = _real_connect ( sockfd,serv_addr,addrlen ); int saved_errno = errno; //no blocking connect... need to hang around until it is w...
false
false
false
false
false
0
gtk_knob_paint_xlib(GtkWidget *widget, int center_x, int center_y) { GtkKnob *knob = GTK_KNOB(widget); gfloat dx, dy; gdk_window_clear_area(widget->window, 0, 0, widget->allocation.width, widget->allocation.height); center_x -= HALF_KNOB_SIZE; center_y -= HALF_KNOB_SIZE; gdk_gc_set_clip_origin...
false
false
false
false
false
0
nfsd_cache_csum(struct svc_rqst *rqstp) { int idx; unsigned int base; __wsum csum; struct xdr_buf *buf = &rqstp->rq_arg; const unsigned char *p = buf->head[0].iov_base; size_t csum_len = min_t(size_t, buf->head[0].iov_len + buf->page_len, RC_CSUMLEN); size_t len = min(buf->head[0].iov_len, csum_len); /* rq...
false
false
false
false
false
0
GetSourceClass( const string& ext ) const{ map< string, gnBaseSource* >::const_iterator iter = m_sourceClassList.find( ext ); if( iter != m_sourceClassList.end() ){ return iter->second; } return m_pDefaultSourceClass; }
false
false
false
false
false
0
setEditChoice (GooString* new_content) { if (isReadOnly()) { error(errInternal, -1, "FormWidgetText::setEditChoice called on a read only field\n"); return; } if (!hasEdit()) { error(errInternal, -1, "FormFieldChoice::setEditChoice : trying to edit an non-editable choice\n"); return; } parent-...
false
false
false
false
false
0
invokeMenuMethod(AV_View * pView, EV_EditMethod * pEM, UT_UCSChar * pData, UT_uint32 dataLength) { UT_ASSERT(pView); UT_return_val_if_fail(pEM, false); //UT_DEBUGMSG(("invokeMenuMethod: %s\n",pEM->getName())); EV_EditMethodType t = pEM->getType(); if (((t & EV_EMT_REQUIREDATA) != 0...
false
false
false
false
false
0
probe_ubifs(blkid_probe pr, const struct blkid_idmag *mag) { struct ubifs_sb_node *sb; sb = blkid_probe_get_sb(pr, mag, struct ubifs_sb_node); if (!sb) return -1; blkid_probe_set_uuid(pr, sb->uuid); blkid_probe_sprintf_version(pr, "w%dr%d", sb->fmt_version, sb->ro_compat_version); return 0; }
false
false
false
false
false
0
setup_tableswitch(JVM_CODE_GRAPH_NODE *val) { Dlist tmp; int i, n; if(!val) { BAD_ARG(); return -1; } val->op = jvm_tableswitch; n = val->switch_info->high - val->switch_info->low + 1; val->switch_info->sorted_entries = (JVM_SWITCH_ENTRY **)malloc(sizeof(JVM_SWITCH_ENTRY *) * n); if...
false
false
false
false
false
0
mask_match_address(SERVER_REC *server, const char *mask, const char *nick, const char *address) { char *str; int ret, wildcards; g_return_val_if_fail(server == NULL || IS_SERVER(server), FALSE); g_return_val_if_fail(mask != NULL && nick != NULL, FALSE); if (address == NULL) address = ""; str = !check_a...
false
false
false
false
false
0
rtl8723au_writeN(struct rtw_adapter *padapter, u16 addr, u16 len, u8 *buf) { struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter); struct usb_device *udev = pdvobjpriv->pusbdev; int ret; ret = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), REALTEK_USB_VENQT_CMD_REQ, REALTEK_USB_VENQT_WRITE...
false
false
false
false
false
0
_bt_end_vacuum(Relation rel) { int i; LWLockAcquire(BtreeVacuumLock, LW_EXCLUSIVE); /* Find the array entry */ for (i = 0; i < btvacinfo->num_vacuums; i++) { BTOneVacInfo *vac = &btvacinfo->vacuums[i]; if (vac->relid.relId == rel->rd_lockInfo.lockRelId.relId && vac->relid.dbId == rel->rd_lockInfo.lockR...
false
false
false
false
true
1
check_adminrights(maildir_aclt *list) { if (strchr(maildir_aclt_ascstr(list), ACL_LOOKUP[0]) == NULL || strchr(maildir_aclt_ascstr(list), ACL_ADMINISTER[0]) == NULL) { maildir_aclt_destroy(list); return -1; } maildir_aclt_destroy(list); return 0; }
false
false
false
false
false
0
x_realloc(void *p, size_t size, const char *file, int line) { void *newp; newp = realloc(p, size); while (newp == NULL && size > 0) { (*xmalloc_error_handler)("realloc", size, file, line); newp = realloc(p, size); } return newp; }
false
false
false
false
false
0
deescapify(char *name) { const char *cp = name; char *sp; size_t len = strlen(name); char *newname; if(strchr(name, '\\') == NULL) return; newname = (char *) emalloc(len + 1); cp = name; sp = newname; while(*cp != '\0') { /* delete '\' chars, except change '\\' to '\' */ switch (...
false
true
false
false
false
1
call_init( int track ) { switch ( info.type ) { case 'B': r.a = track; run_routine( info.init_addr ); break; case 'C': r.a = 0x70; r.x = info.music_addr&0xFF; r.y = info.music_addr >> 8; run_routine( info.play_addr + 3 ); r.a = 0; r.x = track; run_routine( info.play_addr + 3 ); break; } }
false
false
false
false
false
0
bfa_fcs_lport_ms_sm_gmal_retry(struct bfa_fcs_lport_ms_s *ms, enum port_ms_event event) { bfa_trc(ms->port->fcs, ms->port->port_cfg.pwwn); bfa_trc(ms->port->fcs, event); switch (event) { case MSSM_EVENT_TIMEOUT: /* * Retry Timer Expired. Re-send */ bfa_sm_set_state(ms, bfa_fcs_lport_ms_sm_gmal_sendin...
false
false
false
false
false
0
description() const{ string str = "Composite PseudoJet"; return str; }
false
false
false
false
false
0
wildcard_has(const wchar_t *str, int internal) { if (!str) { debug(2, L"Got null string on line %d of file %s", __LINE__, __FILE__); return 0; } if (internal) { for (; *str; str++) { if ((*str == ANY_CHAR) || (*str == ANY_STRING) || (*str == ANY_STRING_RE...
false
false
false
false
false
0