idx
int64
func
string
target
int64
16,289
static int SpoolssEnumPrinters_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) { guint32 level , flags ; dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ; static const int * hf_flags [ ] = { & hf_enumprinters_flags_network , & hf_e...
0
46,680
int mbedtls_x509_crt_parse( mbedtls_x509_crt *chain, const unsigned char *buf, size_t buflen ) { #if defined(MBEDTLS_PEM_PARSE_C) int success = 0, first_error = 0, total_failed = 0; int buf_format = MBEDTLS_X509_FORMAT_DER; #endif /* * Check for valid input */ if( chain == NULL || buf == NULL...
0
116,454
static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q, struct hrtimer_sleeper *timeout) { /* * The task state is guaranteed to be set before another task can * wake it. set_current_state() is implemented using smp_store_mb() and * queue_me() calls spin_unlock() upon completion, both...
0
279,777
LayerTreeHostTestReadyToDrawEmpty() : did_notify_ready_to_draw_(false), all_tiles_required_for_draw_are_ready_to_draw_(false), required_for_draw_count_(0) {}
0
202,435
GooString *ASCII85Stream::getPSFilter(int psLevel, const char *indent) { GooString *s; if (psLevel < 2) { return NULL; } if (!(s = str->getPSFilter(psLevel, indent))) { return NULL; } s->append(indent)->append("/ASCII85Decode filter\n"); return s; }
0
64,430
void SetAttrValue(StringPiece value, AttrValue* out) { out->set_s(value.data(), value.size()); }
0
277,899
static void png_flush_data(png_structp png_ptr) { (void) png_ptr; }
0
368,852
static void construct_client(void *obj) { PgSocket *client = obj; memset(client, 0, sizeof(PgSocket)); list_init(&client->head); sbuf_init(&client->sbuf, client_proto); client->state = CL_FREE; }
0
179,815
static rsRetVal createSocket(instanceConf_t* info, void** sock) { int rv; sublist* sub; *sock = zsocket_new(s_context, info->type); if (!sock) { errmsg.LogError(0, RS_RET_INVALID_PARAMS, "zsocket_new failed: %s, for type %d", ...
0
134,253
TEST_F(SslContextImplTest, MustHaveSubjectOrSAN) { envoy::extensions::transport_sockets::tls::v3::DownstreamTlsContext tls_context; const std::string tls_context_yaml = R"EOF( common_tls_context: tls_certificates: - certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/...
0
435,741
const struct submodule *submodule_from_ce(const struct cache_entry *ce) { if (!S_ISGITLINK(ce->ce_mode)) return NULL; if (!should_update_submodules()) return NULL; return submodule_from_path(null_sha1, ce->name); }
0
62,893
xfs_vm_releasepage( struct page *page, gfp_t gfp_mask) { int delalloc, unwritten; trace_xfs_releasepage(page->mapping->host, page, 0, 0); /* * mm accommodates an old ext3 case where clean pages might not have had * the dirty bit cleared. Thus, it can send actual dirty pages to * ->releasepage() via sh...
0
225,186
bool SessionModelAssociator::SessionWindowHasNoTabsToSync( const SessionWindow& window) { int num_populated = 0; for (std::vector<SessionTab*>::const_iterator i = window.tabs.begin(); i != window.tabs.end(); ++i) { const SessionTab* tab = *i; if (IsValidSessionTab(*tab)) num_populated++; }...
0
225,034
static int phar_file_action(phar_archive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, int entry_len, char *arch, char *basename, char *ru, int ru_len TSRMLS_DC) /* {{{ */ { char *name = NULL, buf[8192]; const char *cwd; zend_syntax_highlighter_ini syntax_highlighter_ini; sapi_header_li...
0
214,680
void NPN_ForceRedraw(NPP id) { NOTIMPLEMENTED(); }
0
111,176
ex_tabnext(exarg_T *eap) { int tab_number; if (ERROR_IF_POPUP_WINDOW) return; switch (eap->cmdidx) { case CMD_tabfirst: case CMD_tabrewind: goto_tabpage(1); break; case CMD_tablast: goto_tabpage(9999); break; case CMD_tabprevious: case CMD_tabNext: if (eap->arg && *eap->a...
0
292,748
static inline void skb_orphan_try(struct sk_buff *skb) { struct sock *sk = skb->sk; if (sk && !skb_shinfo(skb)->tx_flags) { /* skb_tx_hash() wont be able to get sk. * We copy sk_hash into skb->rxhash */ if (!skb->rxhash) skb->rxhash = sk->sk_hash; skb_orphan(skb); } }
0
24,935
bool one_thread_per_connection_end ( THD * thd , bool put_in_cache ) { DBUG_ENTER ( "one_thread_per_connection_end" ) ; unlink_thd ( thd ) ; my_pthread_setspecific_ptr ( THR_THD , 0 ) ; if ( put_in_cache ) { mysql_mutex_lock ( & LOCK_thread_count ) ; put_in_cache = cache_thread ( ) ; mysql_mutex_unlock ( & LOCK_...
0
255,952
MagickExport void *AcquireQuantumMemory(const size_t count,const size_t quantum) { size_t extent; if (CheckMemoryOverflow(count,quantum) != MagickFalse) return((void *) NULL); extent=count*quantum; return(AcquireMagickMemory(extent)); }
1
81,097
static int madvise_need_mmap_write(int behavior) { switch (behavior) { case MADV_REMOVE: case MADV_WILLNEED: case MADV_DONTNEED: case MADV_FREE: return 0; default: /* be safe, default to 1. list exceptions explicitly */ return 1; } }
0
332,251
bool memory_region_is_unassigned(MemoryRegion *mr) { return mr != &io_mem_ram && mr != &io_mem_rom && mr != &io_mem_notdirty && !mr->rom_device && mr != &io_mem_watch; }
1
465,953
static inline int __hv_remote_flush_tlb_with_range(struct kvm *kvm, struct kvm_vcpu *vcpu, struct kvm_tlb_range *range) { u64 ept_pointer = to_vmx(vcpu)->ept_pointer; /* * FLUSH_GUEST_PHYSICAL_ADDRESS_SPACE hypercall needs address * of the base of EPT PML4 table, strip off EPT configuration * information. ...
0
521,392
static int check_func_double(THD *thd, struct st_mysql_sys_var *var, void *save, st_mysql_value *value) { double v; my_bool fixed; struct my_option option; value->val_real(value, &v); plugin_opt_set_limits(&option, var); *(double *) save= getopt_double_limit_value(v, &option, &...
0
332,189
static void v4l2_free_buffer(void *opaque, uint8_t *unused) { V4L2Buffer* avbuf = opaque; V4L2m2mContext *s = buf_to_m2mctx(avbuf); atomic_fetch_sub_explicit(&s->refcount, 1, memory_order_acq_rel); if (s->reinit) { if (!atomic_load(&s->refcount)) sem_post(&s->refsync); ...
1
248,643
MockTopSitesObserver() {}
0
148,655
unsigned fuse_file_poll(struct file *file, poll_table *wait) { struct fuse_file *ff = file->private_data; struct fuse_conn *fc = ff->fc; struct fuse_poll_in inarg = { .fh = ff->fh, .kh = ff->kh }; struct fuse_poll_out outarg; struct fuse_req *req; int err; if (fc->no_poll) return DEFAULT_POLLMASK; poll_wait...
0
425,818
static int nested_vmx_load_cr3(struct kvm_vcpu *vcpu, unsigned long cr3, bool nested_ept, u32 *entry_failure_code) { if (cr3 != kvm_read_cr3(vcpu) || (!nested_ept && pdptrs_changed(vcpu))) { if (!nested_cr3_valid(vcpu, cr3)) { *entry_failure_code = ENTRY_FAIL_DEFAULT; return 1; } /* * If PAE ...
0
153,787
static int nfs3svc_release_getacl(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) { fh_put(&resp->fh); posix_acl_release(resp->acl_access); posix_acl_release(resp->acl_default); return 1; }
0
335,892
static OSStatus audioDeviceIOProc( AudioDeviceID inDevice, const AudioTimeStamp* inNow, const AudioBufferList* inInputData, const AudioTimeStamp* inInputTime, AudioBufferList* outOutputData, const AudioTimeStamp* inOutputTime, void* hwptr) { UInt32 frame, frameCount; float ...
0
404,566
ecc_verify (gcry_sexp_t s_sig, gcry_sexp_t s_data, gcry_sexp_t s_keyparms) { gcry_err_code_t rc; struct pk_encoding_ctx ctx; gcry_sexp_t l1 = NULL; char *curvename = NULL; gcry_mpi_t mpi_g = NULL; gcry_mpi_t mpi_q = NULL; gcry_mpi_t sig_r = NULL; gcry_mpi_t sig_s = NULL; gcry_mpi_t data = NULL; ECC_...
0
75,029
int get_compat_itimerspec64(struct itimerspec64 *its, const struct compat_itimerspec __user *uits) { if (__compat_get_timespec64(&its->it_interval, &uits->it_interval) || __compat_get_timespec64(&its->it_value, &uits->it_value)) return -EFAULT; return 0; }
0
402,371
static void lease_match_parser_new_file( uint32_t num_files, const struct leases_db_file *files, struct lease_match_state *state) { uint32_t i; for (i = 0; i < num_files; i++) { const struct leases_db_file *f = &files[i]; if (strequal(state->servicepath, f->servicepath)) { state->match_status = NT_STATUS_I...
0
112,561
cockpit_web_response_is_header_value (const gchar *string) { string += strcspn (string, "\r\n\v"); return string[0] == '\0'; }
0
168,460
StepRange HTMLInputElement::createStepRange(AnyStepHandling anyStepHandling) const { return m_inputType->createStepRange(anyStepHandling); }
0
243,991
static void updateHashChain(Hash* hash, size_t wpos, unsigned hashval, unsigned short numzeros) { hash->val[wpos] = (int)hashval; if(hash->head[hashval] != -1) hash->chain[wpos] = hash->head[hashval]; hash->head[hashval] = wpos; hash->zeros[wpos] = numzeros; if(hash->headz[numzeros] != -1) hash->chainz[wpos]...
0
85,720
static stf_status ikev2_send_auth(struct connection *c, struct state *st, enum phase1_role role, unsigned int np, unsigned char *idhash_out, pb_stream *outpbs) { struct ikev2_a a; pb_stream a_pbs; struct state *pst = st; if (st->st_clonedfrom != 0) pst = state_with_serialno(st->st_c...
0
207,242
explicit AlwaysDrawSwapPromise(const ui::LatencyInfo& latency_info) : latency_info_(latency_info) {}
0
354,780
static unsigned int bad_file_poll(struct file *filp, poll_table *wait) { return POLLERR; }
0
421,192
static int hso_mux_serial_write_data(struct hso_serial *serial) { if (NULL == serial) return -EINVAL; return mux_device_request(serial, USB_CDC_SEND_ENCAPSULATED_COMMAND, serial->parent->port_spec & HSO_PORT_MASK, serial->tx_urb, &serial->ctrl_req_tx, serial->tx_data, serial->tx_data_...
0
434,445
errcode_t quota_compare_and_update(quota_ctx_t qctx, enum quota_type qtype, int *usage_inconsistent) { struct quota_handle qh; struct scan_dquots_data scan_data; struct dquot *dq; dnode_t *n; dict_t *dict = qctx->quota_dict[qtype]; errcode_t err = 0; if (!dict) goto out; err = quota_file_open(qctx, &...
0
43,999
MagickExport MagickBooleanType GetImageEntropy(const Image *image, double *entropy,ExceptionInfo *exception) { ChannelStatistics *channel_statistics; assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,Get...
0
216,246
AppListSyncableService::GetSyncItem(const std::string& id) const { SyncItemMap::const_iterator iter = sync_items_.find(id); if (iter != sync_items_.end()) return iter->second; return NULL; }
0
518,295
void TABLE::use_index(int key_to_save) { uint i= 1; DBUG_ASSERT(!created && key_to_save < (int)s->keys); if (key_to_save >= 0) /* Save the given key. */ memmove(key_info, key_info + key_to_save, sizeof(KEY)); else /* Drop all keys; */ i= 0; s->keys= i; }
0
512,685
int ssh_scp_init(ssh_scp scp) { int rc; char execbuffer[1024] = {0}; char *quoted_location = NULL; size_t quoted_location_len = 0; size_t scp_location_len; if (scp == NULL) { return SSH_ERROR; } if (scp->state != SSH_SCP_NEW) { ssh_set_error(scp->session, SSH_FATAL, ...
0
299,037
AP4_MetaData::AddDcfStringEntry(AP4_DcfStringAtom* atom, const char* namespc) { AP4_String key_name; ResolveKeyName(atom->GetType(), key_name); AP4_MetaData::Value* value = new AP4_StringMetaDataValue(atom->GetValue().GetChars()); m_Entries.Add(new Entry(key_name.GetChars(), namespc, value)); ...
0
448,287
static u32 nfsd_eof_on_read(struct file *file, loff_t offset, ssize_t len, size_t expected) { if (expected != 0 && len == 0) return 1; if (offset+len >= i_size_read(file_inode(file))) return 1; return 0; }
0
468,043
int blk_register_queue(struct gendisk *disk) { int ret; struct device *dev = disk_to_dev(disk); struct request_queue *q = disk->queue; if (WARN_ON(!q)) return -ENXIO; WARN_ONCE(test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags), "%s is registering an already registered queue\n", kobject_name(&dev->kobj))...
0
200,777
void FileAPIMessageFilter::OnCloneBlob( const GURL& url, const GURL& src_url) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); blob_storage_context_->controller()->CloneBlob(url, src_url); blob_urls_.insert(url.spec()); }
0
86,529
static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr) { u8 rc = LLC_PDU_LEN_U; if (addr->sllc_test || addr->sllc_xid) rc = LLC_PDU_LEN_U; else if (sk->sk_type == SOCK_STREAM) rc = LLC_PDU_LEN_I; return rc; }
0
117,559
TEST_F(QuicServerTransportTest, DestroyWithoutClosing) { StreamId streamId = server->createBidirectionalStream().value(); MockReadCallback readCb; server->setReadCallback(streamId, &readCb); EXPECT_CALL(connCallback, onConnectionError(_)).Times(0); EXPECT_CALL(connCallback, onConnectionEnd()).Times(0); Mo...
0
302,550
sctp_disposition_t sctp_sf_do_ecne(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { sctp_ecnehdr_t *ecne; struct sctp_chunk *chunk = arg; if (!sctp_vtag_verify(chunk, asoc)) re...
0
249,583
scoped_refptr<const PermissionSet> PermissionsData::GetTabSpecificPermissions( int tab_id) const { base::AutoLock auto_lock(runtime_lock_); CHECK_GE(tab_id, 0); TabPermissionsMap::const_iterator iter = tab_specific_permissions_.find(tab_id); return (iter != tab_specific_permissions_.end()) ? iter->sec...
0
250,075
void TabsUpdateFunction::OnExecuteCodeFinished( const std::string& error, const GURL& url, const base::ListValue& script_result) { if (error.empty()) PopulateResult(); else error_ = error; SendResponse(error.empty()); }
0
249,577
void HTMLFormControlElement::didMoveToNewDocument(Document& oldDocument) { ListedElement::didMoveToNewDocument(oldDocument); HTMLElement::didMoveToNewDocument(oldDocument); }
0
219,869
cc::SnapFlingController::GestureScrollUpdateInfo GetGestureScrollUpdateInfo( const WebGestureEvent& event) { cc::SnapFlingController::GestureScrollUpdateInfo info; info.delta = gfx::Vector2dF(-event.data.scroll_update.delta_x, -event.data.scroll_update.delta_y); info.is_in_inerti...
0
415,262
pipe_echo_finish (Pipe *pipe) { GIOStatus status; gsize bytes_read; char buf[512]; do { bytes_read = 0; status = g_io_channel_read_chars (pipe->channel, buf, sizeof (buf), &bytes_read, ...
0
345,771
static HashTable* soap_create_typemap(sdlPtr sdl, HashTable *ht TSRMLS_DC) { zval **tmp; HashTable *ht2; HashPosition pos1, pos2; HashTable *typemap = NULL; zend_hash_internal_pointer_reset_ex(ht, &pos1); while (zend_hash_get_current_data_ex(ht, (void**)&tmp, &pos1) == SUCCESS) { char *type_name = NULL; cha...
1
90,506
libraw_processed_image_t *LibRaw::dcraw_make_mem_image(int *errcode) { int width, height, colors, bps; get_mem_image_format(&width, &height, &colors, &bps); int stride = width * (bps/8) * colors; unsigned ds = height * stride; libraw_processed_image_t *ret = (libraw_processed_image_t*)::malloc(size...
0
439,120
static void SFDDumpLangName(FILE *sfd, struct ttflangname *ln) { int i, end; fprintf( sfd, "LangName: %d", ln->lang ); for ( end = ttf_namemax; end>0 && ln->names[end-1]==NULL; --end ); for ( i=0; i<end; ++i ) { putc(' ',sfd); SFDDumpUTF7Str(sfd,ln->names[i]); } putc('\n',sfd); }
0
87,286
const char *gf_m4v_get_profile_name(u8 video_pl) { u32 i, count = GF_ARRAY_LENGTH(M4VProfiles); for (i=0; i<count; i++) { if ((u32)video_pl == M4VProfiles[i].value) return M4VProfiles[i].name; } return "ISO Reserved Profile"; }
0
258,704
static void hns_gmac_get_tx_auto_pause_frames(void *mac_drv, u16 *newval) { struct mac_driver *drv = (struct mac_driver *)mac_drv; *newval = dsaf_get_dev_field(drv, GMAC_FC_TX_TIMER_REG, GMAC_FC_TX_TIMER_M, GMAC_FC_TX_TIMER_S); }
0
232,017
GDataFile::GDataFile(GDataDirectory* parent, GDataRootDirectory* root) : GDataEntry(parent, root), kind_(DocumentEntry::UNKNOWN), is_hosted_document_(false) { file_info_.is_directory = false; }
0
498,583
transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_clause) { AttrNumber parent_attno; Relation relation; TupleDesc tupleDesc; TupleConstr *constr; AclResult aclresult; char *comment; ParseCallbackState pcbstate; setup_parser_errposition_callback(&pcbstate, cxt->pstate, t...
0
102,168
static bool update_sd_pick_busiest(struct lb_env *env, struct sd_lb_stats *sds, struct sched_group *sg, struct sg_lb_stats *sgs) { struct sg_lb_stats *busiest = &sds->busiest_stat; /* * Don't try to pull misfit tasks we can't help. * We can use max_capacity here as reduction in capacity on s...
0
12,038
void RTCSessionDescriptionRequestImpl::requestSucceeded(PassRefPtr<RTCSessionDescriptionDescriptor> descriptor) { if (m_successCallback) { RefPtr<RTCSessionDescription> sessionDescription = RTCSessionDescription::create(descriptor); m_successCallback->handleEvent(sessionDescription.get()); }...
1
21,958
static int dissect_h245_INTEGER_1_9216 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 9216U , NULL , FALSE ) ; return offset ; }
0
311,887
bool HTMLMediaElement::textTracksAreReady() const { for (const auto& textTrack : m_textTracksWhenResourceSelectionBegan) { if (textTrack->getReadinessState() == TextTrack::Loading || textTrack->getReadinessState() == TextTrack::NotLoaded) return false; } return true; }
0
408,009
static int dvb_frontend_get_event(struct dvb_frontend *fe, struct dvb_frontend_event *event, int flags) { struct dvb_frontend_private *fepriv = fe->frontend_priv; struct dvb_fe_events *events = &fepriv->events; dev_dbg(fe->dvb->device, "%s:\n", __func__); if (events->overflow) { events->overflow = 0; r...
0
371,682
_g_utf8_strstr (const char *haystack, const char *needle) { const char *s; gsize i; gsize haystack_len = g_utf8_strlen (haystack, -1); gsize needle_len = g_utf8_strlen (needle, -1); int needle_size = strlen (needle); s = haystack; for (i = 0; i <= haystack_len - needle_len; i++) { ...
0
52,730
static int cqspi_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct device *dev = &pdev->dev; struct cqspi_st *cqspi; struct resource *res; struct resource *res_ahb; int ret; int irq; cqspi = devm_kzalloc(dev, sizeof(*cqspi), GFP_KERNEL); if (!cqspi) return -ENOMEM; m...
0
111,670
TRIO_PUBLIC_STRING int trio_xstring_append_char TRIO_ARGS2((self, character), trio_string_t* self, char character) { assert(self); if ((int)self->length >= trio_string_size(self)) { if (!internal_string_grow(self, 0)) goto error; } self->content[self...
0
416,506
pdf14_open(gx_device *dev) { pdf14_device *pdev = (pdf14_device *)dev; gs_int_rect rect; if_debug2m('v', dev->memory, "[v]pdf14_open: width = %d, height = %d\n", dev->width, dev->height); rect.p.x = 0; rect.p.y = 0; rect.q.x = dev->width; rect.q.y = dev->height; /* If we ...
0
182,686
virtual void afterTest() { EXPECT_GE(2, m_numDraws); EXPECT_EQ(1, m_numCommits); }
0
209,392
void TestingAutomationProvider::OmniboxMovePopupSelection( Browser* browser, DictionaryValue* args, IPC::Message* reply_message) { int count; AutomationJSONReply reply(this, reply_message); if (!args->GetInteger("count", &count)) { reply.SendError("count missing"); return; } LocationBar* l...
0
490,021
piv_finish(sc_card_t *card) { piv_private_data_t * priv = PIV_DATA(card); int i; SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE); if (priv) { sc_file_free(priv->aid_file); if (priv->w_buf) free(priv->w_buf); if (priv->offCardCertURL) free(priv->offCardCertURL); for (i = 0; i < PIV_OBJ_LAST_ENUM - 1; ...
0
223,798
bool roleAllowsSort(AccessibilityRole role) { return role == ColumnHeaderRole || role == RowHeaderRole; }
0
53,442
void ieee80211_check_fast_xmit(struct sta_info *sta) { struct ieee80211_fast_tx build = {}, *fast_tx = NULL, *old; struct ieee80211_local *local = sta->local; struct ieee80211_sub_if_data *sdata = sta->sdata; struct ieee80211_hdr *hdr = (void *)build.hdr; struct ieee80211_chanctx_conf *chanctx_conf; __le16 fc; ...
0
115,484
PHP_FUNCTION(imagesetpixel) { zval *IM; long x, y, col; gdImagePtr im; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlll", &IM, &x, &y, &col) == FAILURE) { return; } ZEND_FETCH_RESOURCE(im, gdImagePtr, &IM, -1, "Image", le_gd); gdImageSetPixel(im, x, y, col); RETURN_TRUE; }
0
45,294
TEST_F(TestCustomAllocation, ResizeTensorsWithoutEnoughMemory) { // Set custom allocations for all input tensors. AssignCustomAllocForTensor(interpreter_->inputs()[0], /*required_alignment=*/kDefaultTensorAlignment); AssignCustomAllocForTensor(interpreter_->inputs()[1], ...
0
433,742
print_smb(netdissect_options *ndo, const u_char *buf, const u_char *maxbuf) { uint16_t flags2; int nterrcodes; int command; uint32_t nterror; const u_char *words, *maxwords, *data; const struct smbfns *fn; const char *fmt_smbheader = "[P4]SMB Command = [B]\nError class ...
0
504,759
rsvg_filter_primitive_composite_render (RsvgFilterPrimitive * self, RsvgFilterContext * ctx) { guchar i; gint x, y; gint rowstride, height, width; RsvgIRect boundarys; guchar *in_pixels; guchar *in2_pixels; guchar *output_pixels; RsvgFilterPrimitiveComposite *upself; GdkPixbuf *ou...
0
303,162
edit_and_execute_command (count, c, editing_mode, edit_command) int count, c, editing_mode; char *edit_command; { char *command, *metaval; int r, rrs, metaflag; sh_parser_state_t ps; rrs = rl_readline_state; saved_command_line_count = current_command_line_count; /* Accept the current line. */ ...
0
252,566
static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) { DSA *dsa; int ptype; unsigned char *penc = NULL; int penclen; ASN1_STRING *str = NULL; dsa = pkey->pkey.dsa; if (pkey->save_parameters && dsa->p && dsa->q && dsa->g) { str = ASN1_STRING_new(); if (!str) { ...
0
481,102
reset_ept_shadow_zero_bits_mask(struct kvm_mmu *context, bool execonly) { __reset_rsvds_bits_mask_ept(&context->shadow_zero_check, reserved_hpa_bits(), execonly, max_huge_page_level); }
0
284,846
void BrowserWindowGtk::ConnectAccelerators() { accel_group_ = gtk_accel_group_new(); gtk_window_add_accel_group(window_, accel_group_); AcceleratorsGtk* accelerators = AcceleratorsGtk::GetInstance(); for (AcceleratorsGtk::const_iterator iter = accelerators->begin(); iter != accelerators->end(); ++iter) ...
0
414,987
void SoundTouch::setPitch(double newPitch) { virtualPitch = newPitch; calcEffectiveRateAndTempo(); }
0
230,980
static bool SniffForOfficeDocs(const char* content, size_t size, const GURL& url, bool* have_enough_content, std::string* result) { *have_enough_content &= TruncateSize(kBytesRequiredForOfficeMa...
0
292,812
//! Save image as a BMP file \overloading. const CImg<T>& save_bmp(std::FILE *const file) const { return _save_bmp(file,0);
0
316,096
void InitXKeyEventForTesting(EventType type, KeyboardCode key_code, int flags, XEvent* event) { CHECK(event); Display* display = GetXDisplay(); XKeyEvent key_event; key_event.type = XKeyEventType(type); CHECK_NE(0, key_even...
0
496,310
static bool ad_pack_xattrs(struct vfs_handle_struct *handle, struct adouble *ad, files_struct *fsp) { struct ad_xattr_header *h = &ad->adx_header; size_t oldsize; uint32_t off; uint32_t data_off; uint16_t i; bool ok; if (ad->adx_entries == NULL) { /* No xattrs, nothing to pack */ return true; }...
0
116,088
static void prepare_emulation_failure_exit(struct kvm_vcpu *vcpu, u64 *data, u8 ndata, u8 *insn_bytes, u8 insn_size) { struct kvm_run *run = vcpu->run; u64 info[5]; u8 info_start; /* * Zero the whole array used to retrieve the exit info, as casting to * u32 for select entries will leave some chunks uni...
0
491,413
display_debug_rnglists_list (unsigned char * start, unsigned char * finish, unsigned int pointer_size, dwarf_vma offset, dwarf_vma base_address, unsigned int offset_size) { unsigned char *next = start; unsigned int debug_addr_section_hdr_len; if (offset_s...
0
499,085
static void analPathFollow(RzCoreAnalPaths *p, ut64 addr, PJ *pj) { if (addr == UT64_MAX) { return; } bool found; ht_uu_find(p->visited, addr, &found); if (!found) { p->cur = rz_analysis_find_most_relevant_block_in(p->core->analysis, addr); analPaths(p, pj); } }
0
219,683
PHP_FUNCTION(pg_transaction_status) { zval *pgsql_link = NULL; int id = -1; PGconn *pgsql; if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "r", &pgsql_link) == FAILURE) { RETURN_FALSE; } ZEND_FETCH_RESOURCE2(pgsql, PGconn *, pgsql_link, id, "PostgreSQL link", le_link, le_plink)...
0
414,090
psg_json_value_set_str_ne(PsgJsonValue *doc, const char *name, const char *val, size_t size) { if (size > 0) { return psg_json_value_set_str(doc, name, val, size); } else { return NULL; } }
0
387,255
static int isdn_ppp_skip_ac(struct ippp_struct *is, struct sk_buff *skb) { if (skb->len < 1) return -1; if (skb->data[0] == 0xff) { if (skb->len < 2) return -1; if (skb->data[1] != 0x03) return -1; // skip address/control (AC) field skb_pull(skb, 2); } else { if (is->pppcfg & SC_REJ_COMP_AC) ...
0
143,357
static Jsi_RC eventInfoCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { return InfoEventCmd(interp, args, _this, ret, funcPtr); }
0
147,938
static char *print_string(cJSON *item,printbuffer *p) {return print_string_ptr(item->valuestring,p);}
0
423,006
static inline u64 ioat_chansts_32(struct ioat_chan_common *chan) { u8 ver = chan->device->version; u64 status; u32 status_lo; /* We need to read the low address first as this causes the * chipset to latch the upper bits for the subsequent read */ status_lo = readl(chan->reg_base + IOAT_CHANSTS_OFFSET_LOW(ver)...
0
58,787
smb2_echo_callback(struct mid_q_entry *mid) { struct TCP_Server_Info *server = mid->callback_data; struct smb2_echo_rsp *rsp = (struct smb2_echo_rsp *)mid->resp_buf; struct cifs_credits credits = { .value = 0, .instance = 0 }; if (mid->mid_state == MID_RESPONSE_RECEIVED || mid->mid_state == MID_RESPONSE_MALFO...
0