idx
int64
func
string
target
int64
512,917
Item *in_decimal::create_item(THD *thd) { return new (thd->mem_root) Item_decimal(thd, 0, FALSE); }
0
344,806
exited_cleanly(pid_t pid, const char *tag, const char *cmd, int quiet) { int status; while (waitpid(pid, &status, 0) == -1) { if (errno != EINTR) { error("%s waitpid: %s", tag, strerror(errno)); return -1; } } if (WIFSIGNALED(status)) { error("%s %s exited on signal %d", tag, cmd, WTERMSIG(status)); ...
0
313,732
nv_scroll(cmdarg_T *cap) { int used = 0; long n; #ifdef FEAT_FOLDING linenr_T lnum; #endif int half; cap->oap->motion_type = MLINE; setpcmark(); if (cap->cmdchar == 'L') { validate_botline(); // make sure curwin->w_botline is valid curwin->w_cursor.lnum = curwin->w_botline - 1;...
0
238,605
static int check_tp_buffer_access(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, int off, int size) { int err; err = __check_buffer_access(env, "tracepoint", reg, regno, off, size); if (err) return err; if (off + size > env->prog->aux->max_tp_access) env->prog->aux->max_...
0
312,451
wipe_qf_buffer(qf_info_T *qi) { buf_T *qfbuf; if (qi->qf_bufnr != INVALID_QFBUFNR) { qfbuf = buflist_findnr(qi->qf_bufnr); if (qfbuf != NULL && qfbuf->b_nwindows == 0) { // If the quickfix buffer is not loaded in any window, then // wipe the buffer. close_buffer(NULL, qfbuf, DOBUF_WIPE, F...
0
455,179
MOBI_RET mobi_load_rec(MOBIData *m, FILE *file) { MOBI_RET ret; if (m == NULL) { debug_print("%s", "Mobi structure not initialized\n"); return MOBI_INIT_FAILED; } MOBIPdbRecord *curr = m->rec; while (curr != NULL) { MOBIPdbRecord *next; size_t size; if (curr->...
0
508,894
init_lex_with_single_table(THD *thd, TABLE *table, LEX *lex) { TABLE_LIST *table_list; Table_ident *table_ident; SELECT_LEX *select_lex= &lex->select_lex; Name_resolution_context *context= &select_lex->context; /* We will call the parser to create a part_info struct based on the partition string store...
0
338,053
Name WasmBinaryBuilder::getInlineString() { BYN_TRACE("<==\n"); auto len = getU32LEB(); auto data = getByteView(len); std::string str(data.first, data.second); if (str.find('\0') != std::string::npos) { throwError( "inline string contains NULL (0). that is technically valid in wasm, " "but y...
0
230,146
static int validate_safetynet_ca_root(json_t * j_params, gnutls_x509_crt_t cert_leaf, json_t * j_header_x5c) { gnutls_x509_crt_t cert_x509[(json_array_size(j_header_x5c)+1)], root_x509 = NULL; gnutls_x509_trust_list_t tlist = NULL; int ret = G_OK; unsigned int result, i; json_t * j_cert; unsigned char * hea...
0
432,234
static MemTxResult flatview_write(struct uc_struct *uc, FlatView *fv, hwaddr addr, MemTxAttrs attrs, const void *buf, hwaddr len) { hwaddr l; hwaddr addr1; MemoryRegion *mr; MemTxResult result = MEMTX_OK; l = len; mr = flatview_translate(uc, fv, addr, &addr1, &...
0
281,169
xfrm_tmpl_resolve(struct xfrm_policy **pols, int npols, const struct flowi *fl, struct xfrm_state **xfrm, unsigned short family) { struct xfrm_state *tp[XFRM_MAX_DEPTH]; struct xfrm_state **tpp = (npols > 1) ? tp : xfrm; int cnx = 0; int error; int ret; int i; for (i = 0; i < npols; i++) { if (cnx + pols[...
0
430,448
size_t ovs_key_attr_size(void) { /* Whenever adding new OVS_KEY_ FIELDS, we should consider * updating this function. */ BUILD_BUG_ON(OVS_KEY_ATTR_MAX != 32); return nla_total_size(4) /* OVS_KEY_ATTR_PRIORITY */ + nla_total_size(0) /* OVS_KEY_ATTR_TUNNEL */ + ovs_tun_key_attr_size() + nla_total_s...
0
292,214
inbound_cap_nak (server *serv, const message_tags_data *tags_data) { serv->sent_capend = TRUE; tcp_send_len (serv, "CAP END\r\n", 9); }
0
195,234
Status BuildInputArgIndex(const OpDef::ArgDef& arg_def, AttrSlice attr_values, const FunctionDef::ArgAttrs* arg_attrs, bool ints_on_device, int64_t resource_arg_unique_id) { bool is_type_list; DataTypeVector dtypes; TF_RET...
1
313,778
nv_nop(cmdarg_T *cap UNUSED) { }
0
439,173
static MagickBooleanType WriteAAIImage(const ImageInfo *image_info,Image *image) { MagickBooleanType status; MagickOffsetType scene; register const PixelPacket *magick_restrict p; register ssize_t x; register unsigned char *magick_restrict q; size_t imageListLength; ssize_t ...
0
359,598
bgp_show_peer_afi (struct vty *vty, struct peer *p, afi_t afi, safi_t safi) { struct bgp_filter *filter; char orf_pfx_name[BUFSIZ]; int orf_pfx_count; filter = &p->filter[afi][safi]; vty_out (vty, " For address family: %s%s", afi_safi_print (afi, safi), VTY_NEWLINE); if (p->af_group[afi][safi]) v...
0
249,510
Status DecodeImageAPNG(Span<const uint8_t> bytes, ThreadPool* pool, CodecInOut* io) { Reader r; unsigned int id, i, j, w, h, w0, h0, x0, y0; unsigned int delay_num, delay_den, dop, bop, rowbytes, imagesize; unsigned char sig[8]; png_structp png_ptr; png_infop info_ptr; CHUNK chunk; ...
0
314,478
static gfn_t gpte_to_gfn_lvl(pt_element_t gpte, int lvl) { return (gpte & PT_LVL_ADDR_MASK(lvl)) >> PAGE_SHIFT; }
0
226,321
GF_Err prhd_box_size(GF_Box *s) { s->size += 12; return GF_OK;
0
244,109
void saiz_box_del(GF_Box *s) { GF_SampleAuxiliaryInfoSizeBox*ptr = (GF_SampleAuxiliaryInfoSizeBox*)s; if (ptr == NULL) return; if (ptr->sample_info_size) gf_free(ptr->sample_info_size); gf_free(ptr); }
0
244,164
void bloc_box_del(GF_Box *s) { gf_free(s); }
0
310,074
check_cursor(TERMTYPE2 *tp) { int count; char *list[4]; if (hard_copy) { check_noaddress(tp, "hard_copy"); } else if (generic_type) { check_noaddress(tp, "generic_type"); } else if (strchr(tp->term_names, '+') == 0) { int y = 0; int x = 0; if (PRESENT(column_address)) ++y; if (PRESENT(cu...
0
258,080
explicit ReverseOp(OpKernelConstruction* context) : OpKernel(context) {}
0
333,073
nfa_regcomp_start( char_u *expr, int re_flags) // see vim_regcomp() { size_t postfix_size; int nstate_max; nstate = 0; istate = 0; // A reasonable estimation for maximum size nstate_max = (int)(STRLEN(expr) + 1) * 25; // Some items blow up in size, such as [A-z]. Add more sp...
0
446,407
RZ_API ut64 rz_dyldcache_get_slide(RzDyldCache *cache) { rz_return_val_if_fail(cache, 0); if (!cache->rebase_infos || !cache->rebase_infos->length) { return 0; } size_t i; for (i = 0; i < cache->rebase_infos->length; i++) { if (cache->rebase_infos->entries[i].info) { return cache->rebase_infos->entries[i]....
0
231,754
void initializeServerHandshake() override { fakeHandshake = new FakeServerHandshake( server->getNonConstConn(), FizzServerQuicHandshakeContext::Builder().build(), GetParam().chloSync, GetParam().cfinSync); if (GetParam().acceptZeroRtt) { fakeHandshake->allowZeroRttKeys();...
0
443,149
static int jfs_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) { int ret; ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, jfs_get_block); if (unlikely(ret)) jfs_write_failed(mapping, pos + len);...
0
301,400
static int vfswrap_chmod_acl(vfs_handle_struct *handle, const char *name, mode_t mode) { #ifdef HAVE_NO_ACL errno = ENOSYS; return -1; #else int result; START_PROFILE(chmod_acl); result = chmod_acl(handle->conn, name, mode); END_PROFILE(chmod_acl); return result; #endif }
0
366,338
static inline void mnt_unhold_writers(struct mount *mnt) { /* * MNT_READONLY must become visible before ~MNT_WRITE_HOLD, so writers * that become unheld will see MNT_READONLY. */ smp_wmb(); mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; }
0
263,490
static void sco_connect_cfm(struct hci_conn *hcon, __u8 status) { if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK) return; BT_DBG("hcon %p bdaddr %pMR status %u", hcon, &hcon->dst, status); if (!status) { struct sco_conn *conn; conn = sco_conn_add(hcon); if (conn) sco_conn_ready(conn); } else ...
0
247,736
TEST_P(SslSocketTest, FailedClientCertAllowExpiredBadHashVerification) { envoy::config::listener::v3::Listener listener; envoy::extensions::transport_sockets::tls::v3::UpstreamTlsContext client; OptionalServerConfig server_config; server_config.allow_expired_cert = true; server_config.cert_hash = "0000000000...
0
512,592
int Arg_comparator::compare_e_row() { (*a)->bring_value(); (*b)->bring_value(); uint n= (*a)->cols(); for (uint i= 0; i<n; i++) { if (!comparators[i].compare()) return 0; } return 1; }
0
317,268
static void selinux_inode_getsecid(struct inode *inode, u32 *secid) { struct inode_security_struct *isec = inode_security_novalidate(inode); *secid = isec->sid; }
0
279,910
make_filter_cmd( char_u *cmd, // command char_u *itmp, // NULL or name of input file char_u *otmp) // NULL or name of output file { char_u *buf; long_u len; #if defined(UNIX) int is_fish_shell; char_u *shell_name = get_isolated_shell_name(); if (shell_name == NULL) return NULL; ...
0
359,411
DEFUN (neighbor_attr_unchanged4, neighbor_attr_unchanged4_cmd, NEIGHBOR_CMD2 "attribute-unchanged med (as-path|next-hop)", NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "BGP attribute is propagated unchanged to this neighbor\n" "Med attribute\n" "As-path attribute\n" "Nexthop a...
0
428,227
static CURLcode create_conn(struct SessionHandle *data, struct connectdata **in_connect, bool *async) { CURLcode result = CURLE_OK; struct connectdata *conn; struct connectdata *conn_temp = NULL; size_t urllen; char *user = NULL; char *passwd = NULL; ...
0
424,948
static int iwl_trans_pcie_start_fw(struct iwl_trans *trans, const struct fw_img *fw, bool run_in_rfkill) { struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); bool hw_rfkill; int ret; /* This may fail if AMT took ownership of the device */ if (iwl_pcie_prepare_card_hw(trans)) { IWL_WARN(...
0
230,138
static json_t * register_new_attestation(struct config_module * config, json_t * j_params, json_t * j_scheme_data, json_t * j_credential) { json_t * j_return, * j_client_data = NULL, * j_error, * j_result, * j_pubkey = NULL, * j_cert = NULL, * j_query, * j_element = NULL; unsigned char * client_data = NULL, * chall...
0
512,739
in_double::in_double(THD *thd, uint elements) :in_vector(thd, elements, sizeof(double), (qsort2_cmp) cmp_double, 0) {}
0
264,411
Curl_cookie_add(struct Curl_easy *data, /* * The 'data' pointer here may be NULL at times, and thus * must only be used very carefully for things that can deal * with data being NULL. Such as infof() and similar */ struc...
0
464,941
static inline int is_in_cp950_pua(int c1, int c) { if ((c1 >= 0xfa && c1 <= 0xfe) || (c1 >= 0x8e && c1 <= 0xa0) || (c1 >= 0x81 && c1 <= 0x8d) || (c1 >= 0xc7 && c1 <= 0xc8)) { return (c >=0x40 && c <= 0x7e) || (c >= 0xa1 && c <= 0xfe); } if (c1 == 0xc6) { return c >= 0xa1 && c <= 0xfe; } return 0; }
0
195,294
void Compute(OpKernelContext* ctx) override { StagingMap<Ordered>* map = nullptr; OP_REQUIRES_OK(ctx, GetStagingMap(ctx, def(), &map)); core::ScopedUnref scope(map); typename StagingMap<Ordered>::OptionalTuple tuple; const Tensor* key_tensor; const Tensor* indices_tensor; OpInputList valu...
1
492,687
vte_sequence_handler_insert_lines (VteTerminal *terminal, GValueArray *params) { GValue *value; VteScreen *screen; long param, end, row; int i; screen = terminal->pvt->screen; /* The default is one. */ param = 1; /* Extract any parameters. */ if ((params != NULL) && (params->n_values > 0)) { value = g_value_...
0
289,277
static long snd_pcm_oss_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg) { /* * Everything is compatbile except SNDCTL_DSP_MAPINBUF/SNDCTL_DSP_MAPOUTBUF, * which are not implemented for the native case either */ return snd_pcm_oss_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); }
0
222,575
std::map<string, AttrValue> GetSetAttrs(const FunctionDef& fdef) { std::map<string, AttrValue> set_attrs; for (const auto& pair : fdef.attr()) { if (pair.second.value_case() != AttrValue::VALUE_NOT_SET) { set_attrs[pair.first] = pair.second; } } return set_attrs; }
0
381,879
udf_pblk_t udf_block_map(struct inode *inode, sector_t block) { struct kernel_lb_addr eloc; uint32_t elen; sector_t offset; struct extent_position epos = {}; udf_pblk_t ret; down_read(&UDF_I(inode)->i_data_sem); if (inode_bmap(inode, block, &epos, &eloc, &elen, &offset) == (EXT_RECORDED_ALLOCATED >> 30))...
0
328,866
R_API RList *retrieve_all_field_access_string_and_value(void) { return retrieve_all_access_string_and_value (FIELD_ACCESS_FLAGS); }
0
476,127
static u8 encode_bMaxPower(enum usb_device_speed speed, struct usb_configuration *c) { unsigned val; if (c->MaxPower || (c->bmAttributes & USB_CONFIG_ATT_SELFPOWER)) val = c->MaxPower; else val = CONFIG_USB_GADGET_VBUS_DRAW; if (!val) return 0; if (speed < USB_SPEED_SUPER) return min(val, 500U) / 2; el...
0
314,757
cdf_tole4(uint32_t sv) { return CDF_TOLE4(sv); }
0
502,706
X509 *SSL_SESSION_get0_peer(SSL_SESSION *s) { return s->peer; }
0
508,831
void LEX::link_first_table_back(TABLE_LIST *first, bool link_to_local) { if (first) { if ((first->next_global= query_tables)) query_tables->prev_global= &first->next_global; else query_tables_last= &first->next_global; query_tables= first; if (link_to_local) { first->ne...
0
462,309
stprintf(stream * s, const char *fmt, ...) { int count; va_list args; char buf[1024]; va_start(args, fmt); count = gs_vsprintf(buf, fmt, args); if (count >= 0) { unsigned count_u = count; sputs(s, (const byte *)buf, count_u, &count_u); } va_end(args); }
0
338,157
static int decodeHexNibble(char ch) { return ch <= '9' ? ch & 15 : (ch & 15) + 9; }
0
242,586
EFI_STATUS verify_image(void *data, unsigned int datasize, EFI_LOADED_IMAGE *li, PE_COFF_LOADER_IMAGE_CONTEXT *context) { EFI_STATUS efi_status; UINT8 sha1hash[SHA1_DIGEST_SIZE]; UINT8 sha256hash[SHA256_DIGEST_SIZE]; /* * The binary header contains relevant context and section pointers */ efi_status = r...
0
247,647
TEST_P(SslSocketTest, FailedClientCertificateHashVerificationWrongClientCertificate) { const std::string client_ctx_yaml = R"EOF( common_tls_context: tls_certificates: certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/test_data/no_san_cert.pem" private_key...
0
229,299
cql_server::connection::init_cql_serialization_format() { _cql_serialization_format = cql_serialization_format(_version); }
0
248,318
DLLIMPORT cfg_t *cfg_getsec(cfg_t *cfg, const char *name) { cfg_opt_t *opt; long int index; opt = cfg_getopt_secidx(cfg, name, &index); return cfg_opt_getnsec(opt, index); }
0
437,715
static u64 pulse_width_count_to_ns(u16 count, u16 divider) { u64 n; u32 rem; /* * The 2 lsb's of the pulse width timer count are not readable, hence * the (count << 2) | 0x3 */ n = (((u64) count << 2) | 0x3) * (divider + 1) * 1000; /* millicycles */ rem = do_div(n, CX23888_IR_REFCLK_FREQ / 1000000); /* ...
0
369,184
static int io_statx(struct io_kiocb *req, unsigned int issue_flags) { struct io_statx *ctx = &req->statx; int ret; if (issue_flags & IO_URING_F_NONBLOCK) return -EAGAIN; ret = do_statx(ctx->dfd, ctx->filename, ctx->flags, ctx->mask, ctx->buffer); if (ret < 0) req_set_fail(req); io_req_complete(req...
0
506,432
rpa_add_realm(string_t *realms, const char *realm, const char *service) { str_append(realms, service); str_append_c(realms, '@'); str_append(realms, realm); str_append_c(realms, ' '); }
0
256,434
static pj_status_t add_sdp_attr_rtcp_fb( pj_pool_t *pool, const char *pt, const pjmedia_rtcp_fb_cap *cap, pjmedia_sdp_media *m) { pjmedia_sdp_attr *a; char tmp[128]; pj_str_t val; pj_str_t type_name = {0}; if (cap->type < PJMEDIA_RTCP_FB_OTHER) pj_cstr(&type_name, rtcp_fb_type_na...
0
300,750
static int tipc_send_group_msg(struct net *net, struct tipc_sock *tsk, struct msghdr *m, struct tipc_member *mb, u32 dnode, u32 dport, int dlen) { u16 bc_snd_nxt = tipc_group_bc_snd_nxt(tsk->group); struct tipc_mc_method *method = &tsk->mc_method; int blks = tsk_blocks(GROUP_H_SIZE + dlen); stru...
0
410,714
static int packet_do_bind(struct sock *sk, const char *name, int ifindex, __be16 proto) { struct packet_sock *po = pkt_sk(sk); struct net_device *dev_curr; __be16 proto_curr; bool need_rehook; struct net_device *dev = NULL; int ret = 0; bool unlisted = false; lock_sock(sk); spin_lock(&po->bind_lock); rc...
0
513,237
static bool change_group_ref(THD *thd, Item_func *expr, ORDER *group_list, bool *changed) { if (expr->argument_count()) { Name_resolution_context *context= &thd->lex->current_select->context; Item **arg,**arg_end; bool arg_changed= FALSE; for (arg= expr->arguments(), ...
0
233,872
*/ static void php_wddx_add_var(wddx_packet *packet, zval *name_var) { zval *val; HashTable *target_hash; if (Z_TYPE_P(name_var) == IS_STRING) { zend_array *symbol_table = zend_rebuild_symbol_table(); if ((val = zend_hash_find(symbol_table, Z_STR_P(name_var))) != NULL) { if (Z_TYPE_P(val) == IS_INDIRECT) { ...
0
248,291
DLLIMPORT cfg_value_t *cfg_setopt(cfg_t *cfg, cfg_opt_t *opt, const char *value) { cfg_value_t *val = NULL; const char *s; char *endptr; long int i; double f; void *p; int b; if (!cfg || !opt) { errno = EINVAL; return NULL; } if (opt->simple_value.ptr) { if (opt->type == CFGT_SEC) { errno = EINVAL;...
0
338,233
static char formatNibble(int nibble) { return nibble < 10 ? '0' + nibble : 'a' - 10 + nibble; }
0
231,035
BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) { BaseType_t xReturn; Queue_t * const pxMutex = ( Queue_t * ) xMutex; configASSERT( pxMutex ); /* If this is the task that holds the mutex then xMutexHolder will not * change outside of this task. If ...
0
225,472
void MutableGraphView::UpdateMaxRegularOutputPortForAddedFanin( const OutputPort& fanin) { if (max_regular_output_port()[fanin.node] < fanin.port_id) { max_regular_output_port()[fanin.node] = fanin.port_id; } }
0
393,509
static SQInteger closure_getroot(HSQUIRRELVM v) { if(SQ_FAILED(sq_getclosureroot(v,-1))) return SQ_ERROR; return 1; }
0
424,931
int iwl_pcie_prepare_card_hw(struct iwl_trans *trans) { int ret; int t = 0; int iter; IWL_DEBUG_INFO(trans, "iwl_trans_prepare_card_hw enter\n"); ret = iwl_pcie_set_hw_ready(trans); /* If the card is ready, exit 0 */ if (ret >= 0) return 0; iwl_set_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, CSR_RESET_LINK...
0
279,914
ex_append(exarg_T *eap) { char_u *theline; int did_undo = FALSE; linenr_T lnum = eap->line2; int indent = 0; char_u *p; int vcol; int empty = (curbuf->b_ml.ml_flags & ML_EMPTY); #ifdef FEAT_EVAL if (not_in_vim9(eap) == FAIL) return; #endif // the ! flag toggles autoindent i...
0
314,477
static int FNAME(fetch)(struct kvm_vcpu *vcpu, struct kvm_page_fault *fault, struct guest_walker *gw) { struct kvm_mmu_page *sp = NULL; struct kvm_shadow_walk_iterator it; unsigned int direct_access, access; int top_level, ret; gfn_t base_gfn = fault->gfn; WARN_ON_ONCE(gw->gfn != base_gfn); direct_access = ...
0
316,990
static int selinux_dentry_init_security(struct dentry *dentry, int mode, const struct qstr *name, void **ctx, u32 *ctxlen) { u32 newsid; int rc; rc = selinux_determine_inode_label(selinux_cred(current_cred()), d_inode(dentry->d_parent), name, inode_mode_to_security_class(mode), &ne...
0
219,950
int callback_glewlwyd_check_admin_session_or_api_key (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; char * session_uid = NULL; json_t * j_user; int ret, res; const char * api_key = u_map_get_case(req...
0
513,199
static bool finalize_install(THD *thd, TABLE *table, const LEX_STRING *name, int *argc, char **argv) { struct st_plugin_int *tmp= plugin_find_internal(name, MYSQL_ANY_PLUGIN); int error; DBUG_ASSERT(tmp); mysql_mutex_assert_owner(&LOCK_plugin); // because of tmp->state if (tmp->s...
0
292,157
void CallInfo::set_common(Klass* resolved_klass, Klass* selected_klass, const methodHandle& resolved_method, const methodHandle& selected_method, CallKind kind, int index, ...
0
281,638
void CLASS foveon_load_camf() { unsigned type, wide, high, i, j, row, col, diff; ushort huff[258], vpred[2][2] = {{512,512},{512,512}}, hpred[2]; fseek (ifp, meta_offset, SEEK_SET); type = get4(); get4(); get4(); wide = get4(); high = get4(); if (type == 2) { fread (meta_data, 1, meta_length, ifp);...
0
244,042
GF_Box *dOps_box_new() { ISOM_DECL_BOX_ALLOC(GF_OpusSpecificBox, GF_ISOM_BOX_TYPE_DOPS); return (GF_Box *)tmp; }
0
232,333
void gf_isom_box_array_reset_parent(GF_List **child_boxes, GF_List *boxlist) { u32 count, i; if (!boxlist) return; count = gf_list_count(boxlist); for (i = 0; i < count; i++) { GF_Box *a = (GF_Box *)gf_list_get(boxlist, i); if (a) gf_isom_box_del_parent(child_boxes, a); } gf_list_reset(boxlist); }
0
387,856
void InstanceKlass::set_source_debug_extension(const char* array, int length) { if (array == NULL) { _source_debug_extension = NULL; } else { // Adding one to the attribute length in order to store a null terminator // character could cause an overflow because the attribute length is // already code...
0
349,525
static int virtbt_probe(struct virtio_device *vdev) { vq_callback_t *callbacks[VIRTBT_NUM_VQS] = { [VIRTBT_VQ_TX] = virtbt_tx_done, [VIRTBT_VQ_RX] = virtbt_rx_done, }; const char *names[VIRTBT_NUM_VQS] = { [VIRTBT_VQ_TX] = "tx", [VIRTBT_VQ_RX] = "rx", }; struct virtio_bluetooth *vbt; struct hci_dev *hdev;...
0
508,859
Lex_input_stream::reset(char *buffer, unsigned int length) { yylineno= 1; yylval= NULL; lookahead_token= -1; lookahead_yylval= NULL; m_ptr= buffer; m_tok_start= NULL; m_tok_end= NULL; m_end_of_query= buffer + length; m_tok_start_prev= NULL; m_buf= buffer; m_buf_length= length; m_echo= TRUE; m_...
0
246,466
static void wasm_sec_free(RBinWasmSection *sec) { if (sec) { free (sec->name); free (sec); } }
0
90,788
QuotaCallback* NewWaitableGlobalQuotaCallback() { ++waiting_callbacks_; return callback_factory_.NewCallback( &UsageAndQuotaDispatcherTask::DidGetGlobalQuota); }
0
430,458
size_t ovs_tun_key_attr_size(void) { /* Whenever adding new OVS_TUNNEL_KEY_ FIELDS, we should consider * updating this function. */ return nla_total_size_64bit(8) /* OVS_TUNNEL_KEY_ATTR_ID */ + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_SRC */ + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_...
0
220,230
const NodeDef& Node::def() const { return props_->node_def; }
0
231,703
TEST_F(QuicServerTransportTest, TimeoutsNotSetAfterClose) { StreamId streamId = server->createBidirectionalStream().value(); auto expected = IOBuf::copyBuffer("hello"); auto packet = packetToBuf(createStreamPacket( *clientConnectionId, *server->getConn().serverConnectionId, clientNextAppDataPac...
0
313,544
__acquires(rose_neigh_list_lock) { struct rose_neigh *rose_neigh; int i = 1; spin_lock_bh(&rose_neigh_list_lock); if (*pos == 0) return SEQ_START_TOKEN; for (rose_neigh = rose_neigh_list; rose_neigh && i < *pos; rose_neigh = rose_neigh->next, ++i); return (i == *pos) ? rose_neigh : NULL; }
0
218,764
static void XHighlightWidget(Display *display,const XWindowInfo *window_info, const int x,const int y) { /* Draw the widget highlighting rectangle. */ XSetBevelColor(display,window_info,MagickTrue); (void) XDrawRectangle(display,window_info->id,window_info->widget_context,x,y, window_info->width-(x <<...
0
274,714
callbacks_save_project_activate (GtkMenuItem *menuitem, gpointer user_data) { if (mainProject->project) main_save_project_from_filename (mainProject, mainProject->project); else callbacks_generic_save_activate (menuitem, (gpointer) CA...
0
226,010
GF_Err hinf_box_read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
343,159
static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) { int alen; int blksize; struct ip_esp_hdr *esph; struct crypto_aead *aead; struct esp_info esp; esp.inplace = true; esp.proto = *skb_mac_header(skb); *skb_mac_header(skb) = IPPROTO_ESP; /* skb is pure payload to encrypt */ aead = x->data; ...
0
455,351
bash_forward_shellword (count, key) int count, key; { size_t slen; int c, p; DECLARE_MBSTATE; if (count < 0) return (bash_backward_shellword (-count, key)); /* The tricky part of this is deciding whether or not the first character we're on is an unquoted metacharacter. Not completely handled ...
0
438,654
u_undofile_reset_and_delete(buf_T *buf) { char_u *file_name; if (!buf->b_p_udf) return; file_name = u_get_undo_file_name(buf->b_ffname, TRUE); if (file_name != NULL) { mch_remove(file_name); vim_free(file_name); } set_option_value((char_u *)"undofile", 0L, NULL, OPT_LOCAL); }
0
225,782
GF_Err def_parent_full_box_read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
312,468
qf_find_help_win(void) { win_T *wp; FOR_ALL_WINDOWS(wp) if (bt_help(wp->w_buffer)) return wp; return NULL; }
0
243,008
static int mbedtls_ssl_dtls_record_replay_check( mbedtls_ssl_context *ssl, uint8_t *record_in_ctr ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; unsigned char *original_in_ctr; // save original in_ctr original_in_ctr = ssl->in_ctr; // use counter from record ssl->in_ctr = record_in_ctr; ...
0
207,700
TerminalUserInfo UserTerminalRouter::getInfoForId(const string &id) { auto it = idInfoMap.find(id); if (it == idInfoMap.end()) { STFATAL << " Tried to read from an id that no longer exists"; } return it->second; }
1