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
eventDispatcher(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkTreePath *path; GtkTreeIter iter; GtkTreeModel *model; if (!event) return; if (((GdkEventButton *) event)->button != 1) return; if (event->window == gtk_tree_view_get_bin_window (GTK_TREE_VIEW (widget)) && !gtk_tree...
false
false
false
false
true
1
ginendscan(PG_FUNCTION_ARGS) { IndexScanDesc scan = (IndexScanDesc) PG_GETARG_POINTER(0); GinScanOpaque so = (GinScanOpaque) scan->opaque; if (so != NULL) { freeScanKeys(so->keys, so->nkeys, TRUE); freeScanKeys(so->markPos, so->nkeys, FALSE); MemoryContextDelete(so->tempCtx); pfree(so); } PG_RETURN_VO...
false
false
false
false
false
0
submit_noffset_nonce(struct thr_info *thr, struct work *work_in, uint32_t nonce, int noffset) { struct work *work = make_work(); bool ret = false; _copy_work(work, work_in, noffset); if (!test_nonce(work, nonce)) { inc_hw_errors(thr); goto out; } ret = true; update_work_stats(thr, work); if (opt_benc...
false
false
false
false
false
0
gst_interlace_getcaps (GstPad * pad) { GstInterlace *interlace; GstPad *otherpad; GstCaps *othercaps; GstCaps *icaps; interlace = GST_INTERLACE (gst_pad_get_parent (pad)); otherpad = (pad == interlace->srcpad) ? interlace->sinkpad : interlace->srcpad; othercaps = gst_pad_peer_get_caps (otherpad);...
false
false
false
false
false
0
jgdi_report_host_begin(qhost_report_handler_t* handler, const char* host_name, lList **alpp) { jgdi_report_handler_t* jgdi_handler = (jgdi_report_handler_t*)handler->ctx; JNIEnv *env = jgdi_handler->env; jobject qhost_info = NULL; DENTER(JGDI_LAYER, "jgdi_report_host_begin"); DPRINTF(("Create new ho...
false
false
false
false
false
0
SndSave_OpenSoundFile(const char *szFileName) { SndSave_CloseSoundFile(); sndoutput = fopen(szFileName, "wb"); if (sndoutput == NULL) return FALSE; /* The RIFF header: Offset Length Contents 0 4 bytes 'RIFF' 4 4 bytes <file length - 8> 8 4 bytes 'WAVE' The fmt chunk: ...
false
false
false
false
true
1
ptrace_get_dr7(struct perf_event *bp[]) { int i; int dr7 = 0; struct arch_hw_breakpoint *info; for (i = 0; i < HBP_NUM; i++) { if (bp[i] && !bp[i]->attr.disabled) { info = counter_arch_bp(bp[i]); dr7 |= encode_dr7(i, info->len, info->type); } } return dr7; }
false
false
false
false
false
0
setLocal(as_object& locals, const std::string& varname, const as_value& val) { Property* prop = locals.getOwnProperty(getURI(getVM(locals), varname)); if (!prop) return false; prop->setValue(locals, val); return true; }
false
false
false
false
false
0
wp_pthread_detach (pthread_t tid) { int n; if ((n = pthread_detach (tid)) != 0) wp_pthread_warning(n); return n; }
false
false
false
false
false
0
JS_GetMethodById(JSContext *cx, JSObject *obj, jsid id, JSObject **objp, jsval *vp) { CHECK_REQUEST(cx); if (!js_GetMethod(cx, obj, id, false, vp)) return JS_FALSE; if (objp) *objp = obj; return JS_TRUE; }
false
false
false
false
false
0
plP_dcmmx(PLFLT x) { return ((PLFLT) (x * ABS(plsc->phyxma - plsc->phyxmi) / plsc->xpmm)); }
false
false
false
false
false
0
assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align, struct function *function) { rtx x, addr; int bigend_correction = 0; int alignment; int frame_off, frame_alignment, frame_phase; if (align == 0) { tree type; if (mode == BLKmode) alignment = BIGGEST_ALIGNME...
false
false
false
false
false
0
H5O_link(const H5O_loc_t *loc, int adjust, hid_t dxpl_id) { H5O_t *oh = NULL; hbool_t deleted = FALSE; /* Whether the object was deleted */ int ret_value; /* Return value */ FUNC_ENTER_NOAPI(H5O_link, FAIL) /* check args */ HDassert(loc); HDassert(loc->file)...
false
false
false
false
false
0
SPF_request_set_ipv6(SPF_request_t *sr, struct in6_addr addr) { if (sr->client_dom) { free(sr->client_dom); sr->client_dom = NULL; } sr->client_ver = AF_INET6; sr->ipv6 = addr; return SPF_E_SUCCESS; }
false
false
false
false
false
0
_triangle(struct state *st, int x, int y, int rx, int ry, int t) { switch(t) { case 1: return(_min(_min(x+y+rx-(st->gridx/2),st->gridx-x+y),(st->gridy-y+(ry/2))*3/2)); case 2: return(_min(_min(x-rx,y-ry),(rx+ry-x-y)*2/3)); case 3: return(_min(_min(st->gridx-x-rx,y-ry),(rx+ry-st->gridx+x-...
false
false
false
false
false
0
gnm_expr_top_get_boundingbox (GnmExprTop const *texpr, Sheet const *sheet, GnmRange *bound) { g_return_if_fail (IS_GNM_EXPR_TOP (texpr)); gnm_expr_get_boundingbox (texpr->expr, sheet, bound); }
false
false
false
false
false
0
Curl_connecthost(struct connectdata *conn, /* context */ struct Curl_dns_entry *remotehost, /* use this one */ curl_socket_t *sockconn, /* the connected socket */ Curl_addrinfo **addr, /* the one we used */ b...
false
false
false
false
false
0
fso_gsm_plus_cpbw_test (FsoGsmPlusCPBW* self, const gchar* cat) { gchar* result = NULL; const gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (cat != NULL, NULL); _tmp0_ = cat; _tmp1_ = string_to_string (_tmp0_); _tmp2_ = g...
false
false
false
false
false
0
uv__make_socketpair(int fds[2], int flags) { #if defined(__linux__) static int no_cloexec; if (no_cloexec) goto skip; if (socketpair(AF_UNIX, SOCK_STREAM | UV__SOCK_CLOEXEC | flags, 0, fds) == 0) return 0; /* Retry on EINVAL, it means SOCK_CLOEXEC is not supported. * Anything else is a genuine err...
false
false
false
false
false
0
ipc_binary_write_message( ipc_binary_channel_t *chan, int fd, ipc_binary_message_t *msg) { gsize written; /* add the message to the queue */ ipc_binary_queue_message(chan, msg); /* and write the outgoing buffer */ written = full_write(fd, chan->out.buf + chan->out.offset, chan->out.len...
false
false
false
false
false
0
Initialize(Configuration &Cnf) { Cnf.Set("Dir::State::extended_states", "/dev/null"); Cnf.Set("Dir::State::status","/dev/null"); Cnf.Set("Dir::State::lists","/dev/null"); Cnf.Set("Debug::NoLocking", "true"); Cnf.Set("APT::Get::Simulate", "true"); if (StatusFile) { delete StatusFile; Status...
false
false
false
false
false
0
json_cmp(struct json_token* tok, const json_char* str) { if (!tok || !str) return 1; json_size i; for (i = 0; (i < tok->len && *str); i++, str++){ if (tok->str[i] != *str) return 1; } return 0; }
false
false
false
false
true
1
VisitConditional(Conditional* node) { Comment cmnt(masm_, "[ Conditional"); JumpTarget then; JumpTarget else_; JumpTarget exit; ControlDestination dest(&then, &else_, true); LoadCondition(node->condition(), &dest, true); if (dest.false_was_fall_through()) { // The else target was bound, so we compile...
false
false
false
false
false
0
fl_set_form_hotobject( FL_FORM * form, FL_OBJECT * obj ) { if ( ! form ) { M_err( "fl_set_form_hotobject", "NULL form" ); return; } if ( ! obj ) { M_err( "fl_set_form_hotobject", "NULL object" ); return; } if ( obj->form != form ) ...
false
false
false
false
false
0
tx_flowc_wr_credits(int *nparamsp, int *flowclenp) { int nparams, flowclen16, flowclen; nparams = FLOWC_WR_NPARAMS_MIN; flowclen = offsetof(struct fw_flowc_wr, mnemval[nparams]); flowclen16 = DIV_ROUND_UP(flowclen, 16); flowclen = flowclen16 * 16; /* * Return the number of 16-byte credits used by the FlowC req...
false
false
false
false
false
0
pcache_ping_accept(gnutella_node_t *n) { time_t now = tm_time(); if (now < n->ping_accept) { n->n_ping_throttle++; /* Drop the ping */ gnet_stats_count_dropped(n, MSG_DROP_THROTTLE); return FALSE; } else { n->n_ping_accepted++; n->ping_accept = now + n->ping_throttle; /* Drop all until then */ /...
false
false
false
false
false
0
mantiuk06_contrast_equalization (pyramid_t *pp, const gfloat contrastFactor ) { gint i, idx; struct hist_data *hist; gint total_pixels = 0; /* Count sizes */ pyramid_t *l = pp; while (l != NULL) { total_pixels += l->rows * l->cols; ...
false
false
false
false
false
0
_dxf_attributeMatrix(attributeP att, float matrix[4][4]) { ENTRY(("_dxf_attributeMatrix(0x%x, 0x%x)", att, matrix)); COPYMATRIX(matrix,att->mm); EXIT(("")); }
false
false
false
false
false
0
parse_time_field(const char *p, time_t *start_time, time_t *end_time) { if (!p) return (-1); *start_time=0; *end_time=0; while (*p && isdigit((int)(unsigned char)*p)) { *start_time=*start_time * 10 + (*p-'0'); ++p; } if (*p != ',') return (-1); ++p; while (*p && isdigit((int)(unsigned char)*p...
false
false
false
false
false
0
mlx4_SET_VLAN_FLTR(struct mlx4_dev *dev, struct mlx4_en_priv *priv) { struct mlx4_cmd_mailbox *mailbox; struct mlx4_set_vlan_fltr_mbox *filter; int i; int j; int index = 0; u32 entry; int err = 0; mailbox = mlx4_alloc_cmd_mailbox(dev); if (IS_ERR(mailbox)) return PTR_ERR(mailbox); filter = mailbox->buf; ...
false
false
false
false
false
0
ssl_cert_inst(CERT **o) { /* Create a CERT if there isn't already one * (which cannot really happen, as it is initially created in * SSL_CTX_new; but the earlier code usually allows for that one * being non-existant, so we follow that behaviour, as it might * turn out that there actually is a reason for it --...
false
false
false
false
false
0
get_frame_no() { int fnum; if (memcmp(display + info_col - 1, timestr, timesize) && memcmp(display + info_col - 1, alttimestr, timesize)) { errexit('t', "Can't find frame number. Got '%.*s' instead of '%.*s'", timesize, display + info_col - 1, timesize, timestr); } i...
false
false
false
false
false
0
patricia_destroy(patricia_t *pt) { patricia_check(pt); if (--pt->refcnt > 0) return; /* Still referenced by something internally */ patricia_traverse(pt, patricia_traverse_remove_node, pt, NULL, NULL); g_assert(pt->nodes == 0); pt->magic = 0; WFREE(pt); }
false
false
false
false
false
0
clip_polygon(g3s_point **src,g3s_point **dest,int *nv,g3s_codes *cc) { int plane_flag; g3s_point **t; for (plane_flag=1;plane_flag<16;plane_flag<<=1) if (cc->uor & plane_flag) { *nv = clip_plane(plane_flag,src,dest,nv,cc); if (cc->uand) //clipped away return dest; t = src; src = dest; dest = t; ...
false
false
false
false
false
0
set_parameter(int param, CHAIN_OPERATOR::parameter_t value) { switch (param) { case 1: center = value; break; case 2: if (value != 0) width = value; else width = center / 2; break; } conb[1] = exp(-(2 * M_PI) * (width / (CHAIN_OPERATOR::parameter_t)samples_per_second())); conb[0] = (-4...
false
false
false
false
false
0
tap_add_ioctl(struct ifreq *ifr, uid_t uid, gid_t gid) { int fd; int ret = -1; #ifdef IFF_TUN_EXCL ifr->ifr_flags |= IFF_TUN_EXCL; #endif fd = open(TUNDEV, O_RDWR); if (fd < 0) { perror("open"); return -1; } if (ioctl(fd, TUNSETIFF, ifr)) { perror("ioctl(TUNSETIFF)"); goto out; } if (uid != -1 && ioc...
false
false
false
false
true
1
datetime_subtract(PyObject *left, PyObject *right) { PyObject *result = Py_NotImplemented; if (PyDateTime_Check(left)) { /* datetime - ??? */ if (PyDateTime_Check(right)) { /* datetime - datetime */ PyObject *offset1, *offset2, *offdiff = NULL; int delta_d, d...
false
false
false
false
false
0
qhost_usage( FILE *fp ) { dstring ds; char buffer[256]; DENTER(TOP_LAYER, "qhost_usage"); if (fp == NULL) { DRETURN(false); } sge_dstring_init(&ds, buffer, sizeof(buffer)); fprintf(fp, "%s\n", feature_get_product_name(FS_SHORT_VERSION, &ds)); fprintf(fp,"%s qhost [options]\n", MSG_SR...
false
false
false
false
false
0
split_hunk_in_vector( git_vector *vec, git_blame_hunk *hunk, size_t rel_line, bool return_new) { size_t new_line_count; git_blame_hunk *nh; /* Don't split if already at a boundary */ if (rel_line <= 0 || rel_line >= hunk->lines_in_hunk) { return hunk; } new_line_count = hunk->lines_in_hunk - rel...
false
false
false
false
false
0
input_device_unregister(const char *path, const char *uuid) { struct input_device *idev; struct input_conn *iconn; idev = find_device_by_path(devices, path); if (idev == NULL) return -EINVAL; iconn = find_connection(idev->connections, uuid); if (iconn == NULL) return -EINVAL; if (iconn->pending_connect) {...
false
false
false
false
false
0
find_dev(struct i2c_adapter *i2c_adap, u8 i2c_addr) { struct stv090x_dev *temp_dev = stv090x_first_dev; /* Search of the last stv0900 chip or find it by i2c adapter and i2c address */ while ((temp_dev != NULL) && ((temp_dev->internal->i2c_adap != i2c_adap) || (temp_dev->internal->i2c_addr != i2c_addr))...
false
false
false
false
false
0
_dxfRotateParentTriangle(int parent_vertex, int *vertex_fathers, int *tri_v, int *tri_v_parents, int *tri_v_rotated) { /* the triangle must be a parent triangle itself (otherwise all three triangle vertices are not necessarily different */ tri_v_parents[0] = FATHER(tri_v[0], vertex_fathers); tri_v_p...
false
false
false
false
false
0
_hb_buffer_clear_positions( HB_Buffer buffer ) { if ( !buffer->positions ) { HB_Error error; if ( ALLOC_ARRAY( buffer->positions, buffer->allocated, HB_PositionRec ) ) return error; } memset (buffer->positions, 0, sizeof (buffer->positions[0]) * buffer->in_length); return HB_Err_Ok; }
false
false
false
false
false
0
is_enabled_infer_bool(CdlTransaction transaction, CdlExpression expr, unsigned int index, bool goal, int level) { CYG_REPORT_FUNCNAMETYPE("is_enabled_infer_bool", "result %d"); CYG_REPORT_FUNCARG5XV(transaction, expr, index, goal, level); bool result = false; CdlSubexpression subexpr = expr->sub_ex...
false
false
false
false
false
0
path_new (DRouteContext *cnx, const char *path, gboolean prefix, void *user_data, DRouteIntrospectChildrenFunction introspect_children_cb, void *introspect_children_data, DRouteGetDatumFunction get_datum) { DRoutePath *new_path; new_path = g_new0 (...
false
false
false
false
false
0
resetgnumdist_shulen(GtBUinfo_shulen *father, unsigned long numofdbfiles) { unsigned long idx; #ifdef SHUDEBUG printf("reset node %lu\n",father->id); #endif for (idx = 0; idx < numofdbfiles; idx++) { father->gnumdist[idx] = 0; } }
false
false
false
false
false
0
CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, DebugLoc &dl, unsigned &NewOpc, unsigned &EvenReg, unsigned &OddReg, unsigned &BaseReg, int &Offs...
false
false
false
false
false
0
sh_str2file(const char *header_str, const char *str, FILE* fp) { int ret = 1; int ret_fp = -1; int ret_fl = EOF; dstring ds; char buffer[128]; uid_t old_euid = SGE_SUPERUSER_UID; if (fp) { /* * Work around for CR 6293411: * See shepherd_trace_exit() for details. ...
false
false
false
false
false
0
scpiParser_parseProgramData(lex_state_t * state, scpi_token_t * token) { scpi_token_t tmp; int result = 0; int wsLen; int suffixLen; int realLen = 0; realLen += scpiLex_WhiteSpace(state, &tmp); if (result == 0) result = scpiLex_NondecimalNumericData(state, token); if (result == 0) resul...
false
false
false
false
false
0
L75__WINDOW_CENTEROFFSET__dwtrans() {register object *base=vs_base; register object *sup=base+VM75; VC75 vs_check; {object V387; object V388; V387=(base[0]); V388=(base[1]); vs_top=sup; goto TTL; TTL:; V389= (*(LnkLI189))((V387)); base[3]= immnum_minus(/* INLINE-ARGS */V389,CMPcar((V388))); base[4]= small_fi...
false
false
false
false
false
0
fancy_prompt (char *user, char *password) { int rc; do { process_config (); draw_logon (); set_userfield_attrs(); inputmask (pos_username_y, pos_username_x, len_username, user, 0, ' '); call_after_username_hook(); set_pwfield_attrs(); rc = inputmask(pos_password_y,pos_...
false
false
false
false
false
0
archive_write_client_write(struct archive_write_filter *f, const void *_buff, size_t length) { struct archive_write *a = (struct archive_write *)f->archive; struct archive_none *state = (struct archive_none *)f->data; const char *buff = (const char *)_buff; ssize_t remaining, to_copy; ssize_t bytes_writ...
false
false
false
false
false
0
free_ps_list() { int i; for (i = 0; i < processes; i++) { xfree(ps_vect[i]); ps_vect[i] = NULL; } }
false
false
false
false
false
0
adjust(Agraph_t * g, double temp, bport_t * pp) { Agnode_t *n; Agnode_t *n1; Agedge_t *e; if (temp <= 0.0) return; for (n = agfstnode(g); n; n = agnxtnode(g, n)) { DISP(n)[0] = DISP(n)[1] = 0; } for (n = agfstnode(g); n; n = agnxtnode(g, n)) { for (n1 = agnxtnode(g, n); n1; n1 = agnxtn...
false
false
false
false
false
0
method_start(int local_count, int max_stack, int param_count, const char *name) { stack = 0; is_main = (strcmp(name, "main") == 0) ? 1 : 0; fprintf(out, "%s:\n", name); fprintf(out, " ;; Save iy if needed. iy = alloca(params * 2)\n"); if (is_main) { fprintf(out, " ld (save_iy),iy\n"); } // FIX...
false
false
false
false
false
0
hslider_draw_erase(t_hslider* x,t_glist* glist) { t_canvas *canvas=glist_getcanvas(glist); sys_vgui(".x%lx.c delete %lxBASE\n", canvas, x); sys_vgui(".x%lx.c delete %lxKNOB\n", canvas, x); sys_vgui(".x%lx.c delete %lxLABEL\n", canvas, x); if(!x->x_gui.x_fsf.x_snd_able) sys_vgui(".x%lx.c del...
false
false
false
false
false
0
drm_fb_helper_dpms(struct fb_info *info, int dpms_mode) { struct drm_fb_helper *fb_helper = info->par; struct drm_device *dev = fb_helper->dev; struct drm_crtc *crtc; struct drm_connector *connector; int i, j; /* * For each CRTC in this fb, turn the connectors on/off. */ drm_modeset_lock_all(dev); if (!drm...
false
false
false
false
false
0
tree_mounted_col_toggled_cb(GtkCellRendererToggle *cell, gchar *pth, GigoloWindow *window) { GigoloWindowPrivate *priv = GIGOLO_WINDOW_GET_PRIVATE(window); GtkTreeSelection *selection; GtkTreePath *path; path = gtk_tree_path_new_from_string(pth); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(priv->treevie...
false
false
false
false
false
0
module_register(void) { static gint types_initialized = 0; GwyResourceClass *klass; if (!types_initialized) { types_initialized += gwy_raw_file_preset_get_type(); klass = g_type_class_ref(GWY_TYPE_RAW_FILE_PRESET); gwy_resource_class_load(klass); g_type_class_unref(klass); ...
false
false
false
false
false
0
debug_destroy(void) { /* close PTY file descriptors */ close(pty_master); close(pty_slave); /* remove stack markers if present */ if (stack) { remove_stack_markers(); g_list_foreach(stack, (GFunc)frame_free, NULL); g_list_free(stack); stack = NULL; } stree_destroy(); }
false
false
false
false
false
0
addOverlappingObjectInternal(btBroadphaseProxy* otherProxy,btBroadphaseProxy* thisProxy) { btCollisionObject* otherObject = (btCollisionObject*)otherProxy->m_clientObject; btAssert(otherObject); ///if this linearSearch becomes too slow (too many overlapping objects) we should add a more appropriate data structure i...
false
false
false
false
false
0
ReadHLLLine(char *buf, int nBytes) { if (buf && nBytes && cpu) return ((Processor *)cpu)->files.ReadLine(hll_file_id,hll_src_line,buf,nBytes); return buf; }
false
false
false
false
false
0
fnic_send(struct fc_lport *lp, struct fc_frame *fp) { struct fnic *fnic = lport_priv(lp); unsigned long flags; if (fnic->in_remove) { dev_kfree_skb(fp_skb(fp)); return -1; } /* * Queue frame if in a transitional state. * This occurs while registering the Port_ID / MAC address after FLOGI. */ spin_lock...
false
false
false
false
false
0
us_wv_hdy (init_data, detected, easter, year, hd_elems, fday, count) Bool *init_data; const Bool detected; int easter; const int year; int *hd_elems; const int fday; const int count; /* Manages all specific holidays celebrated in United States/West Virginia. */ { register int day...
false
false
false
false
false
0
setDuration(int duration) { if (duration < 1) { return; } d->defaultDuration = duration; }
false
false
false
false
false
0
fast_children_both(const Node &node, char *myMoves, char *opMoves) { // cout << "getc:" <<endl; // number of children found char i = 0, curIdxMY, curIdxOP; for ( ; i < sizeof(DIRECTIONS); i++) { // cout << "fastm:" <<endl; curIdxMY = node.myIdx + DIRECTIONS[i]; curIdxOP = node.opIdx + DIRECTIONS[i]; wh...
false
false
false
false
false
0
i40e_undo_del_filter_entries(struct i40e_vsi *vsi, struct list_head *from) { struct i40e_mac_filter *f, *ftmp; list_for_each_entry_safe(f, ftmp, from, list) { f->changed = true; /* Move the element back into MAC filter list*/ list_move_tail(&f->list, &vsi->mac_filter_list); } }
false
false
false
false
false
0
MMC5Synco(void) { int x; MMC5PRG(); for(x=0;x<4;x++) { switch((NTAMirroring>>(x<<1))&3) { case 0:PPUNTARAM|=1<<x;vnapage[x]=NTARAM;break; case 1:PPUNTARAM|=1<<x;vnapage[x]=NTARAM+0x400;break; case 2:PPUNTARAM|=1<<x;vnapage[x]=ExRAM;break; case 3:PPUNTARAM&=~(1<<x);vnapage[x]=MMC5fill;break; ...
false
false
false
false
false
0
ComputeLocation(MessageLocation* target) { *target = MessageLocation(Handle<Script>(Heap::empty_script()), -1, -1); StackTraceFrameIterator it; if (!it.done()) { JavaScriptFrame* frame = it.frame(); JSFunction* fun = JSFunction::cast(frame->function()); Object* script = fun->shared()->script(); if...
false
false
false
false
false
0
tapemap() { TapeMap * tapemap = new TapeMap(this); connect(tapemap, SIGNAL(output(QByteArray)), this , SLOT(writeToLog(QByteArray))); tapemap->exec(); }
false
false
false
false
false
0
http_process_stream(SOCK * sock_obj, int r) { sock_obj->size += r; sock_obj->total_size += r; if (!sock_obj->extracted) { if (req->verbose) printf(HTTP_HEADER_HEXA); if ((sock_obj->extracted = extract_html(sock_obj->buffer, sock_obj->size))) { if (req->verbose) http_dump_header(sock_obj->buffer + (soc...
false
false
false
false
true
1
deviceClassLoad(device_ *r) { devicePrivate_ *p; ReturnErrIf(r == NULL); p = r->private; ReturnErrIf(p == NULL); Debug("Loading %s %s %p", r->class->type, r->refdes, r); /* Initialise / Reset State Data */ ReturnErrIf(checkbreakInitialize(p->checkbreak, 0.0)); if(p->waveform != NULL) { ReturnErrIf(waveform...
false
false
false
false
false
0
mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame) { int index; struct mlme_handler *ptable; #ifdef CONFIG_88EU_AP_MODE struct mlme_priv *pmlmepriv = &padapter->mlmepriv; #endif /* CONFIG_88EU_AP_MODE */ u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; u8 *pframe = precv_frame->rx...
false
false
false
false
false
0
noEmptySequence(vector<Sequence> seqVector, string *offendingSeq) { vector<Sequence>::iterator si; for (si = seqVector.begin(); si != seqVector.end(); si++) { if (si->isEmpty()) { offendingSeq->assign(si->getName()); return false; } } return true; }
false
false
false
false
false
0
delete_configline(struct asr *asr, int index) { struct asr_raid_configline *cl, *end; struct asr_raidtable *rt = asr->rt; rt->elmcnt--; cl = rt->ent + index; end = rt->ent + rt->elmcnt; while (cl < end) { memcpy(cl, cl + 1, sizeof(*cl)); ++cl; } }
false
true
false
false
false
1
Pr_Vector (Object port, Object vec, register int raw, register int depth, register unsigned int length) { register unsigned int i, j; GC_Node2; if (depth == 0) { Printf (port, "&"); return; } GC_Link2 (port, vec); Printf (port, "#("); for (i = 0, j = VECTOR(vec)->siz...
false
false
false
false
false
0
get_header_line(char *start, int continuation) { char *p = start; char *end = start; if(p[0] == '\r' && p[1] == '\n') { /* If EOL in 1st 2 chars */ p++; /* point to \n and stop */ } else if(*p != '\n') { if(continuation) { while(*p != '\0') {...
false
false
false
false
false
0
AutoSwitchIncam(){ if (localPlayer) return localPlayer->autoSwitchIncam; else return false; }
false
false
false
false
false
0
dial(const char* number, Status& eresult) { dialedNumber = fxStr(number); protoTrace("DIAL %s", number); fxStr buf = fxStr::format((const char*) conf.dialCmd, number); eresult.clear(); CallStatus cs = (atCmd(buf, AT_NOTHING) ? dialResponse(eresult) : FAILURE); if (cs != OK && eresult.value() == ...
false
false
false
false
false
0
buffer_prepare(struct vb2_buffer *vb) { struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); struct em28xx_v4l2 *v4l2 = dev->v4l2; unsigned long size; em28xx_videodbg("%s, field=%d\n", __func__, vbuf->field); size = (v4l2->width * v4l2->height * v...
false
false
false
false
false
0
have_to_update_pipeline (GnlComposition * comp) { GST_DEBUG_OBJECT (comp, "segment[%" GST_TIME_FORMAT "--%" GST_TIME_FORMAT "] current[%" GST_TIME_FORMAT "--%" GST_TIME_FORMAT "]", GST_TIME_ARGS (comp->priv->segment->start), GST_TIME_ARGS (comp->priv->segment->stop), GST_TIME_ARGS (comp-...
false
false
false
false
false
0
addEra(char direction, int offset, const QDate &startDate, int startYear, const QDate &endDate, const QString &name, const QString &shortName, const QString &format) { KCalendarEra newEra; newEra.m_seque...
false
false
false
false
false
0
wmserver_rtsp_set_parameter(struct stream_t *stream) { struct rtsp_ctrl_t *rtsp_ctrl = stream->stream_ctrl->rtsp_ctrl; struct rtsp_header_t *rtsp_hdr = NULL; char *buffer = xmalloc(BUFSIZE_1K); int ret = 0; rtsp_hdr = new_rtsp_header_with_standard_fields(rtsp_ctrl); rtsp_set_field(rtsp_hdr,...
false
false
false
false
false
0
gst_gdp_pay_src_event (GstPad * pad, GstEvent * event) { GstGDPPay *this; gboolean res = TRUE; this = GST_GDP_PAY (gst_pad_get_parent (pad)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK: /* we refuse seek for now. */ gst_event_unref (event); res = FALSE; break; case ...
false
false
false
false
false
0
e1000_init_hw_ich8lan(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; u32 ctrl_ext, txdctl, snoop; s32 ret_val; u16 i; e1000_initialize_hw_bits_ich8lan(hw); /* Initialize identification LED */ ret_val = mac->ops.id_led_init(hw); /* An error is not fatal and we should not stop init due to this */...
false
false
false
false
false
0
local_setattro(localobject *self, PyObject *name, PyObject *v) { PyObject *ldict; int r; ldict = _ldict(self); if (ldict == NULL) return -1; r = PyObject_RichCompareBool(name, str_dict, Py_EQ); if (r == 1) { PyErr_Format(PyExc_AttributeError, "'%.50s' objec...
false
false
false
false
false
0
write(std::vector<unsigned char>* buffer) const { // Write subsection size. size_t voa_size = this->size(); uint32_t voa_size_as_u32 = convert_types<uint32_t, size_t>(voa_size); insert_into_vector<32>(buffer, voa_size_as_u32); // Write vendor name. const unsigned char* vendor_start = reinterpret_cast<c...
false
false
false
false
false
0
FlushAlphaBetaMemory( void *theEnv, struct partialMatch *pfl) { struct partialMatch *pfltemp; while (pfl != NULL) { pfltemp = pfl->next; if (((pfl->notOriginf) && (pfl->counterf == FALSE)) || (pfl->betaMemory == FALSE)) { pfl->next = EngineData(theEnv)->GarbageP...
false
false
false
false
false
0
debugger_log_output (Debugger *debugger, const gchar *line) { gchar* str; const gchar* start; IAnjutaMessageViewType type; gsize len; if (debugger->priv->log == NULL) return; type = IANJUTA_MESSAGE_VIEW_TYPE_NORMAL; switch (*line) { case '~': type = IANJUTA_MESSAGE_VIEW_TYPE_INFO; /* Go through */ case...
false
false
false
false
false
0
CacheInputReleaseDataFlags() { m_CachedInputReleaseDataFlags.clear(); for ( DataObjectPointerMap::iterator it = m_Inputs.begin(); it != m_Inputs.end(); ++it ) { if ( it->second ) { m_CachedInputReleaseDataFlags[it->first] = it->second->GetReleaseDataFlag(); it->second->ReleaseDataFlagOff()...
false
false
false
false
false
0
bitstring_validate( struct berval *val ) { int rc = 0; /* assume the value is valid */ /* Don't allow a 0 length string */ if ((val == NULL) || (val->bv_len == 0)) { rc = 1; goto exit; } rc = bitstring_validate_internal(val->bv_val, &(val->bv_val[val->bv_len - 1])); exit: return rc; }
false
false
false
false
false
0
iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, u32 bits, u32 mask) { unsigned long flags; if (iwl_trans_grab_nic_access(trans, false, &flags)) { __iwl_write_prph(trans, ofs, (__iwl_read_prph(trans, ofs) & mask) | bits); iwl_trans_release_nic_access(trans, &flags); } }
false
false
false
false
false
0
voc_count_diff(voccxdef *ctx, objnum *list, uint *flags, int *cnt, int keep_all) { int i; int diff_cnt; /* * Presume all items will be distinguishable from one another. As * we scan the list for indistinguishable items, we'll decrement * this co...
false
false
false
false
false
0
OPL_KEYOFF (OPL_SLOT * SLOT) { if (SLOT->evm > ENV_MOD_RR) { /* set envelope counter from envleope output */ SLOT->evm = ENV_MOD_RR; if (!(SLOT->evc & EG_DST)) /* SLOT->evc = (ENV_CURVE[SLOT->evc>>ENV_BITS]<<ENV_BITS) + EG_DST; */ SLOT->evc = EG_DST; SLOT->eve = EG_DED; SLOT->evs = SLO...
false
false
false
false
false
0
champlain_view_realized_cb (ChamplainView *view, G_GNUC_UNUSED GParamSpec *pspec) { DEBUG_LOG () ChamplainViewPrivate *priv = view->priv; if (!CLUTTER_ACTOR_IS_REALIZED (view)) return; clutter_actor_grab_key_focus (priv->kinetic_scroll); resize_viewport (view); champlain_view_center_on (view, ...
false
false
false
false
false
0
resolve32_mod0(const x86_insn *insn, unsigned mode) { const char *seg, *eip_regname = NULL; if (insn->is_seg_override()) seg = segment_name[insn->seg_override]; else seg = segment_name[DS_REG]; if (insn->is_64) { if (intel_mode) eip_regname = "eip"; else eip_regname = "%eip"; } if ((insn-...
false
false
false
false
false
0
get_real_indent_width (GtkSourceView *view) { return view->priv->indent_width < 0 ? view->priv->tab_width : (guint) view->priv->indent_width; }
false
false
false
false
false
0
ausearch_add_timestamp_item(auparse_state_t *au, const char *op, time_t sec, unsigned milli, ausearch_rule_t how) { static const struct { unsigned value; const char name[3]; } ts_tab[] = { {EO_VALUE_LT, "<"}, {EO_VALUE_LE, "<="}, {EO_VALUE_GE, ">="}, {EO_VALUE_GT, ">"}, {EO_VALUE_EQ, "="}, }; str...
true
true
false
false
false
1
setMainTitle() { // TRANSLATORS: "cuyo" is the program's name setWindowTitle(gDebug ? _("Cuyo - debug mode") : "Cuyo"); }
false
false
false
false
false
0
radeon_connector_update_scratch_regs(struct drm_connector *connector, enum drm_connector_status status) { struct drm_device *dev = connector->dev; struct radeon_device *rdev = dev->dev_private; struct drm_encoder *best_encoder = NULL; struct drm_encoder *encoder = NULL; const struct drm_connector_helper_funcs *con...
false
false
false
false
false
0