code
stringlengths
32
241k
label
int64
0
1
static uint64_t vmport_ioport_read ( void * opaque , hwaddr addr , unsigned size ) { VMPortState * s = opaque ; CPUX86State * env = cpu_single_env ; unsigned char command ; uint32_t eax ; cpu_synchronize_state ( CPU ( x86_env_get_cpu ( env ) ) ) ; eax = env -> regs [ R_EAX ] ; if ( eax != VMPORT_MAGIC ) r...
1
static int32_t compareBytes ( UCMTable * lTable , const UCMapping * l , UCMTable * rTable , const UCMapping * r , UBool lexical ) { const uint8_t * lb , * rb ; int32_t result , i , length ; if ( lexical ) { if ( l -> bLen <= r -> bLen ) { length = l -> bLen ; } else { length = r -> bLen ; } } else...
0
SplineChar * PSCharStringToSplines ( uint8 * type1 , int len , struct pscontext * context , struct pschars * subrs , struct pschars * gsubrs , const char * name ) { int is_type2 = context -> is_type2 ; real stack [ 50 ] ; int sp = 0 , v ; real transient [ 32 ] ; SplineChar * ret = SplineCharCreate ( 2 ) ; S...
0
gcry_mpi_t gcry_sexp_nth_mpi ( gcry_sexp_t list , int number , int mpifmt ) { const char * s ; size_t n ; gcry_mpi_t a ; if ( ! mpifmt ) mpifmt = GCRYMPI_FMT_STD ; s = sexp_nth_data ( list , number , & n ) ; if ( ! s ) return NULL ; if ( gcry_mpi_scan ( & a , mpifmt , s , n , NULL ) ) return NULL ; retu...
1
static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) { UConverterDataLMBCS * extraInfo = _this -> extraInfo = ( UConverterDataLMBCS * ) uprv_malloc ( sizeof ( UConverterDataLMBCS ) ) ; if ( extraInfo != NULL ) { UConverterNamePieces stackPiec...
1
static int amr_decode_fix_avctx ( AVCodecContext * avctx ) { const int is_amr_wb = 1 + ( avctx -> codec_id == AV_CODEC_ID_AMR_WB ) ; avctx -> sample_rate = 8000 * is_amr_wb ; if ( avctx -> channels > 1 ) { av_log_missing_feature ( avctx , "multi-channel AMR" , 0 ) ; return AVERROR_PATCHWELCOME ; } avctx -...
0
static int dissect_h225_h225_RasMessage ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) { proto_item * it ; proto_tree * tr ; guint32 offset = 0 ; h225_packet_info * h225_pi ; h225_pi = create_h225_packet_info ( pinfo ) ; h225_pi -> msg_type = H225_RAS ; p_add_proto_data ( w...
0
static my_bool query_str_variable ( MYSQL * con , const char * var_name , char * str , size_t len ) { MYSQL_RES * rs ; MYSQL_ROW row ; char query_buffer [ MAX_TEST_QUERY_LENGTH ] ; my_bool is_null ; my_snprintf ( query_buffer , sizeof ( query_buffer ) , "SELECT %s" , var_name ) ; DIE_IF ( mysql_query ( con ...
0
static int mpeg4_decode_partitioned_mb ( MpegEncContext * s , int16_t block [ 6 ] [ 64 ] ) { int cbp , mb_type ; const int xy = s -> mb_x + s -> mb_y * s -> mb_stride ; mb_type = s -> current_picture . f . mb_type [ xy ] ; cbp = s -> cbp_table [ xy ] ; s -> use_intra_dc_vlc = s -> qscale < s -> intra_dc_thres...
1
static int dissect_h225_ExtendedAliasAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ExtendedAliasAddress , ExtendedAliasAddress_sequence ) ; return offset ; }
0
void pimv1_print ( netdissect_options * ndo , register const u_char * bp , register u_int len ) { register const u_char * ep ; register u_char type ; ep = ( const u_char * ) ndo -> ndo_snapend ; if ( bp >= ep ) return ; ND_TCHECK ( bp [ 1 ] ) ; type = bp [ 1 ] ; ND_PRINT ( ( ndo , " %s" , tok2str ( pimv1_...
0
static void test_read_format_mtree2 ( void ) { static char archive [ ] = "#mtree\n" "d type=dir content=.\n" ; struct archive_entry * ae ; struct archive * a ; assert ( ( a = archive_read_new ( ) ) != NULL ) ; assertEqualIntA ( a , ARCHIVE_OK , archive_read_support_filter_all ( a ) ) ; assertEqualIntA ( a ,...
0
static void ntpversion ( struct parse * pcmd , FILE * fp ) { if ( pcmd -> nargs == 0 ) { ( void ) fprintf ( fp , "NTP version being claimed is %d\n" , pktversion ) ; } else { if ( pcmd -> argval [ 0 ] . uval < NTP_OLDVERSION || pcmd -> argval [ 0 ] . uval > NTP_VERSION ) { ( void ) fprintf ( stderr , "versi...
0
static guint get_mtu ( packet_info * pinfo , bluetooth_data_t * bluetooth_data ) { wmem_tree_key_t key [ 3 ] ; guint32 frame_number ; mtu_data_t * mtu_data ; wmem_tree_t * sub_wmemtree ; guint mtu = 23 ; frame_number = pinfo -> num ; key [ 0 ] . length = 1 ; key [ 0 ] . key = & bluetooth_data -> interfa...
0
static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { AnmContext * s = avctx -> priv_data ; const int buf_size = avpkt -> size ; uint8_t * dst , * dst_end ; int count , ret ; if ( ( ret = ff_reget_buffer ( avctx , s -> frame ) ) < 0 ) { av_log ( avctx , AV_L...
0
static int dissect_pvfs_handle_extent ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo , guint32 nCount ) { proto_tree * extent_tree ; extent_tree = proto_tree_add_subtree_format ( tree , tvb , offset , 8 , ett_pvfs_extent_item , NULL , "Item %d" , nCount ) ; offset = dissect_pvfs_fh ( tvb ...
0
static int dissect_h245_MultiplexedStreamCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplexedStreamCapability , MultiplexedStreamCapability_sequence ) ; ret...
0
static int dissect_h245_RedundancyEncodingMethod ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_RedundancyEncodingMethod , RedundancyEncodingMethod_choice , NULL ) ; return of...
0
static cmsBool _cmsReadWCharArray ( cmsIOHANDLER * io , cmsUInt32Number n , wchar_t * Array ) { cmsUInt32Number i ; cmsUInt16Number tmp ; _cmsAssert ( io != NULL ) ; for ( i = 0 ; i < n ; i ++ ) { if ( Array != NULL ) { if ( ! _cmsReadUInt16Number ( io , & tmp ) ) return FALSE ; Array [ i ] = ( wchar_...
0
mbfl_string * mbfl_substr ( mbfl_string * string , mbfl_string * result , int from , int length ) { const mbfl_encoding * encoding ; int n , m , k , len , start , end ; unsigned char * p , * w ; const unsigned char * mbtab ; encoding = mbfl_no2encoding ( string -> no_encoding ) ; if ( encoding == NULL || st...
0
kadm5_ret_t kadm5_delete_policy ( void * server_handle , kadm5_policy_t name ) { kadm5_server_handle_t handle = server_handle ; osa_policy_ent_t entry ; int ret ; CHECK_HANDLE ( server_handle ) ; krb5_clear_error_message ( handle -> context ) ; if ( name == ( kadm5_policy_t ) NULL ) return EINVAL ; if ( s...
0
static void test_bug4079 ( ) { MYSQL_STMT * stmt ; MYSQL_BIND my_bind [ 1 ] ; const char * stmt_text ; uint32 res ; int rc ; myheader ( "test_bug4079" ) ; mysql_query ( mysql , "DROP TABLE IF EXISTS t1" ) ; mysql_query ( mysql , "CREATE TABLE t1 (a int)" ) ; mysql_query ( mysql , "INSERT INTO t1 VALUE...
0
float lut_interp_linear_float ( float value , float * table , size_t length ) { int upper , lower ; value = value * ( length - 1 ) ; upper = ceil ( value ) ; lower = floor ( value ) ; value = table [ upper ] * ( 1. - ( upper - value ) ) + table [ lower ] * ( upper - value ) ; return value ; }
0
static void DecoderWaitDate ( decoder_t * p_dec , bool * pb_reject , mtime_t i_deadline ) { decoder_owner_sys_t * p_owner = p_dec -> p_owner ; vlc_assert_locked ( & p_owner -> lock ) ; if ( * pb_reject || i_deadline < 0 ) return ; do { if ( p_owner -> b_flushing || p_owner -> b_exit ) { * pb_reject = true ;...
0
const EVP_CIPHER * EVP_aes_128_wrap_pad ( void ) { return & aes_128_wrap_pad ; }
0
static int dissect_h225_DialedDigits ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { # line 321 "./asn1/h225/h225.cnf" tvbuff_t * value_tvb = NULL ; guint len = 0 ; h225_packet_info * h225_pi ; offset = dissect_per_restricted_character_string ( tvb , ...
0
static void ossl_cipher_free ( void * ptr ) { EVP_CIPHER_CTX_free ( ptr ) ; }
0
static void pbase_tree_put ( struct pbase_tree_cache * cache ) { if ( ! cache -> temporary ) { cache -> ref -- ; return ; } free ( cache -> tree_data ) ; free ( cache ) ; }
0
static void * Type_LUT16_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) { return ( void * ) cmsPipelineDup ( ( cmsPipeline * ) Ptr ) ; cmsUNUSED_PARAMETER ( n ) ; cmsUNUSED_PARAMETER ( self ) ; }
0
static int selinux_socket_getsockname ( struct socket * sock ) { return sock_has_perm ( current , sock -> sk , SOCKET__GETATTR ) ; }
0
BN_ULONG bn_div_words ( BN_ULONG h , BN_ULONG l , BN_ULONG d ) { BN_ULONG dh , dl , q , ret = 0 , th , tl , t ; int i , count = 2 ; if ( d == 0 ) return ( BN_MASK2 ) ; i = BN_num_bits_word ( d ) ; assert ( ( i == BN_BITS2 ) || ( h <= ( BN_ULONG ) 1 << i ) ) ; i = BN_BITS2 - i ; if ( h >= d ) h -= d ; if...
0
int file_is_raw ( struct VpxInputContext * input ) { uint8_t buf [ 32 ] ; int is_raw = 0 ; vpx_codec_stream_info_t si ; si . sz = sizeof ( si ) ; if ( fread ( buf , 1 , 32 , input -> file ) == 32 ) { int i ; if ( mem_get_le32 ( buf ) < 256 * 1024 * 1024 ) { for ( i = 0 ; i < get_vpx_decoder_count ( ) ...
0
static void cmd_window_ddown ( void ) { MAIN_WINDOW_REC * rec ; rec = mainwindows_find_lower ( active_mainwin ) ; if ( rec == NULL ) rec = mainwindows_find_lower ( NULL ) ; if ( rec != NULL ) window_set_active ( rec -> active ) ; }
0
static void context_alloc ( void ) { gpg_error_t err ; gcry_ctx_t ctx ; gcry_mpi_t p , a ; wherestr = "context_alloc" ; show ( "checking context functions\n" ) ; p = gcry_mpi_set_ui ( NULL , 1 ) ; a = gcry_mpi_set_ui ( NULL , 1 ) ; err = ec_p_new ( & ctx , p , a ) ; if ( err ) die ( "ec_p_new returned...
0
static void clamp_lab ( const fz_colorspace * cs , const float * src , float * dst ) { int i ; for ( i = 0 ; i < 3 ; i ++ ) dst [ i ] = fz_clamp ( src [ i ] , i ? - 128 : 0 , i ? 127 : 100 ) ; }
0
TSSslConnection TSVConnSSLConnectionGet ( TSVConn sslp ) { TSSslConnection ssl = nullptr ; NetVConnection * vc = reinterpret_cast < NetVConnection * > ( sslp ) ; SSLNetVConnection * ssl_vc = dynamic_cast < SSLNetVConnection * > ( vc ) ; if ( ssl_vc != nullptr ) { ssl = reinterpret_cast < TSSslConnection > ( s...
0
static int compare_combining_class ( const hb_glyph_info_t * pa , const hb_glyph_info_t * pb ) { unsigned int a = _hb_glyph_info_get_modified_combining_class ( pa ) ; unsigned int b = _hb_glyph_info_get_modified_combining_class ( pb ) ; return a < b ? - 1 : a == b ? 0 : + 1 ; }
0
static void Type_ColorantTable_Free ( struct _cms_typehandler_struct * self , void * Ptr ) { cmsFreeNamedColorList ( ( cmsNAMEDCOLORLIST * ) Ptr ) ; return ; cmsUNUSED_PARAMETER ( self ) ; }
0
static void * gx_ttfMemory__alloc_struct ( ttfMemory * self , const ttfMemoryDescriptor * d , const char * cname ) { gs_memory_t * mem = ( ( gx_ttfMemory * ) self ) -> memory ; return mem -> procs . alloc_struct ( mem , ( const gs_memory_struct_type_t * ) d , cname ) ; }
0
void proto_register_umts_mac ( void ) { module_t * mac_module ; static gint * ett [ ] = { & ett_mac , & ett_mac_fach , & ett_mac_rach , & ett_mac_dch , & ett_mac_pch , & ett_mac_edch , & ett_mac_hsdsch , & ett_mac_edch_type2 , & ett_mac_edch_type2_sdu } ; static hf_register_info hf [ ] = { { & hf_mac_rach...
0
void proto_reg_handoff_zbee_zcl_appl_idt ( void ) { zbee_zcl_init_cluster ( proto_zbee_zcl_appl_idt , ett_zbee_zcl_appl_idt , ZBEE_ZCL_CID_APPLIANCE_IDENTIFICATION , hf_zbee_zcl_appl_idt_attr_id , - 1 , - 1 , ( zbee_zcl_fn_attr_data ) dissect_zcl_appl_idt_attr_data ) ; }
0
static double scalarineqsel ( PlannerInfo * root , Oid operator , bool isgt , VariableStatData * vardata , Datum constval , Oid consttype ) { Form_pg_statistic stats ; FmgrInfo opproc ; double mcv_selec , hist_selec , sumcommon ; double selec ; if ( ! HeapTupleIsValid ( vardata -> statsTuple ) ) { return DE...
0
static int tscc2_decode_slice ( TSCC2Context * c , int mb_y , const uint8_t * buf , int buf_size ) { int i , mb_x , q , ret ; int off ; init_get_bits ( & c -> gb , buf , buf_size * 8 ) ; for ( mb_x = 0 ; mb_x < c -> mb_width ; mb_x ++ ) { q = c -> slice_quants [ mb_x + c -> mb_width * mb_y ] ; if ( q ==...
0
static gboolean contains_uppercase ( const char * s1 ) { const char * ch ; for ( ch = s1 ; * ch != '\0' ; ch ++ ) { if ( g_ascii_isupper ( * ch ) ) return TRUE ; } return FALSE ; }
0
int phar_tar_setmetadata ( zval * metadata , phar_entry_info * entry , char * * error TSRMLS_DC ) { php_serialize_data_t metadata_hash ; if ( entry -> metadata_str . c ) { smart_str_free ( & entry -> metadata_str ) ; } entry -> metadata_str . c = 0 ; entry -> metadata_str . len = 0 ; PHP_VAR_SERIALIZE_INI...
0
static int qemuAgentIOProcess ( qemuAgentPtr mon ) { int len ; qemuAgentMessagePtr msg = NULL ; if ( mon -> msg && mon -> msg -> txOffset == mon -> msg -> txLength ) msg = mon -> msg ; # if DEBUG_IO # if DEBUG_RAW_IO char * str1 = qemuAgentEscapeNonPrintable ( msg ? msg -> txBuffer : "" ) ; char * str2 = qemu...
0
static void signal_window_item_changed ( WINDOW_REC * window , WI_ITEM_REC * item ) { g_return_if_fail ( window != NULL ) ; if ( item == NULL ) return ; if ( g_slist_length ( window -> items ) > 1 && IS_CHANNEL ( item ) ) { printformat ( item -> server , item -> visible_name , MSGLEVEL_CLIENTNOTICE , TXT_TALKIN...
0
err_status_t srtp_init ( ) { err_status_t status ; status = crypto_kernel_init ( ) ; if ( status ) return status ; status = crypto_kernel_load_debug_module ( & mod_srtp ) ; if ( status ) return status ; return err_status_ok ; }
0
void TSTextLogObjectRollingOffsetHrSet ( TSTextLogObject the_object , int rolling_offset_hr ) { sdk_assert ( sdk_sanity_check_iocore_structure ( the_object ) == TS_SUCCESS ) ; ( ( TextLogObject * ) the_object ) -> set_rolling_offset_hr ( rolling_offset_hr ) ; }
0
void var_set ( const char * var_name , const char * var_name_end , const char * var_val , const char * var_val_end ) { int digit , env_var = 0 ; VAR * v ; DBUG_ENTER ( "var_set" ) ; DBUG_PRINT ( "enter" , ( "var_name: '%.*s' = '%.*s' (length: %d)" , ( int ) ( var_name_end - var_name ) , var_name , ( int ) ( var...
0
static int dumpcffdict ( SplineFont * sf , struct alltabs * at ) { FILE * fdarray = at -> fdarray ; int pstart ; dumpsid ( fdarray , at , sf -> fontname , ( 12 << 8 ) | 38 ) ; if ( sf -> ascent + sf -> descent != 1000 ) { dumpdbl ( fdarray , 1.0 / ( sf -> ascent + sf -> descent ) ) ; dumpint ( fdarray , 0 )...
0
static struct branch * lookup_branch ( const char * name ) { unsigned int hc = hc_str ( name , strlen ( name ) ) % branch_table_sz ; struct branch * b ; for ( b = branch_table [ hc ] ; b ; b = b -> table_next_branch ) if ( ! strcmp ( name , b -> name ) ) return b ; return NULL ; }
0
static int SpoolssSetPrinter_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) { guint32 level ; offset = dissect_nt_policy_hnd ( tvb , offset , pinfo , tree , di , drep , hf_hnd , NULL , NULL , FALSE , FALSE ) ; offset = dissect_ndr_uint32 ( tvb , ...
0
static afs_int32 dumpEntry ( struct rx_call * call , afs_int32 apos , struct prdebugentry * aentry , afs_int32 * cid ) { afs_int32 code ; struct ubik_trans * tt ; code = Initdb ( ) ; if ( code != PRSUCCESS ) return code ; code = ubik_BeginTransReadAny ( dbase , UBIK_READTRANS , & tt ) ; if ( code ) return c...
0
MULTIPROCESS_TEST_MAIN ( SlowChildProcess ) { WaitToDie ( ProcessUtilTest : : GetSignalFilePath ( kSignalFileSlow ) . c_str ( ) ) ; return 0 ; }
0
static int aura_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * pkt ) { AuraDecodeContext * s = avctx -> priv_data ; uint8_t * Y , * U , * V ; uint8_t val ; int x , y , ret ; const uint8_t * buf = pkt -> data ; const int8_t * delta_table = ( const int8_t * ) buf + 16 ; i...
1
METHOD ( x509_t , get_constraint , u_int , private_x509_cert_t * this , x509_constraint_t type ) { switch ( type ) { case X509_PATH_LEN : return this -> pathLenConstraint ; case X509_REQUIRE_EXPLICIT_POLICY : return this -> require_explicit ; case X509_INHIBIT_POLICY_MAPPING : return this -> inhibit_mapping ; ...
0
static gcry_err_code_t sexp_to_key ( gcry_sexp_t sexp , int want_private , int use , const char * override_elems , gcry_mpi_t * * retarray , gcry_module_t * retalgo , int * r_is_ecc ) { gcry_err_code_t err = 0 ; gcry_sexp_t list , l2 ; char * name ; const char * elems ; gcry_mpi_t * array ; gcry_module_t mo...
1
static int spl_filesystem_file_open ( spl_filesystem_object * intern , int use_include_path , int silent TSRMLS_DC ) { zval tmp ; intern -> type = SPL_FS_FILE ; php_stat ( intern -> file_name , intern -> file_name_len , FS_IS_DIR , & tmp TSRMLS_CC ) ; if ( Z_LVAL ( tmp ) ) { intern -> u . file . open_mode = N...
0
static void _HZReset ( UConverter * cnv , UConverterResetChoice choice ) { if ( choice <= UCNV_RESET_TO_UNICODE ) { cnv -> toUnicodeStatus = 0 ; cnv -> mode = 0 ; if ( cnv -> extraInfo != NULL ) { ( ( UConverterDataHZ * ) cnv -> extraInfo ) -> isStateDBCS = FALSE ; ( ( UConverterDataHZ * ) cnv -> extraInfo ...
1
static void sig_complete_connect ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) { g_return_if_fail ( list != NULL ) ; g_return_if_fail ( word != NULL ) ; * list = completion_get_chatnets ( word ) ; * list = g_list_concat ( * list , completion_get_servers ( wo...
0
void tb_check_watchpoint ( CPUArchState * env ) { TranslationBlock * tb ; tb = tb_find_pc ( env -> mem_io_pc ) ; if ( ! tb ) { cpu_abort ( env , "check_watchpoint: could not find TB for pc=%p" , ( void * ) env -> mem_io_pc ) ; } cpu_restore_state_from_tb ( tb , env , env -> mem_io_pc ) ; tb_phys_invalidat...
0
static struct kvm_cpuid2 * get_supported_cpuid ( KVMState * s ) { struct kvm_cpuid2 * cpuid ; int max = 1 ; if ( cpuid_cache != NULL ) { return cpuid_cache ; } while ( ( cpuid = try_get_cpuid ( s , max ) ) == NULL ) { max *= 2 ; } cpuid_cache = cpuid ; return cpuid ; }
0
static uint32_t vmsvga_value_read ( void * opaque , uint32_t address ) { uint32_t caps ; struct vmsvga_state_s * s = opaque ; DisplaySurface * surface = qemu_console_surface ( s -> vga . con ) ; PixelFormat pf ; uint32_t ret ; switch ( s -> index ) { case SVGA_REG_ID : ret = s -> svgaid ; break ; case...
0
void vp9_fdct8x8_1_c ( const int16_t * input , tran_low_t * output , int stride ) { int r , c ; tran_low_t sum = 0 ; for ( r = 0 ; r < 8 ; ++ r ) for ( c = 0 ; c < 8 ; ++ c ) sum += input [ r * stride + c ] ; output [ 0 ] = sum ; output [ 1 ] = 0 ; }
0
int movepoint ( register MI_INFO * info , uchar * record , my_off_t oldpos , my_off_t newpos , uint prot_key ) { register uint i ; uchar * key ; uint key_length ; DBUG_ENTER ( "movepoint" ) ; key = info -> lastkey + info -> s -> base . max_key_length ; for ( i = 0 ; i < info -> s -> base . keys ; i ++ )...
0
static int dissect_usb_vid_probe ( proto_tree * parent_tree , tvbuff_t * tvb , int offset ) { proto_tree * tree ; static const int * hint_bits [ ] = { & hf_usb_vid_probe_hint_D [ 0 ] , & hf_usb_vid_probe_hint_D [ 1 ] , & hf_usb_vid_probe_hint_D [ 2 ] , & hf_usb_vid_probe_hint_D [ 3 ] , & hf_usb_vid_probe_hint_D [...
0
static void y4m_convert_42xpaldv_42xjpeg ( y4m_input * _y4m , unsigned char * _dst , unsigned char * _aux ) { unsigned char * tmp ; int c_w ; int c_h ; int c_sz ; int pli ; int y ; int x ; _dst += _y4m -> pic_w * _y4m -> pic_h ; c_w = ( _y4m -> pic_w + 1 ) / 2 ; c_h = ( _y4m -> pic_h + _y4m -> dst_c...
0
IN_PROC_BROWSER_TEST_P ( BrowserCloseManagerBrowserTest , TestWithOffTheRecordDownloads ) { Profile * otr_profile = browser ( ) -> profile ( ) -> GetOffTheRecordProfile ( ) ; Browser * otr_browser = CreateBrowser ( otr_profile ) ; { RepeatedNotificationObserver close_observer ( chrome : : NOTIFICATION_BROWSER_C...
0
static int validate_nonce ( const char * pnonce , struct recvbuf * rbufp ) { u_int ts_i ; u_int ts_f ; l_fp ts ; l_fp now_delta ; u_int supposed ; u_int derived ; if ( 3 != sscanf ( pnonce , "%08x%08x%08x" , & ts_i , & ts_f , & supposed ) ) return FALSE ; ts . l_ui = ( u_int32 ) ts_i ; ts . l_uf = ( u...
0
int EVP_EncryptFinal_ex ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl ) { int n , ret ; unsigned int i , b , bl ; if ( ctx -> cipher -> flags & EVP_CIPH_FLAG_CUSTOM_CIPHER ) { ret = ctx -> cipher -> do_cipher ( ctx , out , NULL , 0 ) ; if ( ret < 0 ) return 0 ; else * outl = ret ; return 1 ; ...
0
void fz_drop_colorspace_store_key ( fz_context * ctx , fz_colorspace * cs ) { fz_drop_key_storable_key ( ctx , & cs -> key_storable ) ; }
0
static int qio_channel_websock_decode_header ( QIOChannelWebsock * ioc , Error * * errp ) { unsigned char opcode , fin , has_mask ; size_t header_size ; size_t payload_len ; QIOChannelWebsockHeader * header = ( QIOChannelWebsockHeader * ) ioc -> encinput . buffer ; if ( ioc -> payload_remain ) { error_setg ...
0
int jas_image_depalettize ( jas_image_t * image , int cmptno , int numlutents , int_fast32_t * lutents , int dtype , int newcmptno ) { jas_image_cmptparm_t cmptparms ; int_fast32_t v ; int i ; int j ; jas_image_cmpt_t * cmpt ; cmpt = image -> cmpts_ [ cmptno ] ; cmptparms . tlx = cmpt -> tlx_ ; cmptparm...
0
static int dissect_h225_FastStart_item ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { # line 272 "./asn1/h225/h225.cnf" tvbuff_t * value_tvb = NULL ; char codec_str [ 50 ] ; h225_packet_info * h225_pi ; codec_str [ 0 ] = '\0' ; offset = dissect_per...
0
struct key_type * key_type_lookup ( const char * type ) { struct key_type * ktype ; down_read ( & key_types_sem ) ; list_for_each_entry ( ktype , & key_types_list , link ) { if ( strcmp ( ktype -> name , type ) == 0 ) goto found_kernel_type ; } up_read ( & key_types_sem ) ; ktype = ERR_PTR ( - ENOKEY ) ; ...
0
static int dissect_h225_Status_UUIE ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { # line 388 "./asn1/h225/h225.cnf" h225_packet_info * h225_pi ; offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Status_UUIE , Status_UUIE_s...
0
struct evhttp * evhttp_new ( struct event_base * base ) { struct evhttp * http = evhttp_new_object ( ) ; http -> base = base ; return ( http ) ; }
0
static size_t b_encoder ( char * str , const char * buf , size_t buflen , const char * tocode ) { char * s0 = str ; memcpy ( str , "=?" , 2 ) ; str += 2 ; memcpy ( str , tocode , strlen ( tocode ) ) ; str += strlen ( tocode ) ; memcpy ( str , "?B?" , 3 ) ; str += 3 ; while ( buflen ) { char encoded [ ...
0
static int selinux_kernel_create_files_as ( struct cred * new , struct inode * inode ) { struct inode_security_struct * isec = inode_security ( inode ) ; struct task_security_struct * tsec = new -> security ; u32 sid = current_sid ( ) ; int ret ; ret = avc_has_perm ( sid , isec -> sid , SECCLASS_KERNEL_SERVIC...
0
static inline void decompose_cluster ( const hb_ot_shape_normalize_context_t * c , unsigned int end , bool might_short_circuit , bool always_short_circuit ) { if ( likely ( c -> buffer -> idx + 1 == end ) ) decompose_current_character ( c , might_short_circuit ) ; else decompose_multi_char_cluster ( c , end , alway...
0
static void copy_move_file ( CopyMoveJob * copy_job , GFile * src , GFile * dest_dir , gboolean same_fs , gboolean unique_names , char * * dest_fs_type , SourceInfo * source_info , TransferInfo * transfer_info , GHashTable * debuting_files , GdkPoint * position , gboolean overwrite , gboolean * skipped_file , gboolean ...
0
static const char * cmd_debug_log_level ( cmd_parms * cmd , void * _dcfg , const char * p1 ) { directory_config * dcfg = ( directory_config * ) _dcfg ; dcfg -> debuglog_level = atoi ( p1 ) ; if ( ( dcfg -> debuglog_level >= 0 ) && ( dcfg -> debuglog_level <= 9 ) ) return NULL ; return apr_psprintf ( cmd -> pool...
0
void mi_check_print_info ( MI_CHECK * param __attribute__ ( ( unused ) ) , const char * fmt , ... ) { va_list args ; va_start ( args , fmt ) ; ( void ) vfprintf ( stdout , fmt , args ) ; ( void ) fputc ( '\n' , stdout ) ; va_end ( args ) ; }
0
static int proc_bulk ( struct usb_dev_state * ps , void __user * arg ) { struct usb_device * dev = ps -> dev ; struct usbdevfs_bulktransfer bulk ; unsigned int tmo , len1 , pipe ; int len2 ; unsigned char * tbuf ; int i , ret ; if ( copy_from_user ( & bulk , arg , sizeof ( bulk ) ) ) return - EFAULT ; r...
0
void _TSfree ( void * ptr ) { ats_free ( ptr ) ; }
0
void handle_connection_in_main_thread ( THD * thd ) { mysql_mutex_assert_owner ( & LOCK_thread_count ) ; thread_cache_size = 0 ; threads . append ( thd ) ; mysql_mutex_unlock ( & LOCK_thread_count ) ; thd -> start_utime = microsecond_interval_timer ( ) ; do_handle_one_connection ( thd ) ; }
0
void event_queue_remove ( struct event_base * base , struct event * ev , int queue ) { if ( ! ( ev -> ev_flags & queue ) ) event_errx ( 1 , "%s: %p(fd %d) not on queue %x" , __func__ , ev , ev -> ev_fd , queue ) ; if ( ~ ev -> ev_flags & EVLIST_INTERNAL ) base -> event_count -- ; ev -> ev_flags &= ~ queue ; swi...
0
IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , DisregardPersistenceRequestIframe ) { base : : HistogramTester histogram_tester ; ContentSettingsForOneType host_settings ; HostContentSettingsMapFactory : : GetForProfile ( browser ( ) -> profile ( ) ) -> GetSettingsForOneType ( CONTENT_SETTINGS_TYPE_CLIENT_HINTS...
0
static gboolean proto_tree_traverse_pre_order ( proto_tree * tree , proto_tree_traverse_func func , gpointer data ) { proto_node * pnode = tree ; proto_node * child ; proto_node * current ; if ( func ( pnode , data ) ) return TRUE ; child = pnode -> first_child ; while ( child != NULL ) { current = child ...
0
TEST_F ( NativeBackendLibsecretTest , RemoveLoginsCreatedBetween ) { CheckRemoveLoginsBetween ( CREATED ) ; }
0
static void dtap_bcc_term_req ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) { guint32 curr_offset ; guint32 consumed ; guint curr_len ; curr_offset = offset ; curr_len = len ; ELEM_MAND_V ( GSM_A_PDU_TYPE_DTAP , DE_BCC_CALL_REF , "(Broadcast call reference)" )...
0
static void cpu_request_exit ( void * opaque , int irq , int level ) { CPUMIPSState * env = cpu_single_env ; if ( env && level ) { cpu_exit ( CPU ( mips_env_get_cpu ( env ) ) ) ; } }
1
extern int main ( int argc , char * argv [ ] ) { UBool sourceTOC , verbose ; uint32_t maxSize ; U_MAIN_INIT_ARGS ( argc , argv ) ; argc = u_parseArgs ( argc , argv , UPRV_LENGTHOF ( options ) , options ) ; if ( argc < 0 ) { fprintf ( stderr , "error in command line argument \"%s\"\n" , argv [ - argc ] ) ; ...
0
static size_t vmxnet_tx_pkt_fetch_fragment ( struct VmxnetTxPkt * pkt , int * src_idx , size_t * src_offset , struct iovec * dst , int * dst_idx ) { size_t fetched = 0 ; struct iovec * src = pkt -> vec ; * dst_idx = VMXNET_TX_PKT_FRAGMENT_HEADER_NUM ; while ( fetched < pkt -> virt_hdr . gso_size ) { if ( * ds...
0
static int dcc_resume_file_check ( FILE_DCC_REC * dcc , IRC_SERVER_REC * server , uoff_t size ) { if ( size >= dcc -> size ) { dcc -> starttime = time ( NULL ) ; dcc_reject ( DCC ( dcc ) , server ) ; } else if ( lseek ( dcc -> fhandle , ( off_t ) size , SEEK_SET ) != ( off_t ) size ) { dcc_reject ( DCC ( dc...
0
static int dissect_spoolss_keybuffer ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) { guint32 size ; int end_offset ; if ( di -> conformant_run ) return offset ; offset = dissect_ndr_uint32 ( tvb , offset , pinfo , tree , di , drep , hf_keybuffer_siz...
0
static int dissect_q931 ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) { dissect_q931_pdu ( tvb , pinfo , tree , FALSE ) ; return tvb_captured_length ( tvb ) ; }
0
static int ram_init1 ( SysBusDevice * dev ) { RamDevice * d = FROM_SYSBUS ( RamDevice , dev ) ; memory_region_init_ram ( & d -> ram , OBJECT ( d ) , "sun4m.ram" , d -> size ) ; vmstate_register_ram_global ( & d -> ram ) ; sysbus_init_mmio ( dev , & d -> ram ) ; return 0 ; }
0
static int add_to_include_set ( struct bitmap * base , struct commit * commit ) { khiter_t hash_pos ; uint32_t bitmap_pos = find_object_pos ( commit -> object . oid . hash ) ; if ( bitmap_get ( base , bitmap_pos ) ) return 0 ; hash_pos = kh_get_sha1 ( writer . bitmaps , commit -> object . oid . hash ) ; if ( ...
0