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
function_iterate_argument_values (GnmEvalPos const *ep, FunctionIterateCB callback, void *callback_closure, int argc, GnmExprConstPtr const *argv, gboolean strict, CellIterFlags iter_flags) { GnmValue *result = NULL; int a; for (a = 0; result == NULL && ...
false
false
false
true
false
1
__pyx_f_7sklearn_5utils_19graph_shortest_path_remove_min(struct __pyx_t_7sklearn_5utils_19graph_shortest_path_FibonacciHeap *__pyx_v_heap) { struct __pyx_t_7sklearn_5utils_19graph_shortest_path_FibonacciNode *__pyx_v_temp; struct __pyx_t_7sklearn_5utils_19graph_shortest_path_FibonacciNode *__pyx_v_temp_right; str...
false
false
false
false
false
0
grestore(void) { Fontlist l; if (last(Jgraph_fonts) != nil(Jgraph_fonts)) { l = last(Jgraph_fonts); if (l->level == Jgraph_gsave_level) { delete_item((List)l); free_node((List)l, (List)Jgraph_fonts); } } Jgraph_gsave_level--; printf(" grestore "); }
false
false
false
false
false
0
lnewflags(But *but, uint flags) { uint ofl = but->flags; but->flags = flags; if (((flags ^ ofl) & ~BUT_TWITCHED) != 0) but_draw(but); }
false
false
false
false
false
0
pmc_atom_write(int offset, u32 value) { struct pmc_dev *pmc = &pmc_device; if (!pmc->init) return -ENODEV; pmc_reg_write(pmc, offset, value); return 0; }
false
false
false
false
false
0
TetStereoFromParity(OBMol& mol, vector<MDLFormat::Parity> &parity) { for (unsigned long i=0;i<parity.size();i++) { if (parity[i] == NotStereo) continue; OBStereo::Refs refs; FOR_NBORS_OF_ATOM(nbr, mol.GetAtomById(i)) { refs.push_back(nbr->GetId()); } sort(refs.begin(...
false
false
false
false
false
0
gtkwidget_gtk_widget_render_icon(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_) { ScmObj widget_scm; GtkWidget* widget; ScmObj stock_id_scm; const gchar * stock_id; ScmObj size_scm; int size; ScmObj detail_scm; const gchar * detail; ScmObj SCM_SUBRARGS[4]; int SCM_i; SCM_ENTER_SUBR("gtk-widget-rende...
false
false
false
false
false
0
print_tagstring(int x, int y, int maxlen, int xscroll, char *tagstring, bool cursor_in_line) { char text[MAX_PRINT_TAGSTRING_LINELENGTH]; char *t = text+xscroll; vcp color[MAX_PRINT_TAGSTRING_LINELENGTH]; vcp *c = color+xscroll; int l = render_tagstring(text, color, (maxlen+xscroll+1 > MAX_PRINT_TAGSTRING_LINELE...
false
false
false
false
false
0
nilfs_truncate_logs(struct list_head *logs, struct nilfs_segment_buffer *last) { struct nilfs_segment_buffer *n, *segbuf; segbuf = list_prepare_entry(last, logs, sb_list); list_for_each_entry_safe_continue(segbuf, n, logs, sb_list) { list_del_init(&segbuf->sb_list); nilfs_segbuf_clear(segbuf); nilfs_segbu...
false
false
false
false
false
0
hip04_alloc_ring(struct net_device *ndev, struct device *d) { struct hip04_priv *priv = netdev_priv(ndev); int i; priv->tx_desc = dma_alloc_coherent(d, TX_DESC_NUM * sizeof(struct tx_desc), &priv->tx_desc_dma, GFP_KERNEL); if (!priv->tx_desc) return -ENOMEM; priv->rx_buf_size = RX_BUF_SIZE + ...
false
false
false
false
false
0
_dxfTriangleNormalQR2D(VertexD *tri, double *n) { static VertexD x1,x2; int origin = 0; _dxfTriangleBasisVectors(tri, x1, x2, origin); return _dxfVectorProductQRD(x1,x2,n); }
false
false
false
false
false
0
gt_ppt_ok(GtPPTHit *hit, GtRange pptlen) { gt_assert(hit); return (hit->state == PPT_IN && hit->rng.end-hit->rng.start+1 >= pptlen.start && hit->rng.end-hit->rng.start+1 <= pptlen.end); }
false
false
false
false
false
0
brcmf_is_nonetwork(struct brcmf_cfg80211_info *cfg, const struct brcmf_event_msg *e) { u32 event = e->event_code; u32 status = e->status; if (event == BRCMF_E_LINK && status == BRCMF_E_STATUS_NO_NETWORKS) { brcmf_dbg(CONN, "Processing Link %s & no network found\n", e->flags & BRCMF_EVENT_MSG_LINK ?...
false
false
false
false
false
0
getSupportedIDs(UErrorCode& status) const { if (U_SUCCESS(status)) { return _ids; } return NULL; }
false
false
false
false
false
0
caldav_delete(struct caldav_db *caldavdb, unsigned rowid, int commit) { struct bind_val bval[] = { { ":rowid", SQLITE_INTEGER, { .i = rowid } }, { NULL, SQLITE_NULL, { .s = NULL } } }; int r; r = dav_exec(caldavdb->db, CMD_DELETE, bval, NULL, NULL, &caldavdb->stmt[STMT_DELETE]); if (!r &&...
false
false
false
false
false
0
SetHandlePosition( int handle, double x, double y, double z ) { if ( handle < 0 || handle >= this->NumberOfHandles ) { vtkErrorMacro(<<"vtkBrokenLineWidget: handle index out of range."); return; } this->HandleGeometry[handle]->SetCenter( x,y,z ); this->H...
false
false
false
false
false
0
R_ClearSkyBox (void) { int i; for (i=0 ; i<6 ; i++) { skymins[0][i] = skymins[1][i] = 9999; skymaxs[0][i] = skymaxs[1][i] = -9999; } }
false
false
false
false
false
0
lSetPosUlong(lListElem *ep, int pos, lUlong value) { DENTER(CULL_BASIS_LAYER, "lSetPosUlong"); if (!ep) { LERROR(LEELEMNULL); DEXIT; return -1; } if (pos < 0) { LERROR(LENEGPOS); DEXIT; return -1; } if (mt_get_type(ep->descr[pos].mt) != lUlongT) { incompati...
false
false
false
false
false
0
luaB_xpcall (lua_State *L) { int status; int n = lua_gettop(L); luaL_argcheck(L, n >= 2, 2, "value expected"); lua_pushvalue(L, 1); /* exchange function... */ lua_copy(L, 2, 1); /* ...and error handler */ lua_replace(L, 2); status = lua_pcallk(L, n - 2, LUA_MULTRET, 1, 0, pcallcont); return finishpcal...
false
false
false
false
false
0
clkdev_add(struct clk_lookup *cl) { if (!cl->clk_hw) cl->clk_hw = __clk_get_hw(cl->clk); __clkdev_add(cl); }
false
false
false
false
false
0
init_reload () { int i; /* Often (MEM (REG n)) is still valid even if (REG n) is put on the stack. Set spill_indirect_levels to the number of levels such addressing is permitted, zero if it is not permitted at all. */ rtx tem = gen_rtx_MEM (Pmode, gen_rtx_PLUS (Pmode, gen_rtx_REG (Pmode...
false
true
false
false
false
1
propertyExists(const QString &key) const { d->checkCache(key); return d->cache.value(key).isValid(); }
false
false
false
false
false
0
IDirectFBFont_FindEncoding( IDirectFBFont *thiz, const char *name, DFBTextEncodingID *ret_id ) { int i; CoreFont *font; DIRECT_INTERFACE_GET_DATA(IDirectFBFont) if (!name || !ret_id) return DFB_INVARG; D_DEBUG...
false
false
false
false
false
0
DBFGetFieldIndex(DBFHandle psDBF, const char *pszFieldName) { char name[12], name1[12], name2[12]; int i; strncpy(name1, pszFieldName,11); name1[11] = '\0'; str_to_upper(name1); for( i = 0; i < DBFGetFieldCount(psDBF); i++ ) { DBFGetFieldInfo( psDBF, i, name, NU...
false
false
false
false
false
0
recursive_operation_initialize (RecursiveOperation *operation, GrlFilesystemSource *source) { GList *chosen_uris, *uri; chosen_uris = source->priv->chosen_uris; if (chosen_uris) { for (uri = chosen_uris; uri; uri = g_list_next (uri)) { GFile *directory = g_file_new_for_uri (uri->data); g_queue_pu...
false
false
false
false
true
1
usbhs_interrupt(int irq, void *data) { struct usbhs_priv *priv = data; struct usbhs_irq_state irq_state; if (usbhs_status_get_each_irq(priv, &irq_state) < 0) return IRQ_NONE; /* * clear interrupt * * The hardware is _very_ picky to clear interrupt bit. * Especially INTSTS0_MAGIC, INTSTS1_MAGIC value. ...
false
false
false
false
false
0
RequestData( vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector* outputVector) { if (this->NumberOfTimeSteps == 0) { vtkErrorMacro("No time steps in input data!"); return 0; } // get the output data object vtkInformation* outInfo = outputVector->GetInformationObject(0...
false
false
false
false
false
0
_do_test(struct poller *p) { int fd; fd = epoll_create(global.maxsock + 1); if (fd < 0) return 0; close(fd); return 1; }
false
false
false
false
false
0
Lynxrefmbkrds( FigureRds, Reference ) rdsfig_list *FigureRds; phref_list *Reference; { rdsrec_list *Rectangle; rdsrec_list *ScanRec; char *ReferenceName; rdsbegin(); if ( LynxStaticRefRef == (char *)0 ) { LynxStaticRefRef = namealloc( "ref_ref" ); } if ( Reference->FIGNAME == LynxSta...
false
false
false
false
false
0
flint_ltoa(long N, char *str, int base) { register int i = 2; long uarg; char *tail, *head = str, buf[BUFSIZE]; if (36 < base || 2 > base) base = 10; /* can only use 0-9, A-Z */ tail = &buf[BUFSIZE - 1]; /* last character position */ ...
false
false
false
false
false
0
snd_pcm_hw_fast_tstamp(snd_pcm_t *pcm) { struct timespec res; snd_pcm_hw_t *hw = pcm->private_data; res = FAST_PCM_TSTAMP(hw); if (SNDRV_PROTOCOL_VERSION(2, 0, 5) > hw->version) res.tv_nsec *= 1000L; return res; }
false
false
false
false
false
0
s_string_list_delete_item(STRING_LIST **list, int *count, gchar *item) { gchar *trial_item = NULL; STRING_LIST *list_item; STRING_LIST *next_item = NULL; STRING_LIST *prev_item = NULL; /* First check to see if list is empty. If empty, spew error and return */ if ( (*list)->data == NULL) { fprintf(std...
false
false
false
false
false
0
inode_cksum_invalidate(struct file_opening *fo) { struct inode_open_state *ios = fo->inode->u.c.state; struct file_opening *o; for (o = ios->openings.opening_next; o != &ios->openings; o = o->opening_next) { if (o != fo) o->flag |= GFARM_FILE_CKSUM_INVALIDATED; } }
false
false
false
false
false
0
png_destroy_png_struct(png_structrp png_ptr) { if (png_ptr != NULL) { /* png_free might call png_error and may certainly call * png_get_mem_ptr, so fake a temporary png_struct to support this. */ png_struct dummy_struct = *png_ptr; memset(png_ptr, 0, (sizeof *png_ptr)); png_f...
false
false
false
false
false
0
controlvm_get_channel_address(void) { u64 addr = 0; u32 size = 0; if (!VMCALL_SUCCESSFUL(issue_vmcall_io_controlvm_addr(&addr, &size))) return 0; return addr; }
false
false
false
false
false
0
upload_error_not_found(struct upload *u, const char *request) { if (request && GNET_PROPERTY(upload_debug)) { const char *filename; struct sha1 sha1; if (urn_get_sha1(request, &sha1)) { filename = ignore_sha1_filename(&sha1); } else { filename = NULL; } g_warning("returned 404 to %s <%s>: %s (%s)", ...
false
false
false
false
false
0
register_internal (const char *name, int type, void *addr, int size) { MonoCounter *counter; GSList *register_callback; g_assert (size >= 0); if ((type & MONO_COUNTER_VARIANCE_MASK) == 0) type |= MONO_COUNTER_MONOTONIC; mono_os_mutex_lock (&counters_mutex); for (counter = counters; counter; counter = counter...
false
false
false
false
false
0
getOuts() { int outs = 0; for ( int i = 0; i< 4; ++i ) if ( !DOWN( W[offs][i] ) ) outs += RANK( W[offs][i] ); return outs; }
false
false
false
false
false
0
phase3_processing() { int p3_rc = FSCK_OK; fsck_send_msg(fsck_PHASE3); if (agg_recptr->unresolved_1stref_count > 0) { /* * there are unresolved first references to * multiply-allocated blocks */ /* see if any first * references are by aggregate fixed metadata */ p3_rc = first_ref_check_fixed_m...
false
false
false
false
false
0
wm8994_irq_init(struct wm8994 *wm8994) { int ret; unsigned long irqflags; struct wm8994_pdata *pdata = &wm8994->pdata; if (!wm8994->irq) { dev_warn(wm8994->dev, "No interrupt specified, no interrupts\n"); wm8994->irq_base = 0; return 0; } /* select user or default irq flags */ irqflags = IRQF_TRIGGER...
false
false
false
false
false
0
add_roster(cnr room, jid userid) { xmlnode store; xmlnode node; xmlnode old; char ujid[2048]; if(room == NULL || userid == NULL) { log_warn(NAME, "[%s] ERR: Missing variable", FZONE); return -1; } snprintf(ujid, sizeof(ujid), "%s@%s", userid->user, userid->server); old = g_hash_table_lookup(...
false
false
false
false
false
0
make_tree_value(struct tree *tree, struct info *locp) { struct term *term = make_term_locp(A_VALUE, locp); struct value *value = make_value(V_TREE, ref(term->info)); value->origin = make_tree_origin(tree); term->type = make_base_type(T_TREE); term->value = value; return term; }
false
false
false
false
false
0
hdhomerun_channel_frequency_to_number(struct hdhomerun_channel_list_t *channel_list, uint32_t frequency) { frequency = hdhomerun_channel_frequency_round_normal(frequency); struct hdhomerun_channel_entry_t *entry = hdhomerun_channel_list_first(channel_list); while (entry) { if (entry->frequency == frequency) { ...
false
false
false
false
false
0
snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) { struct snd_ac97_bus_ops *ops = ac97->bus->ops; if (try_warm && ops->warm_reset) { ops->warm_reset(ac97); if (snd_ac97_check_id(ac97, id, id_mask)) return 1; } if (ops->reset) ops->reset(ac97); if (ops->warm_re...
false
false
false
false
false
0
crmd_ipc_dispatch(qb_ipcs_connection_t * c, void *data, size_t size) { uint32_t id = 0; uint32_t flags = 0; crm_client_t *client = crm_client_get(c); xmlNode *msg = crm_ipcs_recv(client, data, size, &id, &flags); crm_trace("Invoked: %s", crm_client_name(client)); if (flags & crm_ipc_client_re...
false
false
false
false
false
0
ebml_parse(MatroskaDemuxContext *matroska, EbmlSyntax *syntax, void *data) { uint64_t id; int res = ebml_read_num(matroska, matroska->ctx->pb, 4, &id); id |= 1 << 7*res; return res < 0 ? res : ebml_parse_id(matroska, syntax, id, data); }
false
false
false
false
false
0
squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, int b, int offset, int length, struct squashfs_page_actor *output) { int res; struct squashfs_stream *stream = msblk->stream; mutex_lock(&stream->mutex); res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, offset, lengt...
false
false
false
false
false
0
IsComplete(uint16 part) { // There is a bug in the ED2K protocol: // For files of size n * PARTSIZE one part too much is transmitted in the availability bitfield. // Allow completion detection of this dummy part, and always report it as complete // (so it doesn't get asked for). if (part == m_iPartCount && m_sizeLastP...
false
false
false
false
false
0
utf8_to_string(unsigned char buf[], unsigned long utf8) { unsigned long val = 0; static char hex[16] = "0123456789abcdef"; if (utf8 & 0x80UL) { unsigned long x1, x2, x3, x4; x1 = (utf8 >> 24) & 0x7fUL; x2 = (utf8 >> 16) & 0x7fUL; x3 = (utf8 >> 8) & 0x7fUL; x4 = (utf8) & 0x3fUL; x1 &= 0x07UL; if (x2 &...
true
true
false
false
false
1
pinger_window_changed ( struct pinger *pinger ) { /* Do nothing if timer is already running */ if ( timer_running ( &pinger->timer ) ) return; /* Start timer when window opens for the first time */ if ( xfer_window ( &pinger->xfer ) ) start_timer_nodelay ( &pinger->timer ); }
false
false
false
false
false
0
_save_End(void) { GET_CURRENT_CONTEXT(ctx); struct vbo_save_context *save = &vbo_context(ctx)->save; const GLint i = save->prim_count - 1; ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END; save->prim[i].end = 1; save->prim[i].count = (save->vert_count - save->prim[i].start); if (i == (GL...
false
false
false
false
false
0
pkcs12() { char *arg, *file = NULL, *outform = NULL; pkcs12_t *p12 = NULL; int res = 1, index = 0; enum { OP_NONE, OP_LIST, OP_EXPORT, } op = OP_NONE; while (TRUE) { switch (command_getopt(&arg)) { case 'h': return command_usage(NULL); case 'i': file = arg; continue; case 'l': ...
false
false
false
false
false
0
check_intersects_vertex(mesh *m, edge *e){ vertex *v = m->g->verticies; while(v){ if(v->active == m->active_current) if(v!=e->A && v!=e->B && sq_line_distance(e,v)<16)return 1; v=v->next; } return 0; }
false
false
false
false
false
0
set_userlevel(userlevels value) { if(m_userlevel != value) { m_userlevel = value; //Tell the UI to respond accordingly: m_signal_userlevel_changed.emit(value); } }
false
false
false
false
false
0
DumpMIF(FILE *fpOut /*=NULL*/) { OGRGeometry *poGeom; OGRPoint *poPoint = NULL; if (fpOut == NULL) fpOut = stdout; /*----------------------------------------------------------------- * Fetch and validate geometry *---------------------------------------------------------------...
false
false
false
false
false
0
Shift(int shift_amount) { ASSERT(-64 <= shift_amount && shift_amount <= 64); if (shift_amount == 0) { return; } else if (shift_amount == -64) { high_bits_ = low_bits_; low_bits_ = 0; } else if (shift_amount == 64) { low_bits_ = high_bits_; high_bits_ = 0; } else if (shi...
false
false
false
false
false
0
acpi_db_get_line(char *input_buffer) { u32 i; u32 count; char *next; char *this; if (acpi_ut_safe_strcpy (acpi_gbl_db_parsed_buf, sizeof(acpi_gbl_db_parsed_buf), input_buffer)) { acpi_os_printf ("Buffer overflow while parsing input line (max %u characters)\n", sizeof(acpi_gbl_db_parsed_b...
false
false
false
false
false
0
snd_ymfpci_capture_prepare(struct snd_pcm_substream *substream) { struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); struct snd_pcm_runtime *runtime = substream->runtime; struct snd_ymfpci_pcm *ypcm = runtime->private_data; struct snd_ymfpci_capture_bank * bank; int nbank; u32 rate, format; ypcm->peri...
false
false
false
false
false
0
git_blob_create_frombuffer(git_oid *oid, git_repository *repo, const void *buffer, size_t len) { int error; git_odb *odb; git_odb_stream *stream; if ((error = git_repository_odb__weakptr(&odb, repo)) < 0 || (error = git_odb_open_wstream(&stream, odb, len, GIT_OBJ_BLOB)) < 0) return error; if ((error = stream...
false
false
false
false
false
0
resizeTempIndexBufferIfNeeded(size_t numInds) { size_t newSize = numInds * sizeof(uint32); if (newSize > mTempIndexSize || !mTempIndexBuffer) { if (!mTempIndexBuffer) { // init newSize = mTempIndexSize; } else ...
false
false
false
false
false
0
glade_widget_set_packing_actions (GladeWidget * widget, GladeWidget * parent) { if (widget->priv->packing_actions) { g_list_foreach (widget->priv->packing_actions, (GFunc) g_object_unref, NULL); g_list_free (widget->priv->packing_actions); widget->priv->packing_actions = NULL; } wid...
false
false
false
false
false
0
CreateSample(void) { _rwops = SDL_RWFromFile(_filename, "rb"); char *ext = _filename; for(int i = 0; *(_filename + i); i++) { if(*(_filename + i) == '.') ext = _filename + i + 1; } _sample = Sound_NewSample(_rwops, ext, _system->GetAudioInfo(), _sample_buffersize ); i...
false
false
false
false
false
0
yajl_gen_array_close(yajl_gen g) { ENSURE_VALID_STATE; INSERT_EOL; (g->depth)--; APPENDED_ATOM; INSERT_WHITESPACE; yajl_buf_append(g->buf, "]", 1); FINAL_NEWLINE; return yajl_gen_status_ok; }
false
false
false
false
false
0
tile_backward (tile_t** tiles, int* v2p, int* baseSetColors, loop_t *loop, int* color, int* partition, int loopID) { //aliases int setSize = loop->setSize; int mapSize = loop->mapSize; int *baseSetMap = loop->baseSetMap; int step = mapSize / setSize; for (int e = 0; e < setSize; ...
false
false
false
false
false
0
xmlSecKeyInfoNodeWrite(xmlNodePtr keyInfoNode, xmlSecKeyPtr key, xmlSecKeyInfoCtxPtr keyInfoCtx) { const xmlChar* nodeName; const xmlChar* nodeNs; xmlSecKeyDataId dataId; xmlNodePtr cur; int ret; xmlSecAssert2(keyInfoNode != NULL, -1); xmlSecAssert2(key != NULL, -1); xmlSecAssert2(keyIn...
false
false
false
false
false
0
update_one(const char *path, const char *prefix, int prefix_length) { const char *p = prefix_path(prefix, prefix_length, path); if (!verify_path(p)) { fprintf(stderr, "Ignoring path %s\n", path); goto free_return; } if (mark_valid_only) { if (mark_valid(p)) die("Unable to mark file %s", path); goto free_...
false
false
false
false
false
0
unity_webapps_context_get_application_accept_data (UnityWebappsContext *context) { g_return_val_if_fail (context != NULL, NULL); g_return_val_if_fail (UNITY_WEBAPPS_IS_CONTEXT (context), NULL); // TODO: Rate limit if (context->priv->remote_ready == FALSE) return NULL; gchar **mimes = NULL; GError *err...
false
false
false
false
false
0
HandleCharacterCustomizeCommand(char* args) { Player* target; ObjectGuid target_guid; std::string target_name; if (!ExtractPlayerTarget(&args, &target, &target_guid, &target_name)) return false; if (target) { PSendSysMessage(LANG_CUSTOMIZE_PLAYER, GetNameLink(target).c_str()); ...
false
false
false
false
false
0
print_tcp_rst_data(register const u_char *sp, u_int length) { int c; if (TTEST2(*sp, length)) printf(" [RST"); else printf(" [!RST"); if (length > MAX_RST_DATA_LEN) { length = MAX_RST_DATA_LEN; /* can use -X for longer */ p...
false
false
false
false
false
0
char_eq(int ch1, int ch2, int nocase) { if (nocase) return(tolower(ch1) == tolower(ch2)); return(ch1 == ch2); }
false
false
false
false
false
0
pcm_close(struct snd_pcm_substream *substream) { struct channel *channel = substream->private_data; if (channel->cfg->direction == MOST_CH_TX) kthread_stop(channel->playback_task); most_stop_channel(channel->iface, channel->id, &audio_aim); return 0; }
false
false
false
false
false
0
generic_reverse(void *l, size_t noff) { void *rl = NULL, *n; while(l) { n = memberat(void *, l, noff); memberat(void *, l, noff) = rl; rl = l; l = n; } return rl; }
false
false
false
false
false
0
nss_FindExternalRoot(const char *dbpath, const char* secmodprefix) { char *path = NULL; char *oldpath = NULL; PRBool hasrootcerts = PR_FALSE; /* * 'oldpath' is the external root path in NSS 3.3.x or older. * For backward compatibility we try to load the root certs * ...
false
false
false
false
false
0
gtk_clutter_embed_hide (GtkWidget *widget) { GtkClutterEmbedPrivate *priv = GTK_CLUTTER_EMBED (widget)->priv; /* gtk emits a hide signal during dispose, so it's possible we may * have already disposed priv->stage. */ if (priv->stage != NULL) clutter_actor_hide (priv->stage); GTK_WIDGET_CLASS (gtk_clutt...
false
false
false
false
false
0
operator()(WorldPacket& data, int32 loc_idx) { char const* text = sObjectMgr.GetMangosString(i_textId, loc_idx); char const* arg1str = i_arg1 ? sObjectMgr.GetMangosString(i_arg1, loc_idx) : ""; char const* arg2str = i_arg2 ? sObjectMgr.GetMangosString(i_arg2, ...
false
false
false
false
false
0
on_execute_until(GtkButton *button, gpointer user_data) { GeanyDocument *doc = document_get_current(); if (doc) { int line = sci_get_current_line(doc->editor->sci) + 1; debug_execute_until(DOC_FILENAME(doc), line); } }
false
false
false
false
false
0
_ldapfull_check_password_bind(authreg_t ar, char *username, char *realm, char password[LDAPFULL_PASSBUF_MAX]) { moddata_t data = (moddata_t) ar->private; struct moddata_st bind_data; int invalid; char *dn; if (!_ldapfull_find_user_dn(data, username, realm, &dn)) { log_debug(ZONE, "User %s n...
true
true
false
false
false
1
xgbe_config_rsf_mode(struct xgbe_prv_data *pdata, unsigned int val) { unsigned int i; for (i = 0; i < pdata->rx_q_count; i++) XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, RSF, val); return 0; }
false
false
false
false
false
0
settings_notify_cb (GtkSourceSearchContext *search, GParamSpec *pspec, GtkSourceSearchSettings *settings) { const gchar *property = g_param_spec_get_name (pspec); if (g_str_equal (property, "search-text")) { search_text_updated (search); } update (search); }
false
false
false
false
false
0
Perl_call_argv(pTHX_ const char *sub_name, I32 flags, char **argv) /* See G_* flags in cop.h */ /* null terminated arg list */ { dVAR; dSP; PERL_ARGS_ASSERT_CALL_ARGV; PUSHMARK(SP); if (argv) { while (*argv) { mXPUSHs(newSVpv(*argv,0)); argv++; } PUT...
false
false
false
false
false
0
clean_secrets_list(secrets_list_t *sl) { if(sl) { if(sl->secrets) { size_t i = 0; for(i = 0;i<sl->sz;++i) { if(sl->secrets[i]) { turn_free(sl->secrets[i], strlen(sl->secrets[i])+1); } } turn_free(sl->secrets,(sl->sz)*sizeof(char*)); sl->secrets = NULL; sl->sz = 0; } } }
false
false
false
false
false
0
baytech_new(const char *subplugin) { struct pluginDevice* bt = ST_MALLOCT(struct pluginDevice); if (bt == NULL) { LOG(PIL_CRIT, "out of memory"); return(NULL); } memset(bt, 0, sizeof(*bt)); bt->pluginid = pluginid; bt->pid = -1; bt->rdfd = -1; bt->wrfd = -1; REPLSTR(bt->idinfo, DEVICE); if (bt->idinfo ==...
false
false
false
false
false
0
CYKInsideScore(CM_t *cm, ESL_DSQ *dsq, int L, int r, int i0, int j0, int *dmin, int *dmax) { int z; float sc; z = cm->M-1; sc = 0.; if (r != 0) { z = CMSubtreeFindEnd(cm, r); sc = cm->beginsc[r]; } if(dmin == NULL && dmax == NULL) sc += inside(cm, dsq, ...
false
false
false
false
false
0
AddFirstToDatagramHistory(DatagramSequenceNumberType datagramNumber, CCTimeType timeSent) { (void) datagramNumber; if (datagramHistory.Size()>DATAGRAM_MESSAGE_ID_ARRAY_LENGTH) { RemoveFromDatagramHistory(datagramHistoryPopCount); datagramHistory.Pop(); datagramHistoryPopCount++; } datagramHistory....
false
false
false
false
false
0
main(int argc, char *argv[]) { struct vhci *vhci; struct server *server; sigset_t mask; mainloop_init(); sigemptyset(&mask); sigaddset(&mask, SIGINT); sigaddset(&mask, SIGTERM); mainloop_set_signal(&mask, signal_callback, NULL, NULL); vhci = vhci_open(VHCI_TYPE_BREDR, 0x23); if (!vhci) { fprintf(stderr,...
false
false
false
false
false
0
ssl_calc_finished_tls_sha384( ssl_context *ssl, unsigned char *buf, int from ) { int len = 12; const char *sender; sha4_context sha4; unsigned char padbuf[48]; ssl_session *session = ssl->session_negotiate; if( !session ) session = ssl->session; SSL_DEBUG_MSG( 2, ( ...
true
true
false
false
false
1
main(int argc, char *argv[]) { CommandOptions options; if (!options.Parse(argc, argv)) { CommandOptions::ShowUsage(&std::cerr); return 1; } else if (options.help()) { CommandOptions::ShowUsage(&std::cerr); return 0; } const std::string &lexicon_file_name = options.lexicon_file_name(); const...
false
false
false
false
false
0
sycc444_to_rgb(opj_image_t *img) { int *d0, *d1, *d2, *r, *g, *b; const int *y, *cb, *cr; int maxw, maxh, max, i, offset, upb; i = img->comps[0].prec; offset = 1<<(i - 1); upb = (1<<i)-1; maxw = img->comps[0].w; maxh = img->comps[0].h; max = maxw * maxh; y = img->comps[0].data; cb = img->comps[1].data; cr ...
false
false
false
false
false
0
__os_yield(env, secs, usecs) ENV *env; u_long secs, usecs; /* Seconds and microseconds. */ { /* * Don't require the values be normalized (some operating systems * return an error if the usecs argument to select is too large). */ for (; usecs >= US_PER_SEC; usecs -= US_PER_SEC) ++secs; if (DB_GLOBAL(j_yie...
false
false
false
false
false
0
addFont(const char *fontString_) { MSPrintFontData *data=0; if (fontString_!=0) { if ((MSPrintFontData *)printFontIDHashTable().lookup(fontString_)== (MSPrintFontData *)printFontIDHashTable().notFound()) { data=new MSPrintFontData(path(),fontFileName()); if (data->bufsize()!=0) { data->font...
false
false
false
true
true
1
X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid, int atrtype, const void *data, int len) { ASN1_OBJECT *obj; X509_ATTRIBUTE *ret; obj=OBJ_nid2obj(nid); if (obj == NULL) { X509err(X509_F_X509_ATTRIBUTE_CREATE_BY_NID,X509_R_UNKNOWN_NID); return(NULL); } ret=X509_ATTRIBUTE_create_by_OBJ(att...
false
false
false
false
false
0
SUBR_tr(void) { char *str; SUBR_ENTER_PARAM(1); VALUE_conv_string(&PARAM[0]); if (SUBR_check_string(PARAM)) STRING_void_value(RETURN); else { str = STRING_new_temp(&PARAM->_string.addr[PARAM->_string.start], PARAM->_string.len); RETURN->type = T_CSTRING; RETURN->_string.addr = (char *)LOCAL_gette...
false
false
false
false
false
0
qttext_get_text (ParserState * state) { gchar *ret; GstQTTextContext *context = GST_QTTEXT_CONTEXT (state); if (state->buf == NULL) return NULL; if (context->markup_open) { g_string_append (state->buf, "</span>"); } ret = g_string_free (state->buf, FALSE); state->buf = NULL; context->markup_ope...
false
false
false
false
false
0
H5Z_register (const H5Z_class2_t *cls) { size_t i; herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(FAIL) HDassert(cls); HDassert(cls->id >= 0 && cls->id <= H5Z_FILTER_MAX); /* Is the filter already registered? */ for(i = 0; i < H5Z_table_used_g; i++) if(H5Z_tab...
false
false
false
false
false
0
__fat_remove_entries(struct inode *dir, loff_t pos, int nr_slots) { struct super_block *sb = dir->i_sb; struct buffer_head *bh; struct msdos_dir_entry *de, *endp; int err = 0, orig_slots; while (nr_slots) { bh = NULL; if (fat_get_entry(dir, &pos, &bh, &de) < 0) { err = -EIO; break; } orig_slots = n...
false
false
false
false
false
0
get_mask_first_set_bit (unsigned mask) { int pos = 0; if (mask == 0) return -1; while ((mask & (1 << pos)) == 0) pos++; return pos; }
false
false
false
false
false
0
reparent_ctf_expression(struct ctf_node *node, struct ctf_node *parent) { switch (parent->type) { case NODE_EVENT: _bt_list_splice_tail(&node->tmp_head, &parent->u.event.declaration_list); break; case NODE_STREAM: _bt_list_splice_tail(&node->tmp_head, &parent->u.stream.declaration_list); break; case ...
false
false
false
false
false
0
make_arrayless_alist(VOID) { ArgListHeader *alhead; if(((alhead=new_arglistheader()) == (ArgListHeader *) NULL) ) { oops_message(OOPS_FATAL,line_num,NO_COL_NUM, "Out of malloc space for external decl"); } alhead->numargs = 0; alhead->is_defn = FALSE; alhead->is_call = FALSE; alhead->arg_array = N...
false
false
false
false
false
0
parse_end(char **cp) { *cp = skip_over_blank(*cp); if (!strncmp(*cp, "</device>", 9)) { DBG(DEBUG_READ, printf("found device trailer %9s\n", *cp)); *cp += 9; return 0; } return -BLKID_ERR_CACHE; }
false
false
false
false
false
0
selectItemsToggle(Q3CanvasItemList* list) { Q3CanvasItemList::iterator itr; ASSERT_ENGAUGE(list != 0); for (itr = list->begin(); itr != list->end(); ++itr) { Q3CanvasItemList::iterator itrS = selectionList.find(*itr); if (itrS == selectionList.end()) selectionList.append(*itr); else sel...
false
false
false
true
false
1