code
stringlengths
32
241k
label
int64
0
1
void prplcb_conv_del_users ( PurpleConversation * conv , GList * cbuddies ) { struct groupchat * gc = conv -> ui_data ; GList * b ; for ( b = cbuddies ; b ; b = b -> next ) { imcb_chat_remove_buddy ( gc , b -> data , "" ) ; } }
0
int rand_neg ( void ) { static unsigned int neg = 0 ; static int sign [ 8 ] = { 0 , 0 , 0 , 1 , 1 , 0 , 1 , 1 } ; return ( sign [ ( neg ++ ) % 8 ] ) ; }
0
static void activate_desktop_file ( ActivateParameters * parameters , NautilusFile * file ) { ActivateParametersDesktop * parameters_desktop ; char * primary , * secondary , * display_name ; GtkWidget * dialog ; GdkScreen * screen ; char * uri ; screen = gtk_widget_get_screen ( GTK_WIDGET ( parameters -> pa...
1
int jpc_pi_init ( jpc_pi_t * pi ) { int compno ; int rlvlno ; int prcno ; jpc_picomp_t * picomp ; jpc_pirlvl_t * pirlvl ; int * prclyrno ; pi -> prgvolfirst = 0 ; pi -> valid = 0 ; pi -> pktno = - 1 ; pi -> pchgno = - 1 ; pi -> pchg = 0 ; for ( compno = 0 , picomp = pi -> picomps ; compno < pi...
0
static TX_SIZE read_selected_tx_size ( VP9_COMMON * cm , MACROBLOCKD * xd , TX_SIZE max_tx_size , vp9_reader * r ) { const int ctx = vp9_get_tx_size_context ( xd ) ; const vp9_prob * tx_probs = get_tx_probs ( max_tx_size , ctx , & cm -> fc . tx_probs ) ; int tx_size = vp9_read ( r , tx_probs [ 0 ] ) ; if ( tx_s...
0
static void setup_frame_size_with_refs ( VP9_COMMON * cm , struct vp9_read_bit_buffer * rb ) { int width , height ; int found = 0 , i ; for ( i = 0 ; i < REFS_PER_FRAME ; ++ i ) { if ( vp9_rb_read_bit ( rb ) ) { YV12_BUFFER_CONFIG * const buf = cm -> frame_refs [ i ] . buf ; width = buf -> y_crop_width ...
0
void TSContDataSet ( TSCont contp , void * data ) { sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ; INKContInternal * i = ( INKContInternal * ) contp ; i -> mdata = data ; }
0
proto_item * proto_tree_add_string_format ( proto_tree * tree , int hfindex , tvbuff_t * tvb , gint start , gint length , const char * value , const char * format , ... ) { proto_item * pi ; va_list ap ; pi = proto_tree_add_string ( tree , hfindex , tvb , start , length , value ) ; if ( pi != tree ) { TRY_TO_...
0
jas_image_fmtinfo_t * jas_image_lookupfmtbyname ( const char * name ) { int i ; jas_image_fmtinfo_t * fmtinfo ; for ( i = 0 , fmtinfo = jas_image_fmtinfos ; i < jas_image_numfmts ; ++ i , ++ fmtinfo ) { if ( ! strcmp ( fmtinfo -> name , name ) ) { return fmtinfo ; } } return 0 ; }
0
int ff_generate_sliding_window_mmcos ( H264Context * h , int first_slice ) { MMCO mmco_temp [ MAX_MMCO_COUNT ] , * mmco = first_slice ? h -> mmco : mmco_temp ; int mmco_index = 0 , i ; assert ( h -> long_ref_count + h -> short_ref_count <= h -> sps . ref_frame_count ) ; if ( h -> short_ref_count && h -> long_re...
1
static int vvalue_tvb_blob ( tvbuff_t * tvb , int offset , void * val ) { struct data_blob * blob = ( struct data_blob * ) val ; guint32 len = tvb_get_letohl ( tvb , offset ) ; blob -> size = len ; blob -> data = ( guint8 * ) tvb_memdup ( wmem_packet_scope ( ) , tvb , offset + 4 , len ) ; return 4 + len ; }
0
const EVP_CIPHER * EVP_aes_ ## keylen ## _ ## mode ( void ) \ { return & aes_ ## keylen ## _ ## mode ; } # endif # if defined ( OPENSSL_CPUID_OBJ ) && ( defined ( __arm__ ) || defined ( __arm ) || defined ( __aarch64__ ) ) # include "arm_arch.h" # if __ARM_MAX_ARCH__ >= 7 # if defined ( BSAES_ASM ) # define BSAES...
1
static int dissect_pvfs2_mgmt_event_mon_response ( tvbuff_t * tvb , proto_tree * tree , int offset ) { proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_api , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ; offset += 4 ; proto_tree_add_item ( tree , hf_pvfs_mgmt_event_mon_response_operation , tvb , offset , 4...
0
static struct cvec * range ( struct vars * v , celt a , celt b , int cases ) { int nchrs ; struct cvec * cv ; celt c , cc ; if ( a != b && ! before ( a , b ) ) { ERR ( REG_ERANGE ) ; return NULL ; } if ( ! cases ) { cv = getcvec ( v , 0 , 1 ) ; NOERRN ( ) ; addrange ( cv , a , b ) ; return cv ; ...
0
unsigned int vp9_sad ## m ## x ## n ## _avg_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , const uint8_t * second_pred ) { uint8_t comp_pred [ m * n ] ; vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ; return sad ( src , src_stride , comp_pred , m , m ,...
0
int dissect_ber_relative_oid ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint hf_id , tvbuff_t * * value_tvb ) { return dissect_ber_any_oid ( implicit_tag , actx , tree , tvb , offset , hf_id , value_tvb , FALSE ) ; }
0
static int uncompress_image ( Gif_Context * gfc , Gif_Image * gfi , Gif_Reader * grr ) { int old_nerrors ; if ( ! Gif_CreateUncompressedImage ( gfi , gfi -> interlace ) ) return 0 ; gfc -> width = gfi -> width ; gfc -> height = gfi -> height ; gfc -> image = gfi -> image_data ; gfc -> maximage = gfi -> imag...
0
static void display_sorted_nicks ( CHANNEL_REC * channel , GSList * nicklist ) { WINDOW_REC * window ; TEXT_DEST_REC dest ; GString * str ; GSList * tmp ; char * format , * stripped , * prefix_format ; char * aligned_nick , nickmode [ 2 ] = { 0 , 0 } ; int * columns , cols , rows , last_col_rows , col...
0
static int dissect_rsl_ie_cbch_load_inf ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) { proto_item * item ; proto_tree * ie_tree ; guint8 ie_id ; guint8 octet ; if ( is_mandatory == FALSE ) { ie_id = tvb_get_guint8 ( tvb , offset ) ; if ( ie_id != RS...
0
static int dissect_h225_NonStandardMessage ( 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_NonStandardMessage , NonStandardMessage_sequence ) ; return offset ; }
0
static int znoaccess ( i_ctx_t * i_ctx_p ) { os_ptr op = osp ; check_op ( 1 ) ; if ( r_has_type ( op , t_dictionary ) ) { ref * aop = dict_access_ref ( op ) ; if ( ! r_has_attrs ( aop , a_write ) ) { if ( ! r_has_attrs ( aop , a_read ) && ! r_has_attrs ( aop , a_execute ) ) { return 0 ; } return_error...
0
static int svc_log ( SvcContext * svc_ctx , SVC_LOG_LEVEL level , const char * fmt , ... ) { char buf [ 512 ] ; int retval = 0 ; va_list ap ; SvcInternal * const si = get_svc_internal ( svc_ctx ) ; if ( level > svc_ctx -> log_level ) { return retval ; } va_start ( ap , fmt ) ; retval = vsnprintf ( buf...
0
void vp8_post_proc_down_and_across_mb_row_c ( unsigned char * src_ptr , unsigned char * dst_ptr , int src_pixels_per_line , int dst_pixels_per_line , int cols , unsigned char * f , int size ) { unsigned char * p_src , * p_dst ; int row ; int col ; unsigned char v ; unsigned char d [ 4 ] ; for ( row = 0 ; ...
0
static int dissect_h225_SEQUENCE_OF_SupportedPrefix ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_SEQUENCE_OF_SupportedPrefix , SEQUENCE_OF_SupportedPrefix_sequence_of ) ;...
0
static void stroke_user_creds ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) { pop_string ( msg , & msg -> user_creds . name ) ; pop_string ( msg , & msg -> user_creds . username ) ; pop_string ( msg , & msg -> user_creds . password ) ; DBG1 ( DBG_CFG , "received stroke: user-creds '%s'" ,...
0
static time_t xstrpisotime ( const char * s , char * * endptr ) { struct tm tm ; time_t res = ( time_t ) - 1 ; memset ( & tm , 0 , sizeof ( tm ) ) ; while ( * s == ' ' || * s == '\t' ) ++ s ; if ( ( tm . tm_year = strtoi_lim ( s , & s , 1583 , 4095 ) ) < 0 || * s ++ != '-' ) { goto out ; } if ( ( tm . t...
0
static gcry_mpi_t hex2mpi ( const char * string ) { gpg_error_t err ; gcry_mpi_t val ; err = gcry_mpi_scan ( & val , GCRYMPI_FMT_HEX , string , 0 , NULL ) ; if ( err ) die ( "hex2mpi '%s' failed: %s\n" , gpg_strerror ( err ) ) ; return val ; }
0
static const UAmbiguousConverter * ucnv_getAmbiguous ( const UConverter * cnv ) { UErrorCode errorCode ; const char * name ; int32_t i ; if ( cnv == NULL ) { return NULL ; } errorCode = U_ZERO_ERROR ; name = ucnv_getName ( cnv , & errorCode ) ; if ( U_FAILURE ( errorCode ) ) { return NULL ; } fo...
0
static cmsBool Type_vcgt_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) { cmsToneCurve * * Curves = ( cmsToneCurve * * ) Ptr ; cmsUInt32Number i , j ; if ( cmsGetToneCurveParametricType ( Curves [ 0 ] ) == 5 && cmsGetToneCurveParametricType ( Curves [ 1 ]...
0
int dtls1_send_server_done ( SSL * s ) { unsigned char * p ; if ( s -> state == SSL3_ST_SW_SRVR_DONE_A ) { p = ( unsigned char * ) s -> init_buf -> data ; p = dtls1_set_message_header ( s , p , SSL3_MT_SERVER_DONE , 0 , 0 , 0 ) ; s -> state = SSL3_ST_SW_SRVR_DONE_B ; s -> init_num = DTLS1_HM_HEADER_LENGTH ;...
0
void * hb_font_funcs_get_user_data ( hb_font_funcs_t * ffuncs , hb_user_data_key_t * key ) { return hb_object_get_user_data ( ffuncs , key ) ; }
0
void refresh_status ( THD * thd ) { mysql_mutex_lock ( & LOCK_status ) ; add_to_status ( & global_status_var , & thd -> status_var ) ; bzero ( ( uchar * ) & thd -> status_var , sizeof ( thd -> status_var ) ) ; bzero ( ( uchar * ) & thd -> org_status_var , sizeof ( thd -> org_status_var ) ) ; thd -> start_byte...
0
static inline size_t GetPixelChannels ( const Image * restrict image ) { return ( image -> number_channels ) ; }
0
static void remoteDispatchCopyError ( remote_error * rerr , virErrorPtr verr ) { rerr -> code = verr -> code ; rerr -> domain = verr -> domain ; rerr -> message = verr -> message ? malloc ( sizeof ( char * ) ) : NULL ; if ( rerr -> message ) * rerr -> message = strdup ( verr -> message ) ; rerr -> level = ver...
0
static int _evdns_nameserver_add_impl ( unsigned long int address , int port ) { const struct nameserver * server = server_head , * const started_at = server_head ; struct nameserver * ns ; int err = 0 ; if ( server ) { do { if ( server -> address == address ) return 3 ; server = server -> next ; } wh...
1
static void * Type_LUT16_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) { cmsUInt8Number InputChannels , OutputChannels , CLUTpoints ; cmsPipeline * NewLUT = NULL ; cmsUInt32Number nTabSize ; cmsFloat64Number Matrix [ 3 * 3 ] ; cmsUInt...
0
static void handle_message_header_expected_byte ( tvbuff_t * tvb , gint offset , proto_tree * field_tree , guint8 expected_value ) { proto_item * item ; guint8 byte_value ; item = proto_tree_add_item ( field_tree , hf_alljoyn_uint8 , tvb , offset , 1 , ENC_NA ) ; byte_value = tvb_get_guint8 ( tvb , offset ) ; ...
0
static bfd_boolean srec_write_record ( bfd * abfd , unsigned int type , bfd_vma address , const bfd_byte * data , const bfd_byte * end ) { char buffer [ 2 * MAXCHUNK + 6 ] ; unsigned int check_sum = 0 ; const bfd_byte * src = data ; char * dst = buffer ; char * length ; bfd_size_type wrlen ; * dst ++ = 'S...
0
void send_protected_args ( int fd , char * args [ ] ) { int i ; # ifdef ICONV_OPTION int convert = ic_send != ( iconv_t ) - 1 ; xbuf outbuf , inbuf ; if ( convert ) alloc_xbuf ( & outbuf , 1024 ) ; # endif for ( i = 0 ; args [ i ] ; i ++ ) { } args [ i ] = "rsync" ; if ( DEBUG_GTE ( CMD , 1 ) ) prin...
0
EC_KEY * d2i_ECPrivateKey_bio ( BIO * bp , EC_KEY * * eckey ) { return ASN1_d2i_bio_of ( EC_KEY , EC_KEY_new , d2i_ECPrivateKey , bp , eckey ) ; }
0
int gs_copydevice ( gx_device * * pnew_dev , const gx_device * dev , gs_memory_t * mem ) { return gs_copydevice2 ( pnew_dev , dev , false , mem ) ; }
0
static char * expand_escapes ( const char * line , SERVER_REC * server , WI_ITEM_REC * item ) { char * ptr , * ret ; const char * prev ; int chr ; prev = line ; ret = ptr = g_malloc ( strlen ( line ) + 1 ) ; for ( ; * line != '\0' ; line ++ ) { if ( * line != '\\' ) { * ptr ++ = * line ; continue ...
0
void mime_hdr_field_detach ( MIMEHdrImpl * mh , MIMEField * field , bool detach_all_dups ) { MIMEField * next_dup = field -> m_next_dup ; if ( field -> is_detached ( ) ) { ink_assert ( next_dup == nullptr ) ; return ; } ink_assert ( field -> is_live ( ) ) ; MIME_HDR_SANITY_CHECK ( mh ) ; if ( field -> m...
0
static void make_bands ( int16_t * bands , int start , int stop , int num_bands ) { int k , previous , present ; float base , prod ; base = powf ( ( float ) stop / start , 1.0f / num_bands ) ; prod = start ; previous = start ; for ( k = 0 ; k < num_bands - 1 ; k ++ ) { prod *= base ; present = lrint...
1
static int _tiffCloseProc ( thandle_t fd ) { fd_as_handle_union_t fdh ; fdh . h = fd ; return ( close ( fdh . fd ) ) ; }
0
TSReturnCode TSHttpTxnUpdateCachedObject ( TSHttpTxn txnp ) { sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ; HttpSM * sm = ( HttpSM * ) txnp ; HttpTransact : : State * s = & ( sm -> t_state ) ; HTTPInfo * cached_obj_store = & ( sm -> t_state . cache_info . object_store ) ; HTTPHdr * client_reque...
0
SPL_METHOD ( DirectoryIterator , getBasename ) { spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ; char * suffix = 0 , * fname ; int slen = 0 ; size_t flen ; if ( zend_parse_parameters ( ZEND_NUM_ARGS ( ) TSRMLS_CC , "|s" , & suffix , & slen ...
1
static char * default_opaque_literal_tag ( tvbuff_t * tvb , guint32 offset , const char * token _U_ , guint8 codepage _U_ , guint32 * length ) { guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ; char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , "(%d bytes of opaque data)" , data_len ) ; * le...
0
int main ( int argc , char * argv [ ] ) { const char * globfile [ ] = { "one" , "two" , "three" , NULL } ; char tmpdir [ 32 ] ; struct passwd * pw ; const char * cwd ; int test ; int fail = 0 ; int i ; struct test_case_struct ts ; if ( argc > 1 ) { command_line_test ( argv [ 1 ] ) ; return 0 ;...
1
static void test_derived ( ) { MYSQL_STMT * stmt ; int rc , i ; MYSQL_BIND my_bind [ 1 ] ; int32 my_val = 0 ; ulong my_length = 0L ; my_bool my_null = FALSE ; const char * query = "select count(1) from (select f.id from t1 f where f.id=?) as x" ; myheader ( "test_derived" ) ; rc = mysql_query ( mysql ...
0
TEST_F ( WebFrameSimTest , NormalIFrameHasLayoutObjects ) { SimRequest main_resource ( "https://example.com/test.html" , "text/html" ) ; SimRequest frame_resource ( "https://example.com/frame.html" , "text/html" ) ; LoadURL ( "https://example.com/test.html" ) ; main_resource . Complete ( "<!DOCTYPE html>" "<ifr...
0
int i2d_ ## name ( type * a , unsigned char * * out ) ; DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ; int i2d_ ## name ( const type * a , unsigned char * * out ) ; DECLARE_ASN1_ITEM ( name ) # ...
1
static inline MagickRealType GetPixelInfoLuminance ( const PixelInfo * restrict pixel ) { MagickRealType blue , green , red ; if ( pixel -> colorspace == GRAYColorspace ) return ( pixel -> red ) ; if ( pixel -> colorspace != sRGBColorspace ) return ( 0.212656f * pixel -> red + 0.715158f * pixel -> green + 0.07218...
0
static int dissect_h225_SIPCaps ( 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_SIPCaps , SIPCaps_sequence ) ; return offset ; }
0
static int dissect_h225_Endpoint ( 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_Endpoint , Endpoint_sequence ) ; return offset ; }
0
static void sbr_hf_apply_noise_0 ( float ( * Y ) [ 2 ] , const float * s_m , const float * q_filt , int noise , int kx , int m_max ) { sbr_hf_apply_noise ( Y , s_m , q_filt , noise , 1.0 , 0.0 , m_max ) ; }
1
static int dissect_h245_BOOLEAN ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_boolean ( tvb , offset , actx , tree , hf_index , NULL ) ; return offset ; }
0
static int rtp_packetize_spx ( sout_stream_id_sys_t * id , block_t * in ) { uint8_t * p_buffer = in -> p_buffer ; int i_data_size , i_payload_size , i_payload_padding ; i_data_size = i_payload_size = in -> i_buffer ; i_payload_padding = 0 ; block_t * p_out ; if ( in -> i_buffer > rtp_mtu ( id ) ) { block_...
0
static void cat_blob ( struct object_entry * oe , unsigned char sha1 [ 20 ] ) { struct strbuf line = STRBUF_INIT ; unsigned long size ; enum object_type type = 0 ; char * buf ; if ( ! oe || oe -> pack_id == MAX_PACK_ID ) { buf = read_sha1_file ( sha1 , & type , & size ) ; } else { type = oe -> type ; ...
0
static int dissect_pbb_tlvblock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint offset , guint maxoffset , gint8 addrCount , guint tlvCat ) { guint16 tlvblockLength ; guint tlvblockEnd ; proto_tree * tlvblock_tree = NULL ; proto_tree * tlv_tree = NULL ; proto_tree * tlv_flags_tree = NULL ; ...
1
static int cirrus_get_bpp ( VGACommonState * s1 ) { CirrusVGAState * s = container_of ( s1 , CirrusVGAState , vga ) ; uint32_t ret = 8 ; if ( ( s -> vga . sr [ 0x07 ] & 0x01 ) != 0 ) { switch ( s -> vga . sr [ 0x07 ] & CIRRUS_SR7_BPP_MASK ) { case CIRRUS_SR7_BPP_8 : ret = 8 ; break ; case CIRRUS_SR7_BPP_1...
0
void proto_reg_handoff_zbee_zcl_basic ( void ) { dissector_handle_t basic_handle ; basic_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_BASIC ) ; dissector_add_uint ( "zbee.zcl.cluster" , ZBEE_ZCL_CID_BASIC , basic_handle ) ; zbee_zcl_init_cluster ( proto_zbee_zcl_basic , ett_zbee_zcl_basic , ZBEE_ZCL_CID_BASIC...
0
void mime_hdr_presence_set ( MIMEHdrImpl * h , int well_known_str_index ) { const char * wks = hdrtoken_index_to_wks ( well_known_str_index ) ; mime_hdr_presence_set ( h , wks ) ; }
0
static void gst_asf_demux_get_guid ( ASFGuid * guid , guint8 * * p_data , guint64 * p_size ) { g_assert ( * p_size >= 4 * sizeof ( guint32 ) ) ; guid -> v1 = gst_asf_demux_get_uint32 ( p_data , p_size ) ; guid -> v2 = gst_asf_demux_get_uint32 ( p_data , p_size ) ; guid -> v3 = gst_asf_demux_get_uint32 ( p_data ...
0
static int evport_dispatch ( struct event_base * base , void * arg , struct timeval * tv ) { int i , res ; struct evport_data * epdp = arg ; port_event_t pevtlist [ EVENTS_PER_GETN ] ; int nevents = 1 ; struct timespec ts ; struct timespec * ts_p = NULL ; if ( tv != NULL ) { ts . tv_sec = tv -> tv_sec ;...
0
static inline bool SchroSetEnum ( const encoder_t * p_enc , int i_list_size , const char * list [ ] , const char * psz_name , const char * psz_name_text , const char * psz_value ) { encoder_sys_t * p_sys = p_enc -> p_sys ; if ( list && psz_name_text && psz_name && psz_value ) { for ( int i = 0 ; i < i_list_size...
0
static void set_VD_bp ( unsigned char * bp , enum VD_type type , unsigned char ver ) { bp [ 1 ] = ( unsigned char ) type ; memcpy ( bp + 2 , "CD001" , 5 ) ; bp [ 7 ] = ver ; }
0
static int dissect_h245_INTEGER_0_255 ( 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 , 0U , 255U , NULL , FALSE ) ; return offset ; }
0
static void cmd_channel_modify ( const char * data ) { cmd_channel_add_modify ( data , FALSE ) ; }
0
static const char * cmd_request_encoding ( cmd_parms * cmd , void * _dcfg , const char * p1 ) { directory_config * dcfg = ( directory_config * ) _dcfg ; if ( dcfg == NULL ) return NULL ; dcfg -> request_encoding = p1 ; return NULL ; }
0
int mi_repair_by_sort ( MI_CHECK * param , register MI_INFO * info , const char * name , int rep_quick ) { int got_error ; uint i ; ulong length ; ha_rows start_records ; my_off_t new_header_length , del ; File new_file ; MI_SORT_PARAM sort_param ; MYISAM_SHARE * share = info -> s ; HA_KEYSEG * keyseg...
1
static int dissect_usb_video_endpoint_descriptor ( proto_tree * parent_tree , tvbuff_t * tvb , guint8 descriptor_len ) { proto_tree * tree = NULL ; int offset = 0 ; guint8 subtype ; subtype = tvb_get_guint8 ( tvb , offset + 2 ) ; if ( parent_tree ) { const gchar * subtype_str ; subtype_str = val_to_str ( ...
0
static cmsBool Type_Screening_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) { cmsScreening * sc = ( cmsScreening * ) Ptr ; cmsUInt32Number i ; if ( ! _cmsWriteUInt32Number ( io , sc -> Flag ) ) return FALSE ; if ( ! _cmsWriteUInt32Number ( io , sc -> n...
0
static int writer_register ( const Writer * writer ) { static int next_registered_writer_idx = 0 ; if ( next_registered_writer_idx == MAX_REGISTERED_WRITERS_NB ) return AVERROR ( ENOMEM ) ; registered_writers [ next_registered_writer_idx ++ ] = writer ; return 0 ; }
0
kadm5_ret_t kadm5_get_principal_keys ( void * server_handle , krb5_principal principal , krb5_keyblock * * keyblocks , int * n_keys ) { krb5_db_entry * kdb ; osa_princ_ent_rec adb ; kadm5_ret_t ret ; kadm5_server_handle_t handle = server_handle ; if ( keyblocks ) * keyblocks = NULL ; CHECK_HANDLE ( server_h...
0
static uint64_t s390_virtio_device_vq_token ( VirtIOS390Device * dev , int vq ) { ram_addr_t token_off ; token_off = ( dev -> dev_offs + VIRTIO_DEV_OFFS_CONFIG ) + ( vq * VIRTIO_VQCONFIG_LEN ) + VIRTIO_VQCONFIG_OFFS_TOKEN ; return ldq_phys ( token_off ) ; }
0
int ReadOffset ( ArchiveHandle * AH , pgoff_t * o ) { int i ; int off ; int offsetFlg ; * o = 0 ; if ( AH -> version < K_VERS_1_7 ) { i = ReadInt ( AH ) ; if ( i < 0 ) return K_OFFSET_POS_NOT_SET ; else if ( i == 0 ) return K_OFFSET_NO_DATA ; * o = ( pgoff_t ) i ; return K_OFFSET_POS_SET ; } off...
0
static int dissect_h245_T_broadcastMyLogicalChannelResponse ( 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_T_broadcastMyLogicalChannelResponse , T_broadcastMyLogicalChannelRespo...
0
bool is_pseudo_constant_clause ( Node * clause ) { if ( ! contain_var_clause ( clause ) && ! contain_volatile_functions ( clause ) ) return true ; return false ; }
0
static inline int get_context ( PlaneContext * p , int16_t * src , int16_t * last , int16_t * last2 ) { const int LT = last [ - 1 ] ; const int T = last [ 0 ] ; const int RT = last [ 1 ] ; const int L = src [ - 1 ] ; if ( p -> quant_table [ 3 ] [ 127 ] ) { const int TT = last2 [ 0 ] ; const int LL = src [...
0
void TSFetchLaunch ( TSFetchSM fetch_sm ) { sdk_assert ( sdk_sanity_check_fetch_sm ( fetch_sm ) == TS_SUCCESS ) ; ( ( FetchSM * ) fetch_sm ) -> ext_launch ( ) ; }
0
int curl_msnprintf ( char * buffer , size_t maxlength , const char * format , ... ) { int retcode ; va_list ap_save ; va_start ( ap_save , format ) ; retcode = curl_mvsnprintf ( buffer , maxlength , format , ap_save ) ; va_end ( ap_save ) ; return retcode ; }
0
int EVP_DecryptUpdate ( EVP_CIPHER_CTX * ctx , unsigned char * out , int * outl , const unsigned char * in , int inl ) { int fix_len ; unsigned int b ; if ( ctx -> cipher -> flags & EVP_CIPH_FLAG_CUSTOM_CIPHER ) { fix_len = ctx -> cipher -> do_cipher ( ctx , out , in , inl ) ; if ( fix_len < 0 ) { * outl = ...
0
int ff_MPV_common_frame_size_change ( MpegEncContext * s ) { int i , err = 0 ; if ( s -> slice_context_count > 1 ) { for ( i = 0 ; i < s -> slice_context_count ; i ++ ) { free_duplicate_context ( s -> thread_context [ i ] ) ; } for ( i = 1 ; i < s -> slice_context_count ; i ++ ) { av_freep ( & s -...
0
TEST_F ( FullscreenControllerStateUnitTest , TwoFullscreenedTabsOneCaptured ) { content : : WebContentsDelegate * const wc_delegate = static_cast < content : : WebContentsDelegate * > ( browser ( ) ) ; ASSERT_TRUE ( wc_delegate -> EmbedsFullscreenWidget ( ) ) ; AddTab ( browser ( ) , GURL ( url : : kAboutBlankURL...
0
static int write_string ( buffer_t buffer , PyObject * py_string ) { Py_ssize_t string_length ; const char * string ; # if PY_MAJOR_VERSION >= 3 if ( PyUnicode_Check ( py_string ) ) { return write_unicode ( buffer , py_string ) ; } string = PyBytes_AsString ( py_string ) ; # else string = PyString_AsStrin...
0
static void dissect_coap_opt_location_query ( tvbuff_t * tvb , proto_item * head_item , proto_tree * subtree , gint offset , gint opt_length , int hf ) { const guint8 * str = NULL ; if ( opt_length == 0 ) { str = nullstr ; } else { str = tvb_get_string_enc ( wmem_packet_scope ( ) , tvb , offset , opt_length...
0
IN_PROC_BROWSER_TEST_F ( ClientHintsBrowserTest , ClientHintsHttpsSubresourceDifferentOrigin ) { base : : HistogramTester histogram_tester ; ui_test_utils : : NavigateToURL ( browser ( ) , accept_ch_with_lifetime_url ( ) ) ; histogram_tester . ExpectUniqueSample ( "ClientHints.UpdateEventCount" , 1 , 1 ) ; Cont...
0
int gs_main_run_string_continue ( gs_main_instance * minst , const char * str , uint length , int user_errors , int * pexit_code , ref * perror_object ) { ref rstr ; if ( length == 0 ) return 0 ; make_const_string ( & rstr , avm_foreign | a_readonly , length , ( const byte * ) str ) ; return gs_main_interpret (...
0
static inline void tb_reset_jump ( TranslationBlock * tb , int n ) { tb_set_jmp_target ( tb , n , ( uintptr_t ) ( tb -> tc_ptr + tb -> tb_next_offset [ n ] ) ) ; }
0
static int sad_hpel_motion_search ( MpegEncContext * s , int * mx_ptr , int * my_ptr , int dmin , int src_index , int ref_index , int size , int h ) { MotionEstContext * const c = & s -> me ; const int penalty_factor = c -> sub_penalty_factor ; int mx , my , dminh ; uint8_t * pix , * ptr ; int stride = c -> s...
0
vpx_codec_err_t vp9_copy_reference_dec ( VP9Decoder * pbi , VP9_REFFRAME ref_frame_flag , YV12_BUFFER_CONFIG * sd ) { VP9_COMMON * cm = & pbi -> common ; if ( ref_frame_flag == VP9_LAST_FLAG ) { const YV12_BUFFER_CONFIG * const cfg = get_ref_frame ( cm , 0 ) ; if ( cfg == NULL ) { vpx_internal_error ( & cm ->...
0
static void _SCSUOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) { const char * locale = pArgs -> locale ; if ( pArgs -> onlyTestIsLoadable ) { return ; } cnv -> extraInfo = uprv_malloc ( sizeof ( SCSUData ) ) ; if ( cnv -> extraInfo != NULL ) { if ( locale != NULL && loca...
1
static int parse_CRestrictionArray ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) { guint8 present , count ; proto_tree * tree ; proto_item * item ; const char * txt ; va_list ap ; va_start ( ap , fmt ) ; txt = wmem_strdup_...
0
static void xhci_kick_epctx ( XHCIEPContext * epctx , unsigned int streamid ) { XHCIState * xhci = epctx -> xhci ; XHCIStreamContext * stctx ; XHCITransfer * xfer ; XHCIRing * ring ; USBEndpoint * ep = NULL ; uint64_t mfindex ; int length ; int i ; trace_usb_xhci_ep_kick ( epctx -> slotid , epctx -> e...
1
static GList * make_activation_parameters ( GList * uris , GList * * unhandled_uris ) { GList * ret , * l , * app_uris ; NautilusFile * file ; GAppInfo * app , * old_app ; GHashTable * app_table ; char * uri ; ret = NULL ; * unhandled_uris = NULL ; app_table = g_hash_table_new_full ( ( GHashFunc ) mime_...
0
void hb_set_add ( hb_set_t * set , hb_codepoint_t codepoint ) { set -> add ( codepoint ) ; }
0
static void init_lengths ( BinkContext * c , int width , int bw ) { width = FFALIGN ( width , 8 ) ; c -> bundle [ BINK_SRC_BLOCK_TYPES ] . len = av_log2 ( ( width >> 3 ) + 511 ) + 1 ; c -> bundle [ BINK_SRC_SUB_BLOCK_TYPES ] . len = av_log2 ( ( width >> 4 ) + 511 ) + 1 ; c -> bundle [ BINK_SRC_COLORS ] . len = ...
0
int ossl_statem_server_read_transition ( SSL * s , int mt ) { OSSL_STATEM * st = & s -> statem ; switch ( st -> hand_state ) { case TLS_ST_BEFORE : case DTLS_ST_SW_HELLO_VERIFY_REQUEST : if ( mt == SSL3_MT_CLIENT_HELLO ) { st -> hand_state = TLS_ST_SR_CLNT_HELLO ; return 1 ; } break ; case TLS_ST_SW_SRV...
0
ber_slen_t ber_write ( BerElement * ber , LDAP_CONST char * buf , ber_len_t len , int zero ) { char * * p ; assert ( ber != NULL ) ; assert ( buf != NULL ) ; assert ( LBER_VALID ( ber ) ) ; if ( zero != 0 ) { ber_log_printf ( LDAP_DEBUG_ANY , ber -> ber_debug , "%s" , "ber_write: nonzero 4th argument not su...
0